Bug#846116: libhamcrest-java: FTBFS randomly (error: cannot access Description)

Santiago Vila sanvila at unex.es
Mon Nov 28 14:57:56 UTC 2016


Package: src:libhamcrest-java
Version: 1.3-5
Severity: serious

Dear maintainer:

I tried to build this package in stretch with "dpkg-buildpackage -A"
(which is what the "Arch: all" autobuilder would do to build it)
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
test -x debian/rules
mkdir -p "."
cd . && /usr/lib/jvm/default-java/bin/java -classpath /usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-launcher.jar:/usr/share/java/easymock.jar:/usr/share/java/jmock.jar:/usr/share/java/qdox.jar:/usr/share/java/ant-junit.jar:/usr/lib/jvm/default-java/lib/tools.jar -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 -Dversion=1.3 -Dant.home=/usr/share/ant org.apache.tools.ant.Main -Dcompile.debug=true -Dcompile.optimize=true -buildfile build.xml -propertyfile /<<PKGBUILDDIR>>/debian/ant.properties bigjar unit-test javadoc
Buildfile: /<<PKGBUILDDIR>>/build.xml

generator:
    [mkdir] Created dir: /<<PKGBUILDDIR>>/build/temp/hamcrest-generator-nodeps-1.3.jar.manifest
    [mkdir] Created dir: /<<PKGBUILDDIR>>/build/temp/hamcrest-generator-nodeps-1.3.jar.contents
    [javac] Compiling 11 source files to /<<PKGBUILDDIR>>/build/temp/hamcrest-generator-nodeps-1.3.jar.contents
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release

[... snipped ...]

     [java]              [T] any(Class<T> type)
     [java]              [T] instanceOf(Class<?> type)
     [java]              [T] not(Matcher<T> matcher)
     [java]              [T] not(T value)
     [java]         [Object] notNullValue()
     [java]              [T] notNullValue(Class<T> type)
     [java]              [T] nullValue(Class<T> type)
     [java]         [Object] nullValue()
     [java]              [T] theInstance(T target)
     [java]              [T] sameInstance(T target)
     [java]         [String] containsString(String substring)
     [java]         [String] startsWith(String prefix)
     [java]         [String] endsWith(String suffix)
    [javac] Compiling 1 source file to /<<PKGBUILDDIR>>/build/temp/hamcrest-core-1.3.jar.contents
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] 4 warnings
      [jar] Building jar: /<<PKGBUILDDIR>>/build/hamcrest-core-1.3.jar
     [copy] Copying 1 file to /<<PKGBUILDDIR>>/build/temp/hamcrest-core-1.3-sources.jar.contents
      [jar] Building jar: /<<PKGBUILDDIR>>/build/hamcrest-core-1.3-sources.jar

library:
    [mkdir] Created dir: /<<PKGBUILDDIR>>/build/temp/hamcrest-library/generated-code
    [mkdir] Created dir: /<<PKGBUILDDIR>>/build/temp/hamcrest-library-1.3.jar.manifest
    [mkdir] Created dir: /<<PKGBUILDDIR>>/build/temp/hamcrest-library-1.3.jar.contents
    [javac] Compiling 28 source files to /<<PKGBUILDDIR>>/build/temp/hamcrest-library-1.3.jar.contents
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] /<<PKGBUILDDIR>>/hamcrest-library/src/main/java/org/hamcrest/beans/HasProperty.java:5: error: cannot access Description
    [javac] import org.hamcrest.Description;
    [javac]                    ^
    [javac]   bad class file: /<<PKGBUILDDIR>>/build/hamcrest-core-1.3.jar(org/hamcrest/Description.class)
    [javac]     unable to access file: corrupted zip file
    [javac]     Please remove or make sure it appears in the correct subdirectory of the classpath.

BUILD FAILED
/<<PKGBUILDDIR>>/build.xml:59: The following error occurred while executing this line:
/<<PKGBUILDDIR>>/build.xml:290: Compile failed; see the compiler error output for details.

Total time: 3 seconds
/usr/share/cdbs/1/class/ant.mk:39: recipe for target 'debian/stamp-ant-build' failed
make: *** [debian/stamp-ant-build] Error 1
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

The relevant part of the build log is included above.

The failure happens randomly. Sometimes it fails, sometimes it does not.

I'm attaching several build logs, made on different autobuilders.

If (after trying a lot of times) you could not reproduce this using
sbuild on a single CPU virtual machine (as I did), please do not
downgrade or mark as unreproducible, I would then consider giving you
access to a virtual machine on which I can reproduce it so that you
can as well. (In such case, please contact me off-list for details).

Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libhamcrest-java_1.3-5_amd64-20161126T012722Z.gz
Type: application/gzip
Size: 17970 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20161128/3d02e1b2/attachment-0008.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libhamcrest-java_1.3-5_amd64-20161126T120921Z.gz
Type: application/gzip
Size: 17924 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20161128/3d02e1b2/attachment-0009.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libhamcrest-java_1.3-5_amd64-20161126T121036Z.gz
Type: application/gzip
Size: 17902 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20161128/3d02e1b2/attachment-0010.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libhamcrest-java_1.3-5_amd64-20161128T140452Z.gz
Type: application/gzip
Size: 17921 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20161128/3d02e1b2/attachment-0011.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libhamcrest-java_1.3-5_amd64-20161128T140613Z.gz
Type: application/gzip
Size: 17939 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20161128/3d02e1b2/attachment-0012.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libhamcrest-java_1.3-5_amd64-20161128T140629Z.gz
Type: application/gzip
Size: 17934 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20161128/3d02e1b2/attachment-0013.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libhamcrest-java_1.3-5_amd64-20161128T140805Z.gz
Type: application/gzip
Size: 17915 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20161128/3d02e1b2/attachment-0014.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libhamcrest-java_1.3-5_amd64-20161128T140850Z.gz
Type: application/gzip
Size: 17927 bytes
Desc: 
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20161128/3d02e1b2/attachment-0015.bin>


More information about the pkg-java-maintainers mailing list