From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#31390: java-hamcrest-all fails to build Date: Wed, 9 May 2018 13:22:53 +0200 Message-ID: <87r2mlf4z6.fsf@mdc-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGNCX-00046i-OL for bug-guix@gnu.org; Wed, 09 May 2018 07:24:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGNCU-0008N4-IN for bug-guix@gnu.org; Wed, 09 May 2018 07:24:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:46971) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fGNCU-0008Mw-EL for bug-guix@gnu.org; Wed, 09 May 2018 07:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fGNCU-0008Al-6q for bug-guix@gnu.org; Wed, 09 May 2018 07:24:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGNCB-00043q-FZ for bug-guix@gnu.org; Wed, 09 May 2018 07:23:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGNC8-0007lx-8e for bug-guix@gnu.org; Wed, 09 May 2018 07:23:43 -0400 Received: from pegasus.bbbm.mdc-berlin.de ([141.80.25.20]:60068) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fGNC7-0007hk-Ov for bug-guix@gnu.org; Wed, 09 May 2018 07:23:40 -0400 Received: from localhost (localhost [127.0.0.1]) by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTP id BD77589DDE0 for ; Wed, 9 May 2018 13:23:36 +0200 (CEST) Received: from pegasus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (pegasus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qchsh7__-t9M for ; Wed, 9 May 2018 13:23:31 +0200 (CEST) Received: from HTCATWO.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTPS for ; Wed, 9 May 2018 13:23:29 +0200 (CEST) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 31390@debbugs.gnu.org Hi Guix, =E2=80=9Cjava-hamcrest-all=E2=80=9D fails to build with a curious error mes= sage. It first builds hamcrest-core-1.3.jar and then complains about being unable to access =E2=80=9Corg/hamcrest/Description.class=E2=80=9D from that jar. --8<---------------cut here---------------start------------->8--- starting phase `build' Buildfile: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHamcrest-hamcres= t-java-1.3/build.xml generator: [mkdir] Created dir: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHa= mcrest-hamcrest-java-1.3/build/temp/hamcrest-generator-nodeps-1.3.jar.manif= est [mkdir] Created dir: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHa= mcrest-hamcrest-java-1.3/build/temp/hamcrest-generator-nodeps-1.3.jar.conte= nts [javac] Compiling 11 source files to /tmp/guix-build-java-hamcrest-all-= 1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/hamcrest-generator-node= ps-1.3.jar.contents [javac] [javac] WARNING [javac] [javac] The -source switch defaults to 1.8 in JDK 1.8. [javac] If you specify -target 1.5 you now must also specify -source 1.= 5. [javac] Ant will implicitly add -source 1.5 for you. Please change you= r build file. [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 rem= oved in a future release [javac] warning: [options] target value 1.5 is obsolete and will be rem= oved in a future release [javac] warning: [options] To suppress warnings about obsolete options,= use -Xlint:-options. [javac] 4 warnings [copy] Copying 1 file to /tmp/guix-build-java-hamcrest-all-1.3.drv-0/J= avaHamcrest-hamcrest-java-1.3/build/temp/hamcrest-generator-nodeps-1.3.jar.= contents [jar] Building jar: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaH= amcrest-hamcrest-java-1.3/build/hamcrest-generator-nodeps-1.3.jar [copy] Copying 11 files to /tmp/guix-build-java-hamcrest-all-1.3.drv-0= /JavaHamcrest-hamcrest-java-1.3/build/temp/hamcrest-generator-nodeps-1.3-so= urces.jar.contents [jar] Building jar: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaH= amcrest-hamcrest-java-1.3/build/hamcrest-generator-nodeps-1.3-sources.jar [jarjar] Building jar: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaH= amcrest-hamcrest-java-1.3/build/hamcrest-generator-1.3.jar [copy] Copying 1 file to /tmp/guix-build-java-hamcrest-all-1.3.drv-0/J= avaHamcrest-hamcrest-java-1.3/build core: [mkdir] Created dir: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHa= mcrest-hamcrest-java-1.3/build/temp/hamcrest-core-1.3.jar.manifest [mkdir] Created dir: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHa= mcrest-hamcrest-java-1.3/build/temp/hamcrest-core-1.3.jar.contents [javac] Compiling 37 source files to /tmp/guix-build-java-hamcrest-all-= 1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/hamcrest-core-1.3.jar.c= ontents [javac] [javac] WARNING [javac] [javac] The -source switch defaults to 1.8 in JDK 1.8. [javac] If you specify -target 1.5 you now must also specify -source 1.= 5. [javac] Ant will implicitly add -source 1.5 for you. Please change you= r build file. [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 rem= oved in a future release [javac] warning: [options] target value 1.5 is obsolete and will be rem= oved in a future release [javac] warning: [options] To suppress warnings about obsolete options,= use -Xlint:-options. [javac] 4 warnings [copy] Copying 1 file to /tmp/guix-build-java-hamcrest-all-1.3.drv-0/J= avaHamcrest-hamcrest-java-1.3/build/temp/hamcrest-core-1.3.jar.contents [jar] Building jar: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaH= amcrest-hamcrest-java-1.3/build/hamcrest-core-1.3.jar [copy] Copying 39 files to /tmp/guix-build-java-hamcrest-all-1.3.drv-0= /JavaHamcrest-hamcrest-java-1.3/build/temp/hamcrest-core-1.3-sources.jar.co= ntents [jar] Building jar: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaH= amcrest-hamcrest-java-1.3/build/hamcrest-core-1.3-sources.jar [mkdir] Created dir: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHa= mcrest-hamcrest-java-1.3/build/temp/hamcrest-core/generated-code [java] Generating org.hamcrest.CoreMatchers [java] [T] allOf(Iterable> matchers) [java] [T] allOf(Matcher first, Matcher second) [java] [T] allOf(Matcher first, Matcher second, Matcher third) [java] [T] allOf(Matcher first, Matcher second, Matcher third, Matcher fourth) [java] [T] allOf(Matcher first, Matcher second, Matcher third, Matcher fourth, Matcher fifth) [java] [T] allOf(Matcher first, Matcher second, Matcher third, Matcher fourth, Matcher fifth, Matcher sixth) [java] [T] allOf(Matcher... matchers) [java] [T] anyOf(Iterable> matchers) [java] [T] anyOf(Matcher first, Matcher sec= ond) [java] [T] anyOf(Matcher first, Matcher sec= ond, Matcher third) [java] [T] anyOf(Matcher first, Matcher sec= ond, Matcher third, Matcher fourth) [java] [T] anyOf(Matcher first, Matcher sec= ond, Matcher third, Matcher fourth, Matcher fifth) [java] [T] anyOf(Matcher first, Matcher sec= ond, Matcher third, Matcher fourth, Matcher fifth, Matcher sixth) [java] [T] anyOf(Matcher... matchers) [java] [LHS] both(Matcher matcher) [java] [LHS] either(Matcher matcher) [java] [T] describedAs(String description, Matcher mat= cher, Object... values) [java] [Iterable] everyItem(Matcher itemMatcher) [java] [T] is(Class type) [java] [T] is(T value) [java] [T] is(Matcher matcher) [java] [T] isA(Class type) [java] [Object] anything() [java] [Object] anything(String description) [java] [Iterable] hasItem(T item) [java] [Iterable] hasItem(Matcher itemMatcher) [java] [Iterable] hasItems(T... items) [java] [Iterable] hasItems(Matcher... itemMatchers) [java] [T] equalTo(T operand) [java] [T] any(Class type) [java] [T] instanceOf(Class type) [java] [T] not(T value) [java] [T] not(Matcher matcher) [java] [Object] notNullValue() [java] [T] notNullValue(Class type) [java] [Object] nullValue() [java] [T] nullValue(Class type) [java] [T] sameInstance(T target) [java] [T] theInstance(T target) [java] [String] containsString(String substring) [java] [String] startsWith(String prefix) [java] [String] endsWith(String suffix) [javac] Compiling 1 source file to /tmp/guix-build-java-hamcrest-all-1.= 3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/hamcrest-core-1.3.jar.con= tents [javac] [javac] WARNING [javac] [javac] The -source switch defaults to 1.8 in JDK 1.8. [javac] If you specify -target 1.5 you now must also specify -source 1.= 5. [javac] Ant will implicitly add -source 1.5 for you. Please change you= r build file. [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 rem= oved in a future release [javac] warning: [options] target value 1.5 is obsolete and will be rem= oved in a future release [javac] warning: [options] To suppress warnings about obsolete options,= use -Xlint:-options. [javac] 4 warnings [jar] Building jar: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaH= amcrest-hamcrest-java-1.3/build/hamcrest-core-1.3.jar [copy] Copying 1 file to /tmp/guix-build-java-hamcrest-all-1.3.drv-0/J= avaHamcrest-hamcrest-java-1.3/build/temp/hamcrest-core-1.3-sources.jar.cont= ents [jar] Building jar: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaH= amcrest-hamcrest-java-1.3/build/hamcrest-core-1.3-sources.jar library: [mkdir] Created dir: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHa= mcrest-hamcrest-java-1.3/build/temp/hamcrest-library/generated-code [mkdir] Created dir: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHa= mcrest-hamcrest-java-1.3/build/temp/hamcrest-library-1.3.jar.manifest [mkdir] Created dir: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHa= mcrest-hamcrest-java-1.3/build/temp/hamcrest-library-1.3.jar.contents [javac] Compiling 28 source files to /tmp/guix-build-java-hamcrest-all-= 1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/hamcrest-library-1.3.ja= r.contents [javac] [javac] WARNING [javac] [javac] The -source switch defaults to 1.8 in JDK 1.8. [javac] If you specify -target 1.5 you now must also specify -source 1.= 5. [javac] Ant will implicitly add -source 1.5 for you. Please change you= r build file. [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 rem= oved in a future release [javac] warning: [options] target value 1.5 is obsolete and will be rem= oved in a future release [javac] warning: [options] To suppress warnings about obsolete options,= use -Xlint:-options. [javac] /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHamcrest-hamcre= st-java-1.3/hamcrest-library/src/main/java/org/hamcrest/beans/HasProperty.j= ava:5: error: cannot access Description [javac] import org.hamcrest.Description; [javac] ^ [javac] bad class file: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/J= avaHamcrest-hamcrest-java-1.3/build/hamcrest-core-1.3.jar(org/hamcrest/Desc= ription.class) [javac] unable to access file: corrupted zip file [javac] Please remove or make sure it appears in the correct subdir= ectory of the classpath. BUILD FAILED /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/= build.xml:59: The following error occurred while executing this line: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/= build.xml:287: Compile failed; see the compiler error output for details. --8<---------------cut here---------------end--------------->8--- I have kept the build output and inspected the jar. I can access the file without problems. I don=E2=80=99t see corruption in the jar/zip file. --8<---------------cut here---------------start------------->8--- $ file /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHamcrest-hamcrest-ja= va-1.3/build/hamcrest-core-1.3.jar=20 /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/= build/hamcrest-core-1.3.jar: Java archive data (JAR) $ unzip /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHamcrest-hamcrest-j= ava-1.3/build/hamcrest-core-1.3.jar $ file org/hamcrest/Description.class=20 org/hamcrest/Description.class: compiled Java class data, version 49.0 (Jav= a 1.5) --8<---------------cut here---------------end--------------->8--- Any ideas? -- Ricardo