From unknown Wed Jun 25 10:54:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31390: java-hamcrest-all fails to build Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 09 May 2018 11:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31390 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 31390@debbugs.gnu.org X-Debbugs-Original-To: Received: via spool by submit@debbugs.gnu.org id=B.152586504031402 (code B ref -1); Wed, 09 May 2018 11:24:02 +0000 Received: (at submit) by debbugs.gnu.org; 9 May 2018 11:24:00 +0000 Received: from localhost ([127.0.0.1]:54868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGNCS-0008AP-8x for submit@debbugs.gnu.org; Wed, 09 May 2018 07:24:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39011) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGNCN-0008AA-OH for submit@debbugs.gnu.org; Wed, 09 May 2018 07:23:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGNCG-00080V-ID for submit@debbugs.gnu.org; Wed, 09 May 2018 07:23:50 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44482) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fGNCG-000803-Dk for submit@debbugs.gnu.org; Wed, 09 May 2018 07:23:48 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:user-agent :received:received:received:received; s=mdc; t=1525865011; x= 1527679412; bh=p69nT72k5QoaD6fNk8++h3x1GFSbioibFRoXHMCUiNA=; b=T 7MFCvxVJWEhHSO7JwAsmT5JAosavs9ls+7AFcDL3qSRudI7tRyIaTeSLvNizeddF k9h3ljl1Y3zFY13/OsDGkLw8cHEhez7Ce/jLBulTzJ/ghE9MkLW3G9MewkW8UUg2 XXV6ifW8+vhZ/vPbxVKfHlcSoIV5giK8t0psc8yMwM= X-Virus-Scanned: amavisd-new at mdc-berlin.de 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) Received: from SW-IT-P-CAS3.mdc-berlin.net (141.80.113.58) by HTCATWO.mdc-berlin.net (141.80.180.190) with Microsoft SMTP Server (TLS) id 14.3.389.1; Wed, 9 May 2018 13:23:05 +0200 Received: from localhost (141.80.113.52) by SW-IT-P-CAS3.mdc-berlin.net (141.80.113.58) with Microsoft SMTP Server id 14.3.389.1; Wed, 9 May 2018 13:23:04 +0200 User-agent: mu4e 1.0; emacs 25.3.1 From: Ricardo Wurmus X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC 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 X-Originating-IP: [141.80.113.52] X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.2.1013-23832.006 X-TM-AS-Result: No-5.604900-8.000000-10 X-TMASE-MatchedRID: xVehR4QlmfIlhPOjqhY78HQIOMndeKgEWwKGivsEuI2afu7GwPW5Jvh5 gT8kXkoMk6ayu2dY46kNBaBCS6tQ1M637+A5hpnFMJoQm3jo+mm2McZY43zJ40JqedX9vt/Zx62 K9vpeVDE9I+RojwVYZEOFDM1LbWcQNtywwIf5ksVtD1qg9KZYkWiKlrB8TSDq+Cckfm+bb6Dvi+ zrzomcGcHUAqpcfRKLD8Dk6W5q3X/vhXJXrUkYg+qwWVBfMuvoQjbgUltv2VJ85YbmMPCbEwrUa OXZFU93uBuhd8k/y5GgVbxI8zQaQr9ZdlL8eonaC24oEZ6SpSk6XEE7Yhw4FmCjZapxFkw+2NJf Hth71RZXwyPfpHupKp/yPV47aQCXiMR0/iN4mks= X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.604900-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.2.1013-23832.006 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) 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 From unknown Wed Jun 25 10:54:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31390: java-hamcrest-all fails to build Resent-From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 09 May 2018 17:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31390 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ricardo Wurmus Cc: 31390@debbugs.gnu.org Received: via spool by 31390-submit@debbugs.gnu.org id=B31390.152588832213647 (code B ref 31390); Wed, 09 May 2018 17:53:02 +0000 Received: (at 31390) by debbugs.gnu.org; 9 May 2018 17:52:02 +0000 Received: from localhost ([127.0.0.1]:55542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGTFx-0003Xq-Dl for submit@debbugs.gnu.org; Wed, 09 May 2018 13:52:02 -0400 Received: from mail-io0-f169.google.com ([209.85.223.169]:41602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGTFt-0003Xc-Mu for 31390@debbugs.gnu.org; Wed, 09 May 2018 13:51:59 -0400 Received: by mail-io0-f169.google.com with SMTP id e12-v6so43685160iob.8 for <31390@debbugs.gnu.org>; Wed, 09 May 2018 10:51:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=SLVZ6rgv+SKbRmtdEnLxxYalJ/i1aVb1ka0CHPEAop0=; b=LBkR91yK9vjtP+99RgMPRC8t1HYOU/Xu8NnPxHa40bIjxhvpytx0NNtjGBw+Vh6BFT ZlI556THY31CA6+nfidTmBcVplGUpGL/ZfaAjRquq5/nh2Jnuske2eB4gU0BS1bSOYVp CT4YjVRMFYMYbCpoa91GdFnkReUNQ9k2yGFdeslf8xtlYUVQhutNkeAxHt7MvoHcVfYU TVvWSPFQ38kbnxDDrbG+zDwVKf9k422Nd4X92Jg5+wvUEnw62epjH+hiC61SJr9Diqu7 58iWzVW3z7RxcQtP3mIP1ybCaQ3vwllcxnNmDdP8ocvsJGs9Gyszn8+MtUUb0xnK0MV5 5fbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=SLVZ6rgv+SKbRmtdEnLxxYalJ/i1aVb1ka0CHPEAop0=; b=pgTJleahsa7vZ4aI4yXukqhTXBByU7NR5ttbotHHNdFkiZ0XkMSe3nA2m2JCWhaVyy Og8fnI371W3gECBvLqUAi7hS/tndzpeRojP5TMlof3uzu0C3bePSJMt18NfD349wocWp vvvc/PBjU6ctSzr2ejLRO6Nj1G1GeQRpRzadATiSGsDSqgkFYcO/iaH9bwyZy+qByfIR TkkjI5CzFz9OU1YTcd3B4vtUKnivQ0zx1sk73QVdcuEbv7erGytDc0plg9FEoHR/tHSI Q/naLi314UBYO7ZwuLWaT7r1ZLP8w4+hSuofjW9tguQNOo3I5iHqMDdE4OBoAc9ZJ+SE fJ8Q== X-Gm-Message-State: ALQs6tCQyLkN9tjihSm2f+i3JGjVV2Ocry8BAmxirumVdI/1mYvyoPpE C3Rw8XZrxpZpKSj0EV6kzPpL/+/pryamokEv9w== X-Google-Smtp-Source: AB8JxZq0Au6S71wxiZLYrReKl6wJxD++DjwURMWg9oXh3ogyQqa1Qlb5+FuY2gUo/6b5gbFQZ2xS36yHDAH9ccdok0E= X-Received: by 2002:a6b:85d6:: with SMTP id p83-v6mr47493462ioi.224.1525888312038; Wed, 09 May 2018 10:51:52 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:b40a:0:0:0:0:0 with HTTP; Wed, 9 May 2018 10:51:51 -0700 (PDT) In-Reply-To: <87r2mlf4z6.fsf@mdc-berlin.de> References: <87r2mlf4z6.fsf@mdc-berlin.de> From: =?UTF-8?Q?G=C3=A1bor?= Boskovits Date: Wed, 9 May 2018 19:51:51 +0200 Message-ID: Content-Type: multipart/alternative; boundary="000000000000ce58d2056bc98e75" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000ce58d2056bc98e75 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 2018-05-09 13:22 GMT+02:00 Ricardo Wurmus : > Hi Guix, > > =E2=80=9Cjava-hamcrest-all=E2=80=9D fails to build with a curious error m= essage. 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- > hamcrest-java-1.3/build.xml > > generator: > [mkdir] Created dir: /tmp/guix-build-java-hamcrest- > all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/ > hamcrest-generator-nodeps-1.3.jar.manifest > [mkdir] Created dir: /tmp/guix-build-java-hamcrest- > all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/ > hamcrest-generator-nodeps-1.3.jar.contents > [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-nodeps-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 > your build file. > [javac] warning: [options] bootstrap class path not set in conjunctio= n > 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 > [copy] Copying 1 file to /tmp/guix-build-java-hamcrest- > all-1.3.drv-0/JavaHamcrest-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/JavaHamcrest-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-sources.jar.contents > [jar] Building jar: /tmp/guix-build-java-hamcrest- > all-1.3.drv-0/JavaHamcrest-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/JavaHamcrest-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/JavaHamcrest-hamcrest-java-1.3/build > > core: > [mkdir] Created dir: /tmp/guix-build-java-hamcrest- > all-1.3.drv-0/JavaHamcrest-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/JavaHamcrest-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.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 > your build file. > [javac] warning: [options] bootstrap class path not set in conjunctio= n > 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 > [copy] Copying 1 file to /tmp/guix-build-java-hamcrest- > all-1.3.drv-0/JavaHamcrest-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/JavaHamcrest-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.contents > [jar] Building jar: /tmp/guix-build-java-hamcrest- > all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/ > hamcrest-core-1.3-sources.jar > [mkdir] Created dir: /tmp/guix-build-java-hamcrest- > all-1.3.drv-0/JavaHamcrest-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 super T> second) > [java] [T] allOf(Matcher first, Matcher super T> second, Matcher third) > [java] [T] allOf(Matcher first, Matcher super T> second, Matcher third, Matcher fourth) > [java] [T] allOf(Matcher first, Matcher super T> second, Matcher third, Matcher fourth, > Matcher fifth) > [java] [T] allOf(Matcher first, Matcher super T> 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 > second) > [java] [T] anyOf(Matcher first, Matcher > second, Matcher third) > [java] [T] anyOf(Matcher first, Matcher > second, Matcher third, Matcher fourth) > [java] [T] anyOf(Matcher first, Matcher > second, Matcher third, Matcher fourth, Matcher super T> fifth) > [java] [T] anyOf(Matcher first, Matcher > second, Matcher third, Matcher fourth, Matcher super T> fifth, Matcher sixth) > [java] [T] anyOf(Matcher... matchers) > [java] [LHS] both(Matcher matcher) > [java] [LHS] either(Matcher matcher) > [java] [T] describedAs(String description, Matcher > matcher, 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.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 > your build file. > [javac] warning: [options] bootstrap class path not set in conjunctio= n > 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: /tmp/guix-build-java-hamcrest- > all-1.3.drv-0/JavaHamcrest-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/JavaHamcrest-hamcrest-java-1.3/build/temp/ > hamcrest-core-1.3-sources.jar.contents > [jar] Building jar: /tmp/guix-build-java-hamcrest- > all-1.3.drv-0/JavaHamcrest-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/JavaHamcrest-hamcrest-java-1.3/build/temp/ > hamcrest-library/generated-code > [mkdir] Created dir: /tmp/guix-build-java-hamcrest- > all-1.3.drv-0/JavaHamcrest-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/JavaHamcrest-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.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 > your build file. > [javac] warning: [options] bootstrap class path not set in conjunctio= n > 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] /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHamcrest- > hamcrest-java-1.3/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: /tmp/guix-build-java-hamcrest- > all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/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 > /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 fil= e. > > --8<---------------cut here---------------start------------->8--- > $ file /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHamcrest- > hamcrest-java-1.3/build/hamcrest-core-1.3.jar > /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-java-1.3/build/hamcrest-core-1.3.jar > $ file org/hamcrest/Description.class > org/hamcrest/Description.class: compiled Java class data, version 49.0 > (Java 1.5) > --8<---------------cut here---------------end--------------->8--- > > Any ideas? > > Yes, I have run into this already when doing the updates for java8. Debian seems to have a patch for this here: https://anonscm.debian.org/viewvc/pkg-java/trunk/libhamcrest-java/debian/pa= tches/002-random-build-failure.patch?view=3Dlog This bug was tracked here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D738789 This failure is not deterministic, this is how it managed to get through my filter :) It seems that forcing not to use a parallel build is also a solution. I haven't tried if we can use the patch as is. WDYT? > -- > Ricardo > > > > --000000000000ce58d2056bc98e75 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
2018= -05-09 13:22 GMT+02:00 Ricardo Wurmus <ricardo.wurmus@mdc-berli= n.de>:
H= i Guix,

=E2=80=9Cjava-hamcrest-all=E2=80=9D fails to build with a curious error mes= sage.=C2=A0 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 j= ar.

--8<---------------cut here---------------start------------->8--= -
starting phase `build'
Buildfile: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build.xml

generator:
=C2=A0 =C2=A0 [mkdir] Created dir: /tmp/guix-build-java-hamcrest-all-1= .3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/hamcrest-gener= ator-nodeps-1.3.jar.manifest
=C2=A0 =C2=A0 [mkdir] Created dir: /tmp/guix-build-java-hamcrest-all-1= .3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/hamcrest-gener= ator-nodeps-1.3.jar.contents
=C2=A0 =C2=A0 [javac] Compiling 11 source files to /tmp/guix-build-java-ham= crest-all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/hamcrest-generator-nodeps-1.3.jar.contents
=C2=A0 =C2=A0 [javac]
=C2=A0 =C2=A0 [javac]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0WARNING
=C2=A0 =C2=A0 [javac]
=C2=A0 =C2=A0 [javac] The -source switch defaults to 1.8 in JDK 1.8.
=C2=A0 =C2=A0 [javac] If you specify -target 1.5 you now must also specify = -source 1.5.
=C2=A0 =C2=A0 [javac] Ant will implicitly add -source 1.5 for you.=C2=A0 Pl= ease change your build file.
=C2=A0 =C2=A0 [javac] warning: [options] bootstrap class path not set in co= njunction with -source 1.5
=C2=A0 =C2=A0 [javac] warning: [options] source value 1.5 is obsolete and w= ill be removed in a future release
=C2=A0 =C2=A0 [javac] warning: [options] target value 1.5 is obsolete and w= ill be removed in a future release
=C2=A0 =C2=A0 [javac] warning: [options] To suppress warnings about obsolet= e options, use -Xlint:-options.
=C2=A0 =C2=A0 [javac] 4 warnings
=C2=A0 =C2=A0 =C2=A0[copy] Copying 1 file to /tmp/guix-build-java-hamcrest-= all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/hamc= rest-generator-nodeps-1.3.jar.contents
=C2=A0 =C2=A0 =C2=A0 [jar] Building jar: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/hamcrest-gene= rator-nodeps-1.3.jar
=C2=A0 =C2=A0 =C2=A0[copy] Copying 11 files to /tmp/guix-build-java-hamcres= t-all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/ha= mcrest-generator-nodeps-1.3-sources.jar.contents
=C2=A0 =C2=A0 =C2=A0 [jar] Building jar: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/hamcrest-gene= rator-nodeps-1.3-sources.jar
=C2=A0 =C2=A0[jarjar] Building jar: /tmp/guix-build-java-hamcrest-all-= 1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/hamcrest-generator= -1.3.jar
=C2=A0 =C2=A0 =C2=A0[copy] Copying 1 file to /tmp/guix-build-java-hamcrest-= all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build

core:
=C2=A0 =C2=A0 [mkdir] Created dir: /tmp/guix-build-java-hamcrest-all-1= .3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/hamcrest-core-= 1.3.jar.manifest
=C2=A0 =C2=A0 [mkdir] Created dir: /tmp/guix-build-java-hamcrest-all-1= .3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/hamcrest-core-= 1.3.jar.contents
=C2=A0 =C2=A0 [javac] Compiling 37 source files to /tmp/guix-build-java-ham= crest-all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/hamcrest-core-1.3.jar.contents
=C2=A0 =C2=A0 [javac]
=C2=A0 =C2=A0 [javac]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0WARNING
=C2=A0 =C2=A0 [javac]
=C2=A0 =C2=A0 [javac] The -source switch defaults to 1.8 in JDK 1.8.
=C2=A0 =C2=A0 [javac] If you specify -target 1.5 you now must also specify = -source 1.5.
=C2=A0 =C2=A0 [javac] Ant will implicitly add -source 1.5 for you.=C2=A0 Pl= ease change your build file.
=C2=A0 =C2=A0 [javac] warning: [options] bootstrap class path not set in co= njunction with -source 1.5
=C2=A0 =C2=A0 [javac] warning: [options] source value 1.5 is obsolete and w= ill be removed in a future release
=C2=A0 =C2=A0 [javac] warning: [options] target value 1.5 is obsolete and w= ill be removed in a future release
=C2=A0 =C2=A0 [javac] warning: [options] To suppress warnings about obsolet= e options, use -Xlint:-options.
=C2=A0 =C2=A0 [javac] 4 warnings
=C2=A0 =C2=A0 =C2=A0[copy] Copying 1 file to /tmp/guix-build-java-hamcrest-= all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/hamc= rest-core-1.3.jar.contents
=C2=A0 =C2=A0 =C2=A0 [jar] Building jar: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/hamcrest-core= -1.3.jar
=C2=A0 =C2=A0 =C2=A0[copy] Copying 39 files to /tmp/guix-build-java-hamcres= t-all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/ha= mcrest-core-1.3-sources.jar.contents
=C2=A0 =C2=A0 =C2=A0 [jar] Building jar: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/hamcrest-core= -1.3-sources.jar
=C2=A0 =C2=A0 [mkdir] Created dir: /tmp/guix-build-java-hamcrest-all-1= .3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/hamcrest-core/= generated-code
=C2=A0 =C2=A0 =C2=A0[java] Generating org.hamcrest.CoreMatchers
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] allOf(Iterable<Matcher<? super T>> matchers)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] allOf(Matcher<? super T> first, Matcher<? super T> second)<= br> =C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] allOf(Matcher<? super T> first, Matcher<? super T> second, = Matcher<? super T> third)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] allOf(Matcher<? super T> first, Matcher<? super T> second, = Matcher<? super T> third, Matcher<? super T> fourth)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] allOf(Matcher<? super T> first, Matcher<? super T> second, = Matcher<? super T> third, Matcher<? super T> fourth, Matcher<= ;? super T> fifth)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] allOf(Matcher<? super T> first, Matcher<? super T> second, = Matcher<? super T> third, Matcher<? super T> fourth, Matcher<= ;? super T> fifth, Matcher<? super T> sixth)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] allOf(Matcher<? super T>... matchers)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] anyOf(Iterable<Matcher<? super T>> matchers)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] anyOf(Matcher<T> first, Matcher<? super T> second)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] anyOf(Matcher<T> first, Matcher<? super T> second, Matcher&= lt;? super T> third)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] anyOf(Matcher<T> first, Matcher<? super T> second, Matcher&= lt;? super T> third, Matcher<? super T> fourth)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] anyOf(Matcher<T> first, Matcher<? super T> second, Matcher&= lt;? super T> third, Matcher<? super T> fourth, Matcher<? super= T> fifth)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] anyOf(Matcher<T> first, Matcher<? super T> second, Matcher&= lt;? super T> third, Matcher<? super T> fourth, Matcher<? super= T> fifth, Matcher<? super T> sixth)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] anyOf(Matcher<? super T>... matchers)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [LHS] b= oth(Matcher<? super LHS> matcher)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 [LHS] e= ither(Matcher<? super LHS> matcher)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] describedAs(String description, Matcher<T> matcher, Object... val= ues)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 [Iterable<U>] everyItem(Match= er<U> itemMatcher)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] is(Class<T> type)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] is(T value)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] is(Matcher<T> matcher)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] isA(Class<T> type)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[Object] anythi= ng()
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[Object] anythi= ng(String description)
=C2=A0 =C2=A0 =C2=A0[java] [Iterable<? super T>] hasItem(T item)
=C2=A0 =C2=A0 =C2=A0[java] [Iterable<? super T>] hasItem(Matcher<?= super T> itemMatcher)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 [Iterable<T>] hasItems(T... i= tems)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 [Iterable<T>] hasItems(Matche= r<? super T>... itemMatchers)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] equalTo(T operand)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] any(Class<T> type)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] instanceOf(Class<?> type)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] not(T value)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] not(Matcher<T> matcher)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[Object] notNul= lValue()
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] notNullValue(Class<T> type)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[Object] nullVa= lue()
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] nullValue(Class<T> type)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] sameInstance(T target)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = [T] theInstance(T target)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[String] contai= nsString(String substring)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[String] starts= With(String prefix)
=C2=A0 =C2=A0 =C2=A0[java]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0[String] endsWi= th(String suffix)
=C2=A0 =C2=A0 [javac] Compiling 1 source file to /tmp/guix-build-java-hamcr= est-all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/= hamcrest-core-1.3.jar.contents
=C2=A0 =C2=A0 [javac]
=C2=A0 =C2=A0 [javac]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0WARNING
=C2=A0 =C2=A0 [javac]
=C2=A0 =C2=A0 [javac] The -source switch defaults to 1.8 in JDK 1.8.
=C2=A0 =C2=A0 [javac] If you specify -target 1.5 you now must also specify = -source 1.5.
=C2=A0 =C2=A0 [javac] Ant will implicitly add -source 1.5 for you.=C2=A0 Pl= ease change your build file.
=C2=A0 =C2=A0 [javac] warning: [options] bootstrap class path not set in co= njunction with -source 1.5
=C2=A0 =C2=A0 [javac] warning: [options] source value 1.5 is obsolete and w= ill be removed in a future release
=C2=A0 =C2=A0 [javac] warning: [options] target value 1.5 is obsolete and w= ill be removed in a future release
=C2=A0 =C2=A0 [javac] warning: [options] To suppress warnings about obsolet= e options, use -Xlint:-options.
=C2=A0 =C2=A0 [javac] 4 warnings
=C2=A0 =C2=A0 =C2=A0 [jar] Building jar: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/hamcrest-core= -1.3.jar
=C2=A0 =C2=A0 =C2=A0[copy] Copying 1 file to /tmp/guix-build-java-hamcrest-= all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/hamc= rest-core-1.3-sources.jar.contents
=C2=A0 =C2=A0 =C2=A0 [jar] Building jar: /tmp/guix-build-java-hamcrest-all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/hamcrest-core= -1.3-sources.jar

library:
=C2=A0 =C2=A0 [mkdir] Created dir: /tmp/guix-build-java-hamcrest-all-1= .3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/hamcrest-libra= ry/generated-code
=C2=A0 =C2=A0 [mkdir] Created dir: /tmp/guix-build-java-hamcrest-all-1= .3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/hamcrest-libra= ry-1.3.jar.manifest
=C2=A0 =C2=A0 [mkdir] Created dir: /tmp/guix-build-java-hamcrest-all-1= .3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/hamcrest-libra= ry-1.3.jar.contents
=C2=A0 =C2=A0 [javac] Compiling 28 source files to /tmp/guix-build-java-ham= crest-all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/temp/hamcrest-library-1.3.jar.contents
=C2=A0 =C2=A0 [javac]
=C2=A0 =C2=A0 [javac]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0WARNING
=C2=A0 =C2=A0 [javac]
=C2=A0 =C2=A0 [javac] The -source switch defaults to 1.8 in JDK 1.8.
=C2=A0 =C2=A0 [javac] If you specify -target 1.5 you now must also specify = -source 1.5.
=C2=A0 =C2=A0 [javac] Ant will implicitly add -source 1.5 for you.=C2=A0 Pl= ease change your build file.
=C2=A0 =C2=A0 [javac] warning: [options] bootstrap class path not set in co= njunction with -source 1.5
=C2=A0 =C2=A0 [javac] warning: [options] source value 1.5 is obsolete and w= ill be removed in a future release
=C2=A0 =C2=A0 [javac] warning: [options] target value 1.5 is obsolete and w= ill be removed in a future release
=C2=A0 =C2=A0 [javac] warning: [options] To suppress warnings about obsolet= e options, use -Xlint:-options.
=C2=A0 =C2=A0 [javac] /tmp/guix-build-java-hamcrest-all-1.3.drv-0/Java= Hamcrest-hamcrest-java-1.3/hamcrest-library/src/main/java/org/hamcrest/beans/HasProperty.java:5: error: cannot access Description<= br> =C2=A0 =C2=A0 [javac] import org.hamcrest.Description;
=C2=A0 =C2=A0 [javac]=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 ^
=C2=A0 =C2=A0 [javac]=C2=A0 =C2=A0bad class file: /tmp/guix-build-java-hamc= rest-all-1.3.drv-0/JavaHamcrest-hamcrest-java-1.3/build/hamc= rest-core-1.3.jar(org/hamcrest/Description.class)
=C2=A0 =C2=A0 [javac]=C2=A0 =C2=A0 =C2=A0unable to access file: corrupted z= ip file
=C2=A0 =C2=A0 [javac]=C2=A0 =C2=A0 =C2=A0Please remove or make sure it appe= ars in the correct subdirectory 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 t= his 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.=C2=A0 I can access the<= br> file without problems.=C2=A0 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-h= amcrest-java-1.3/build/hamcrest-core-1.3.jar
/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-java-1.3/build/hamcrest-core-1.3.jar
$ file org/hamcrest/Description.class
org/hamcrest/Description.class: compiled Java class data, version 49.0= (Java 1.5)
--8<---------------cut here---------------end--------------->8--= -

Any ideas?


Yes, I have run into this already when= doing the updates for java8. Debian seems to have a patch for this here:


This failure is not deterministic,= this is how it managed to get through my filter :)

It seems that forcing not to use a parallel build is also a solution.

I haven't tried if we can use the patch as is.=C2= =A0

WDYT?


= =C2=A0
--
Ricardo




--000000000000ce58d2056bc98e75-- From unknown Wed Jun 25 10:54:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#31390: java-hamcrest-all fails to build Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 09 May 2018 19:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 31390 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: =?UTF-8?Q?G=C3=A1bor?= Boskovits Cc: 31390@debbugs.gnu.org Received: via spool by 31390-submit@debbugs.gnu.org id=B31390.152589418421886 (code B ref 31390); Wed, 09 May 2018 19:30:03 +0000 Received: (at 31390) by debbugs.gnu.org; 9 May 2018 19:29:44 +0000 Received: from localhost ([127.0.0.1]:55564 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGUmW-0005gw-As for submit@debbugs.gnu.org; Wed, 09 May 2018 15:29:44 -0400 Received: from pegasus.bbbm.mdc-berlin.de ([141.80.25.20]:38880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGUmU-0005go-Lt for 31390@debbugs.gnu.org; Wed, 09 May 2018 15:29:43 -0400 Received: from localhost (localhost [127.0.0.1]) by pegasus.bbbm.mdc-berlin.de (Postfix) with ESMTP id B186589F6EE; Wed, 9 May 2018 21:29:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:in-reply-to:subject:subject:from:from :user-agent:references:received:received:received:received; s= mdc; t=1525894176; x=1527708577; bh=axFAVaFs2gpl0bD7AdA7QHpu77zf FzAlLLKB7NSrAdk=; b=Qze6zd4PQ96wvD332G8xI6+EjoY/0SpxYb2J0J7hqohc tktiR7zzpqPrnHBHUJQ9PY17Uv7/+E6yG+v7ebvulmCnPUCAMDDN1PuY3ZTTw94n G11CZyWEze+zViiWwdBRwNbkp3tckHD+82QrV07Qnw1hzzkljTqpUOJUSgDGgfk= X-Virus-Scanned: amavisd-new at mdc-berlin.de 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 dPNp3nVZI16i; Wed, 9 May 2018 21:29:36 +0200 (CEST) Received: from HTCAONE.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; Wed, 9 May 2018 21:29:36 +0200 (CEST) Received: from SW-IT-P-CAS2.mdc-berlin.net (141.80.113.54) by HTCAONE.mdc-berlin.net (141.80.180.120) with Microsoft SMTP Server (TLS) id 14.3.389.1; Wed, 9 May 2018 21:29:36 +0200 Received: from localhost (141.80.113.52) by SW-IT-P-CAS2.mdc-berlin.net (141.80.113.54) with Microsoft SMTP Server id 14.3.389.1; Wed, 9 May 2018 21:29:35 +0200 References: <87r2mlf4z6.fsf@mdc-berlin.de> User-agent: mu4e 1.0; emacs 25.3.1 From: Ricardo Wurmus In-Reply-To: X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Wed, 9 May 2018 21:29:24 +0200 Message-ID: <87in7wfx0r.fsf@mdc-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Originating-IP: [141.80.113.52] X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.2.1013-23834.002 X-TM-AS-Result: No-2.079800-8.000000-10 X-TMASE-MatchedRID: nVQUmLJJeyZ73HU3OUveQfHkpkyUphL9L01z5MeyVUKCsBeCv8CM/Xik i0zUgl6qTRWki2jxCEvK+QFXYp+GtdRfHfhnpgnIc+QhWKJM04M7pfSjRsD2Oh1jWjAZHoEn1qP GHoKHlQXCP9g3ER+qiWCFhtFDYTHGQLBrHsp/dPOeAiCmPx4NwJwhktVkBBrQxq9PbUOwsP9QSF bL1bvQAcK21zBg2KlfuVfc976pNypw1VMA0puAgVAtYN8ktCR2BN2kJsRGhkopA/5vwRuJ1+JbF tj3nJ/8TFrHe7Zh/RiJgO6Qs2yQZBNRNq24dklecz84mXZ3lwUh7t9hCRKsYWJcH/aHPIScyguI bexKOthTAneKrEo/mw== X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--2.079800-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.2.1013-23834.002 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) G=C3=A1bor Boskovits writes: > Yes, I have run into this already when doing the updates for java8. Debian > seems to have a patch for this here: > https://anonscm.debian.org/viewvc/pkg-java/trunk/libhamcrest-java/debian/= patches/002-random-build-failure.patch?view=3Dlog The patch would require adding java-hamcrest-core to the inputs and ensuring that it is on the classpath at build time. I=E2=80=99ll give that= a try. > It seems that forcing not to use a parallel build is also a solution. Unfortunately, I don=E2=80=99t know how to guarantee this. It seems to be = a JRE feature to use more cores when available. -- Ricardo From unknown Wed Jun 25 10:54:37 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ricardo Wurmus Subject: bug#31390: closed (bug#31390: java-hamcrest-all fails to build) Message-ID: References: <878t6t3d7e.fsf@elephly.net> <87r2mlf4z6.fsf@mdc-berlin.de> X-Gnu-PR-Message: they-closed 31390 X-Gnu-PR-Package: guix Reply-To: 31390@debbugs.gnu.org Date: Mon, 02 Jul 2018 14:50:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1530543002-20772-1" This is a multi-part message in MIME format... ------------=_1530543002-20772-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #31390: java-hamcrest-all fails to build which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 31390@debbugs.gnu.org. --=20 31390: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D31390 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1530543002-20772-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 31390-done) by debbugs.gnu.org; 2 Jul 2018 14:49:33 +0000 Received: from localhost ([127.0.0.1]:43670 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fa08y-0005OK-V3 for submit@debbugs.gnu.org; Mon, 02 Jul 2018 10:49:33 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fa08x-0005OB-02 for 31390-done@debbugs.gnu.org; Mon, 02 Jul 2018 10:49:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1530542952; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; l=64; bh=xcldaR4EnSEa44pdqDVlI7BCZnaY8O8F9OCPAhj7EYA=; b=F+5e3/y9mLpXkPlMG0b5Cnqa+6IWLYlfWWRyX1lH6nSLHb6XzUSHy9VDSaooFpTG u3ytVCHnvBlhfItGSbFJdZsRFNQExYuSVRelwr5q+GTK5MeW+IQAiVz57u6eGEwTFNc q4c6Jips7RZWpQV6U4uqs5Q27NWmNKazxRCeNatI= Received: from localhost (141.80.247.162 [141.80.247.162]) by mx.zohomail.com with SMTPS id 1530542952433876.0058206576388; Mon, 2 Jul 2018 07:49:12 -0700 (PDT) User-agent: mu4e 1.0; emacs 26.1 From: Ricardo Wurmus To: 31390-done@debbugs.gnu.org Subject: bug#31390: java-hamcrest-all fails to build X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Mon, 02 Jul 2018 16:49:09 +0200 Message-ID: <878t6t3d7e.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 31390-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This should be fixed now with commit 2cc63e6fc. -- Ricardo ------------=_1530543002-20772-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 9 May 2018 11:24:00 +0000 Received: from localhost ([127.0.0.1]:54868 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGNCS-0008AP-8x for submit@debbugs.gnu.org; Wed, 09 May 2018 07:24:00 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39011) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fGNCN-0008AA-OH for submit@debbugs.gnu.org; Wed, 09 May 2018 07:23:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGNCG-00080V-ID for submit@debbugs.gnu.org; Wed, 09 May 2018 07:23:50 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44482) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fGNCG-000803-Dk for submit@debbugs.gnu.org; Wed, 09 May 2018 07:23:48 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mdc-berlin.de; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:subject:subject:from:from:user-agent :received:received:received:received; s=mdc; t=1525865011; x= 1527679412; bh=p69nT72k5QoaD6fNk8++h3x1GFSbioibFRoXHMCUiNA=; b=T 7MFCvxVJWEhHSO7JwAsmT5JAosavs9ls+7AFcDL3qSRudI7tRyIaTeSLvNizeddF k9h3ljl1Y3zFY13/OsDGkLw8cHEhez7Ce/jLBulTzJ/ghE9MkLW3G9MewkW8UUg2 XXV6ifW8+vhZ/vPbxVKfHlcSoIV5giK8t0psc8yMwM= X-Virus-Scanned: amavisd-new at mdc-berlin.de 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) Received: from SW-IT-P-CAS3.mdc-berlin.net (141.80.113.58) by HTCATWO.mdc-berlin.net (141.80.180.190) with Microsoft SMTP Server (TLS) id 14.3.389.1; Wed, 9 May 2018 13:23:05 +0200 Received: from localhost (141.80.113.52) by SW-IT-P-CAS3.mdc-berlin.net (141.80.113.58) with Microsoft SMTP Server id 14.3.389.1; Wed, 9 May 2018 13:23:04 +0200 User-agent: mu4e 1.0; emacs 25.3.1 From: Ricardo Wurmus To: Subject: java-hamcrest-all fails to build X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC 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 X-Originating-IP: [141.80.113.52] X-TM-AS-Product-Ver: SMEX-12.5.0.1300-8.2.1013-23832.006 X-TM-AS-Result: No-5.604900-8.000000-10 X-TMASE-MatchedRID: xVehR4QlmfIlhPOjqhY78HQIOMndeKgEWwKGivsEuI2afu7GwPW5Jvh5 gT8kXkoMk6ayu2dY46kNBaBCS6tQ1M637+A5hpnFMJoQm3jo+mm2McZY43zJ40JqedX9vt/Zx62 K9vpeVDE9I+RojwVYZEOFDM1LbWcQNtywwIf5ksVtD1qg9KZYkWiKlrB8TSDq+Cckfm+bb6Dvi+ zrzomcGcHUAqpcfRKLD8Dk6W5q3X/vhXJXrUkYg+qwWVBfMuvoQjbgUltv2VJ85YbmMPCbEwrUa OXZFU93uBuhd8k/y5GgVbxI8zQaQr9ZdlL8eonaC24oEZ6SpSk6XEE7Yhw4FmCjZapxFkw+2NJf Hth71RZXwyPfpHupKp/yPV47aQCXiMR0/iN4mks= X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.604900-8.000000 X-TMASE-Version: SMEX-12.5.0.1300-8.2.1013-23832.006 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.0 (------) 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 ------------=_1530543002-20772-1--