GNU bug report logs - #36685
ant-bootstrap fails on core-updates (409 dependents)

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix; Reported by: Chris Marusich <cmmarusich@HIDDEN>; dated Tue, 16 Jul 2019 06:59:01 UTC; Maintainer for guix is bug-guix@HIDDEN.

Message received at 36685 <at> debbugs.gnu.org:


Received: (at 36685) by debbugs.gnu.org; 21 Jul 2019 11:29:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jul 21 07:29:39 2019
Received: from localhost ([127.0.0.1]:58169 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hpA26-00045h-Py
	for submit <at> debbugs.gnu.org; Sun, 21 Jul 2019 07:29:39 -0400
Received: from sender-of-o51.zoho.com ([135.84.80.216]:21245)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1hpA24-00045W-HU
 for 36685 <at> debbugs.gnu.org; Sun, 21 Jul 2019 07:29:37 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1563708555; cv=none; d=zoho.com; s=zohoarc; 
 b=hUZofGvz9r1tEsOEFWSq5qS0qczKhIYpjCC7qtMO29TnC0Lgc3R0jh9DgOPXPiMeawOP82BvpYMeb/IQXI/yLX2WCtbLRS0GR3kXzfcWeW2Ph9O3rksVaGhpv3QocubZl8atcETnNXCfcbVjNC6GrhaAFtXgE9IVhIS7aZA65bM=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com;
 s=zohoarc; t=1563708555;
 h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results;
 bh=1s9i+zfIIOxUcq2p2b38XaosX1/Nh07CadV8SRGEva4=; 
 b=Ce1tcjpomNsHs7KAZUT+QwRD12Mndf0hOQuHxmJeirCfkfTBSuQAwyJHN19a3GIOzcio0SF/NnM6A4w1hfPfGTIpuekV/m/9hXeepw72Pci3W59UIbNJ6Sn+TubaXvdkGcpIBGWwRMXs+tj8iq1yjX88MU6/fjawUv6Oe9koT7g=
ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1563708555; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type;
 l=4643; bh=1s9i+zfIIOxUcq2p2b38XaosX1/Nh07CadV8SRGEva4=;
 b=Hc+SbNrSlm+csN9oLPKlZpw7x5vZWUUdAzhKTuFawj88kt9W1fI1m/nlWzcu8+T6
 bPkYEfiKASCpg9VYFmEXOqeqX8E9cZXT0GtDXv0w3RiFV22X+93JNXs23n+9uwvMLMU
 6tIovQ7wFwEpuaYCEioC00HcwjcHXtx//UWTaAeQ=
Received: from localhost (p4FD5A427.dip0.t-ipconnect.de [79.213.164.39]) by
 mx.zohomail.com with SMTPS id 156370855435858.310047761470855;
 Sun, 21 Jul 2019 04:29:14 -0700 (PDT)
References: <8736j61n57.fsf@HIDDEN> <87o91ugdot.fsf@HIDDEN>
 <87ftn5gjzw.fsf@HIDDEN> <871ryogu6j.fsf@HIDDEN>
 <87r26nfwes.fsf@HIDDEN> <87a7dafntp.fsf@HIDDEN>
 <CAE4v=pjmPSRCiqBauVMhK=CgfzLnUoN_z8UGfzu7A8uAdFMUbQ@HIDDEN>
 <878ssufajf.fsf@HIDDEN> <875znyf0mr.fsf@HIDDEN>
 <87zhl9drm6.fsf@HIDDEN> <20190720110612.3f33171f@HIDDEN>
 <87sgr0e7ot.fsf@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.2
From: Ricardo Wurmus <rekado@HIDDEN>
To: Julien Lepiller <julien@HIDDEN>
Subject: Re: bug#36685: ant-bootstrap fails on core-updates (409 dependents)
In-reply-to: <87sgr0e7ot.fsf@HIDDEN>
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: Sun, 21 Jul 2019 13:29:10 +0200
Message-ID: <87muh7eid5.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-ZohoMailClient: External
X-Zoho-Virus-Status: 1
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36685
Cc: Guix-devel <guix-devel@HIDDEN>, 36685 <at> debbugs.gnu.org,
 =?utf-8?Q?G=C3=A1bor?= Boskovits <boskovits@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain

So, with the following change I was able to build all the way up to the
latest openjdk.  Should we use it despite the introduction of a memory
leak in a bootstrap JVM?  Can we make the patch smaller (fewer uses of
glibc 2.28 or gcc-5)?

What do you think?


--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline; filename=java.diff

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 403c446a82..60363d60c3 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -116,6 +116,9 @@
                (base32
                 "1qqldrp74pzpy5ly421srqn30qppmm9cvjiqdngk8hf47dv2rc0c"))))
     (build-system gnu-build-system)
+    (native-inputs
+     `(("libc" ,glibc-2.28)
+       ("gcc" ,gcc-5)))
     (home-page "http://jikes.sourceforge.net/")
     (synopsis "Compiler for the Java language")
     (description "Jikes is a compiler that translates Java source files as
@@ -152,12 +155,20 @@ and binary format defined in The Java Virtual Machine Specification.")
              "--disable-gjdoc")
        #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'foo
+           (lambda _
+             (substitute* "native/jni/java-io/java_io_VMFile.c"
+               (("result = cpio_isFileExists.*" m)
+                (string-append m "\n//")))
+             #t))
          (add-after 'install 'install-data
            (lambda _ (invoke "make" "install-data"))))))
     (native-inputs
      `(("jikes" ,jikes)
        ("fastjar" ,fastjar)
        ("libltdl" ,libltdl)
+       ("gcc" ,gcc-5)
+       ("libc" ,glibc-2.28)
        ("pkg-config" ,pkg-config)))
     (home-page "https://www.gnu.org/software/classpath/")
     (synopsis "Essential libraries for Java")
@@ -191,6 +202,9 @@ language.")
      `(("classpath" ,classpath-bootstrap)
        ("jikes" ,jikes)
        ("zlib" ,zlib)))
+    (native-inputs
+     `(("libc" ,glibc-2.28)
+       ("gcc" ,gcc-5)))
     (home-page "http://jamvm.sourceforge.net/")
     (synopsis "Small Java Virtual Machine")
     (description "JamVM is a Java Virtual Machine conforming to the JVM
@@ -302,7 +316,9 @@ JNI.")
      `(("jikes" ,jikes)
        ("jamvm" ,jamvm-1-bootstrap)
        ("unzip" ,unzip)
-       ("zip" ,zip)))
+       ("zip" ,zip)
+       ("gcc" ,gcc-5)
+       ("libc" ,glibc-2.28)))
     (home-page "http://ant.apache.org")
     (synopsis "Build tool for Java")
     (description
@@ -627,7 +643,9 @@ machine.")))
          ("fastjar" ,fastjar)
          ("jamvm" ,jamvm-1-bootstrap)
          ("libltdl" ,libltdl)
-         ("pkg-config" ,pkg-config))))))
+         ("pkg-config" ,pkg-config)
+         ("gcc" ,gcc-5)
+         ("libc" ,glibc-2.28))))))
 
 (define jamvm
   (package (inherit jamvm-1-bootstrap)
@@ -656,7 +674,9 @@ machine.")))
      `(("guile" ,guile-2.2)
        ("ecj-bootstrap" ,ecj-bootstrap)
        ("jamvm" ,jamvm)
-       ("classpath" ,classpath-devel)))))
+       ("classpath" ,classpath-devel)
+       ("gcc" ,gcc-5)
+       ("libc" ,glibc-2.28)))))
 
 ;; The bootstrap JDK consisting of jamvm, classpath-devel,
 ;; ecj-javac-wrapper-final cannot build Icedtea 2.x directly, because it's
@@ -740,6 +760,9 @@ machine.")))
              (with-directory-excursion "openjdk"
                (invoke "tar" "xvf" (assoc-ref inputs "hotspot-src"))
                (rename-file "hg-checkout" "hotspot"))
+             (substitute* "patches/freetypeversion.patch"
+               (("REQUIRED_FREETYPE_VERSION = 2.2.1")
+                "REQUIRED_FREETYPE_VERSION = 2.10.1"))
              (substitute* "Makefile.in"
                (("echo \"ERROR: No up-to-date OpenJDK zip available\"; exit -1;")
                 "echo \"trust me\";")
@@ -907,7 +930,8 @@ machine.")))
        ("fastjar" ,fastjar)
        ("fontconfig" ,fontconfig)
        ("freetype" ,freetype)
-       ("gcc" ,gcc-4.9) ; there's a segmentation fault when compiling with gcc-5 or gcc-7
+       ("gcc" ,gcc-5)
+       ("libc" ,glibc-2.28)
        ("gtk" ,gtk+-2)
        ("gawk" ,gawk)
        ("giflib" ,giflib)
@@ -1107,6 +1131,18 @@ bootstrapping purposes.")
                                             ((name . _) name))
                                           inputs))))
                  #t)))
+           (add-after 'unpack 'patch-bitrot
+             (lambda _
+               (substitute* '("patches/boot/revert-6973616.patch"
+                              "openjdk.src/jdk/make/common/shared/Defs-versions.gmk")
+                 (("REQUIRED_FREETYPE_VERSION = 2.2.1")
+                  "REQUIRED_FREETYPE_VERSION = 2.10.1"))
+               ;; As of attr 2.4.48 this header is no longer
+               ;; included.  It is provided by the libc instead.
+               (substitute* '("configure"
+                              "openjdk.src/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c")
+                 (("attr/xattr.h") "sys/xattr.h"))
+               #t))
            (add-after 'unpack 'fix-x11-extension-include-path
              (lambda* (#:key inputs #:allow-other-keys)
                (substitute* "openjdk.src/jdk/make/sun/awt/mawt.gmk"
@@ -1586,6 +1622,7 @@ IcedTea build harness.")
                  (delete 'patch-paths)
                  (delete 'set-additional-paths)
                  (delete 'patch-patches)
+                 (delete 'patch-bitrot)
                  ;; Prevent the keytool from recording the current time when
                  ;; adding certificates at build time.
                  (add-after 'unpack 'patch-keystore

--=-=-=
Content-Type: text/plain


--
Ricardo

--=-=-=--





Information forwarded to bug-guix@HIDDEN:
bug#36685; Package guix. Full text available.

Message received at 36685 <at> debbugs.gnu.org:


Received: (at 36685) by debbugs.gnu.org; 20 Jul 2019 21:07:53 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 20 17:07:53 2019
Received: from localhost ([127.0.0.1]:57948 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1howa8-0005Cj-Tc
	for submit <at> debbugs.gnu.org; Sat, 20 Jul 2019 17:07:53 -0400
Received: from sender-of-o51.zoho.com ([135.84.80.216]:21290)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1howa6-0005Ca-LY
 for 36685 <at> debbugs.gnu.org; Sat, 20 Jul 2019 17:07:51 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1563656855; cv=none; d=zoho.com; s=zohoarc; 
 b=jz4NN+kl5TIn0gdGUg0TsNgXqpgig8vR5O6lL0Px1qJnaSCvdqLizfuiija+pSzwD2stJpFXyviEauR/6CrKCLBGH6oPenMG8Z7ohTdlwY5Q3JWczTbQS0fzI9GjwVmDeiiJIZx1w7+cyBZjEuWrdsE5GWNFHJp0974RxHHRVs8=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com;
 s=zohoarc; t=1563656855;
 h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results;
 bh=9dCWciNwPARJbb7KeKFh1wh74HhWV5vwDNNzVYF0h70=; 
 b=mo/HVIb5Z9ZCAnzpNKGpOPlAEaY4sQjz+K9MgY/U2syrB+pCvTtuQLVdOn0l5r8sbKYfZYuetUrHNVqHo+/E1GRuclUBV3TKcWwD9bBWFsXROhAuf6agB1PKU26SOXBo67j/NN/LiBQyQPMw03VLTByXcL2HMuMHikKp6+wkNdM=
ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1563656855; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;
 l=1062; bh=9dCWciNwPARJbb7KeKFh1wh74HhWV5vwDNNzVYF0h70=;
 b=ih94dkZ9IrOXPugOmZMtvaEP+X+h75b3xOH6spLf/mYxaakEFR9LEFke8JdR5w0u
 xsn1IpiQ7+ahlo3NlETfdnIXtv/kmt9o1B9lhFS1bD996wAE7oiw2lEaR3Roay0rIlw
 4vwrWhyLKH08A9eY9+PBjxcBIU/90c0NrmjxxiB8=
Received: from localhost (p4FD5ABB4.dip0.t-ipconnect.de [79.213.171.180]) by
 mx.zohomail.com with SMTPS id 1563656854015583.2473429174586;
 Sat, 20 Jul 2019 14:07:34 -0700 (PDT)
References: <8736j61n57.fsf@HIDDEN> <87o91ugdot.fsf@HIDDEN>
 <87ftn5gjzw.fsf@HIDDEN> <871ryogu6j.fsf@HIDDEN>
 <87r26nfwes.fsf@HIDDEN> <87a7dafntp.fsf@HIDDEN>
 <CAE4v=pjmPSRCiqBauVMhK=CgfzLnUoN_z8UGfzu7A8uAdFMUbQ@HIDDEN>
 <878ssufajf.fsf@HIDDEN> <875znyf0mr.fsf@HIDDEN>
 <87zhl9drm6.fsf@HIDDEN> <20190720110612.3f33171f@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.2
From: Ricardo Wurmus <rekado@HIDDEN>
To: Julien Lepiller <julien@HIDDEN>
Subject: Re: bug#36685: ant-bootstrap fails on core-updates (409 dependents)
In-reply-to: <20190720110612.3f33171f@HIDDEN>
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: Sat, 20 Jul 2019 23:07:30 +0200
Message-ID: <87sgr0e7ot.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-ZohoMailClient: External
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36685
Cc: Guix-devel <guix-devel@HIDDEN>, 36685 <at> debbugs.gnu.org,
 =?utf-8?Q?G=C3=A1bor?= Boskovits <boskovits@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Julien Lepiller <julien@HIDDEN> writes:

> Le Sat, 20 Jul 2019 10:42:25 +0200,
> Ricardo Wurmus <rekado@HIDDEN> a =C3=A9crit :
>
>> configure: error: Could not find required system headers; install the
>> appropriate files from glibc-headers, libc6-dev and/or libattr-devel,
>> libattr1-dev or use --disable-compile-against-syscalls if necessary.
>
> Can you check the content of config.log? It should tell you what test
> it runs to determine whether attr is present or not.

It=E2=80=99s pretty straight-forward: xattr.h is no longer provided by the =
attr
package.  sys/xattr.h from glibc should be used instead, so I=E2=80=99ve pa=
tched
it.

I fixed another problem in the icedtea 2 build and moved on.  Let=E2=80=99s=
 see
how far I=E2=80=99ll get this time.  In the meantime it would be great to r=
each
consensus on whether we should shrug off the patch that introduces a
memory leak in GNU Classpath 0.93 as part of the bootstrap or if we
should spend more time trying to figure out how we can avoid it.

--
Ricardo





Information forwarded to bug-guix@HIDDEN:
bug#36685; Package guix. Full text available.

Message received at 36685 <at> debbugs.gnu.org:


Received: (at 36685) by debbugs.gnu.org; 20 Jul 2019 09:06:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 20 05:06:20 2019
Received: from localhost ([127.0.0.1]:56812 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1holJs-00014l-KO
	for submit <at> debbugs.gnu.org; Sat, 20 Jul 2019 05:06:20 -0400
Received: from lepiller.eu ([89.234.186.109]:35108)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <julien@HIDDEN>) id 1holJq-00014b-N3
 for 36685 <at> debbugs.gnu.org; Sat, 20 Jul 2019 05:06:19 -0400
Received: from sybil.lepiller.eu (89-92-10-229.hfc.dyn.abo.bbox.fr
 [89.92.10.229]) by lepiller.eu (OpenSMTPD) with ESMTPSA id bb172c18
 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); 
 Sat, 20 Jul 2019 09:06:16 +0000 (UTC)
Date: Sat, 20 Jul 2019 11:06:12 +0200
From: Julien Lepiller <julien@HIDDEN>
To: Ricardo Wurmus <rekado@HIDDEN>
Subject: Re: bug#36685: ant-bootstrap fails on core-updates (409 dependents)
Message-ID: <20190720110612.3f33171f@HIDDEN>
In-Reply-To: <87zhl9drm6.fsf@HIDDEN>
References: <8736j61n57.fsf@HIDDEN> <87o91ugdot.fsf@HIDDEN>
 <87ftn5gjzw.fsf@HIDDEN> <871ryogu6j.fsf@HIDDEN>
 <87r26nfwes.fsf@HIDDEN> <87a7dafntp.fsf@HIDDEN>
 <CAE4v=pjmPSRCiqBauVMhK=CgfzLnUoN_z8UGfzu7A8uAdFMUbQ@HIDDEN>
 <878ssufajf.fsf@HIDDEN> <875znyf0mr.fsf@HIDDEN>
 <87zhl9drm6.fsf@HIDDEN>
X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-unknown-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36685
Cc: Guix-devel <guix-devel@HIDDEN>, 36685 <at> debbugs.gnu.org,
 =?UTF-8?B?R8OhYm9y?= Boskovits <boskovits@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Le Sat, 20 Jul 2019 10:42:25 +0200,
Ricardo Wurmus <rekado@HIDDEN> a =C3=A9crit :

> configure: error: Could not find required system headers; install the
> appropriate files from glibc-headers, libc6-dev and/or libattr-devel,
> libattr1-dev or use --disable-compile-against-syscalls if necessary.

Can you check the content of config.log? It should tell you what test
it runs to determine whether attr is present or not.




Information forwarded to bug-guix@HIDDEN:
bug#36685; Package guix. Full text available.

Message received at 36685 <at> debbugs.gnu.org:


Received: (at 36685) by debbugs.gnu.org; 20 Jul 2019 08:42:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jul 20 04:42:46 2019
Received: from localhost ([127.0.0.1]:56803 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hokx4-0000WT-8M
	for submit <at> debbugs.gnu.org; Sat, 20 Jul 2019 04:42:46 -0400
Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21395)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1hokx1-0000WK-Fz
 for 36685 <at> debbugs.gnu.org; Sat, 20 Jul 2019 04:42:44 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1563612150; cv=none; d=zoho.com; s=zohoarc; 
 b=QoJU6/tjVVKt4i8Lv0ixh1tZ2X6gEsGULxpX7EQlQaj7wtb6CecflIh6+YbbMn0mTkAL37VNby1hAOKc0ppiA8bwIyyltl+YcXz82A9daXBABqcAUZJhnOC433VkqenqKydqwYLZ88LNXJBubuMDTm3Q5wBy8WNvR2pSMc0LjpI=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com;
 s=zohoarc; t=1563612150;
 h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results;
 bh=SVhslmNRt0LnAfttDUiPlkVSlWS65IgR4qNW1jMLpHc=; 
 b=Og8MCCcYV/Z+EJMZ/0oJ+ue8+d3BUSKMJCfv/Ue2Ze7VQLgGgZCHz0IZqOXIYaGj2/zQKpVhrqowlRarwuOfzWw/oXtiyIznLTWWOK1iPqf8sHtIORqWl9yCnub3TFU9+2c1WAEksqdfY6XVRV0Pm29egD6Xr3RZxg5kROPLtEE=
ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1563612150; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;
 l=1946; bh=SVhslmNRt0LnAfttDUiPlkVSlWS65IgR4qNW1jMLpHc=;
 b=cWRRygKqhszf8b3vfSE0pAjNXY8VZUAPmkb5u2RkSnXAkkh+YEVOUBedRPxsCYnK
 zDiXRD2P/rtvJgFpPXc41wcUlx6EXelAASahOgpn2CiTSiW9qGdOUKryRUM1SfQ3jOa
 wfaCkC8oFsAPizdwWhN3dAuwizgwWYoYMs5FRRFQ=
Received: from localhost (p4FD5ABB4.dip0.t-ipconnect.de [79.213.171.180]) by
 mx.zohomail.com with SMTPS id 1563612148346339.46397715400474;
 Sat, 20 Jul 2019 01:42:28 -0700 (PDT)
References: <8736j61n57.fsf@HIDDEN> <87o91ugdot.fsf@HIDDEN>
 <87ftn5gjzw.fsf@HIDDEN> <871ryogu6j.fsf@HIDDEN>
 <87r26nfwes.fsf@HIDDEN> <87a7dafntp.fsf@HIDDEN>
 <CAE4v=pjmPSRCiqBauVMhK=CgfzLnUoN_z8UGfzu7A8uAdFMUbQ@HIDDEN>
 <878ssufajf.fsf@HIDDEN> <875znyf0mr.fsf@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.2
From: Ricardo Wurmus <rekado@HIDDEN>
To: =?utf-8?Q?G=C3=A1bor?= Boskovits <boskovits@HIDDEN>
Subject: Re: bug#36685: ant-bootstrap fails on core-updates (409 dependents)
In-reply-to: <875znyf0mr.fsf@HIDDEN>
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: Sat, 20 Jul 2019 10:42:25 +0200
Message-ID: <87zhl9drm6.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-ZohoMailClient: External
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36685
Cc: Guix-devel <guix-devel@HIDDEN>, 36685 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Ricardo Wurmus <rekado@HIDDEN> writes:

> The build aborts early with =E2=80=9CERROR: FreeType version 2.2.1 or hig=
her is
> required.=E2=80=9D  So I added this:
>
>   (substitute* "patches/freetypeversion.patch"
>    (("REQUIRED_FREETYPE_VERSION =3D 2.2.1")
>     "REQUIRED_FREETYPE_VERSION =3D 2.10.1"))
>
> and icedtea is being built now.

Next problem: icedtea 2 fails its configure phase:

--8<---------------cut here---------------start------------->8---
checking attr/xattr.h usability... no
checking attr/xattr.h presence... no
checking for attr/xattr.h... no
configure: error: Could not find required system headers; install the appro=
priate files from glibc-headers, libc6-dev and/or libattr-devel, libattr1-d=
ev or use --disable-compile-against-syscalls if necessary.
command "/gnu/store/h9c5g3inn5zmkixk08m27zzpj58zbfgy-bash-minimal-5.0.7/bin=
/bash" "./configure" "CONFIG_SHELL=3D/gnu/store/h9c5g3inn5zmkixk08m27zzpj58=
zbfgy-bash-minimal-5.0.7/bin/bash" "SHELL=3D/gnu/store/h9c5g3inn5zmkixk08m2=
7zzpj58zbfgy-bash-minimal-5.0.7/bin/bash" "--prefix=3D/gnu/store/wg3ywf88n2=
qd1hpc8fk39svm9ksah1l4-icedtea-2.6.13" "--enable-fast-install" "--docdir=3D=
/gnu/store/4l3xf1dmbx9494ica8cgllm6dvs3py2n-icedtea-2.6.13-doc/share/doc/ic=
edtea" "--build=3Dx86_64-unknown-linux-gnu" "--disable-system-pcsc" "--disa=
ble-system-sctp" "--enable-bootstrap" "--enable-nss" "--without-rhino" "--d=
isable-downloading" "--disable-tests" "--with-openjdk-src-dir=3D./openjdk.s=
rc" "--with-jdk-home=3D/gnu/store/r4jz94v5xjxw95s0msxdxm36hlv07x64-icedtea-=
1.13.13-jdk" failed with status 1
builder for `/gnu/store/cda07il6lpg0j9l8blx5z8ah8d7wmjlz-icedtea-2.6.13.drv=
' failed with exit code 1
build of /gnu/store/cda07il6lpg0j9l8blx5z8ah8d7wmjlz-icedtea-2.6.13.drv fai=
led
--8<---------------cut here---------------end--------------->8---

Of course the inputs include the attr package.  Any ideas?

--
Ricardo





Information forwarded to bug-guix@HIDDEN:
bug#36685; Package guix. Full text available.

Message received at 36685 <at> debbugs.gnu.org:


Received: (at 36685) by debbugs.gnu.org; 19 Jul 2019 16:30:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 19 12:30:26 2019
Received: from localhost ([127.0.0.1]:56490 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hoVm6-0007Zy-B1
	for submit <at> debbugs.gnu.org; Fri, 19 Jul 2019 12:30:26 -0400
Received: from sender-of-o51.zoho.com ([135.84.80.216]:21256)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1hoVm4-0007Zq-PL
 for 36685 <at> debbugs.gnu.org; Fri, 19 Jul 2019 12:30:25 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1563553809; cv=none; d=zoho.com; s=zohoarc; 
 b=Py13FNmYyyhGWaF3K2qPe5jQDX81QzXN5JaIZXRurxhmEXvpdUO1dLoqG/2LdNRkaIsOPx5ydiIssMB1xBNPGeL2tbbmJjTMUjsL7qe2yEFQkERj5enVFhEioQDUjMqk9OR0UdhJDyTwDAedKCdEujtr/ElYRjNPLidgjL/oGyY=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com;
 s=zohoarc; t=1563553809;
 h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results;
 bh=4CFIZoP8LQ80RnttzB5PTNBNd136OdxW/VA2F+gUqJw=; 
 b=i7c5CtvMWK0YPCBG+kYIBw8zZH0FXwP5uK3cwQlTMMN8zamdDo55U81Ax6VhKHXJLHb5kRhvemOKTghkj5u6nosn1toj5l1n610qGZw5/kGMh44/ll/YOBJE4ZJa38jVZHCeuH6pgPK/qNlknJDI5TgTRUtS/jl8hvEStcNHMbU=
ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1563553809; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;
 l=3794; bh=4CFIZoP8LQ80RnttzB5PTNBNd136OdxW/VA2F+gUqJw=;
 b=BkjbDaAxYtaHyoFUNEKDaXhE6pZZ1cnXRVGw6UH/Ie8tAMny3Dhb7JDxMlVUW93q
 DR2d0UhRbpZ8nkrEQ4E/a2N/tWgSOSLmHJBwgBWkEUPKnzr544UjHcyAUYc0girLpnz
 10yxP67/veuehLih/wuqpGJ1NC82Tml5zZVbQYHI=
Received: from localhost (p54AD4F2D.dip0.t-ipconnect.de [84.173.79.45]) by
 mx.zohomail.com with SMTPS id 1563553808827991.0545125690368;
 Fri, 19 Jul 2019 09:30:08 -0700 (PDT)
References: <8736j61n57.fsf@HIDDEN> <87o91ugdot.fsf@HIDDEN>
 <87ftn5gjzw.fsf@HIDDEN> <871ryogu6j.fsf@HIDDEN>
 <87r26nfwes.fsf@HIDDEN> <87a7dafntp.fsf@HIDDEN>
 <CAE4v=pjmPSRCiqBauVMhK=CgfzLnUoN_z8UGfzu7A8uAdFMUbQ@HIDDEN>
 <878ssufajf.fsf@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.2
From: Ricardo Wurmus <rekado@HIDDEN>
To: =?utf-8?Q?G=C3=A1bor?= Boskovits <boskovits@HIDDEN>
Subject: Re: bug#36685: ant-bootstrap fails on core-updates (409 dependents)
In-reply-to: <878ssufajf.fsf@HIDDEN>
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: Fri, 19 Jul 2019 18:30:04 +0200
Message-ID: <875znyf0mr.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-ZohoMailClient: External
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36685
Cc: Guix-devel <guix-devel@HIDDEN>, 36685 <at> debbugs.gnu.org,
 Chris Marusich <cmmarusich@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Ricardo Wurmus <rekado@HIDDEN> writes:

>>> Illegal instruction?  This uses JamVM 2.0.0 as the JVM.  I=E2=80=99ll t=
ry to
>>> figure out what instruction this is and where it comes from.
>>
>> I hit the same bug now.
>
> Good.  We need to figure out why =E2=80=93 is it miscompilation?  Tuning =
to a
> different CPU type=E2=80=A6?

With this patch I can get past the configure phase in icedtea:

--8<---------------cut here---------------start------------->8---
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 403c446a82..14179f85e9 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -116,6 +116,9 @@
                (base32
                 "1qqldrp74pzpy5ly421srqn30qppmm9cvjiqdngk8hf47dv2rc0c"))))
     (build-system gnu-build-system)
+    (native-inputs
+     `(("libc" ,glibc-2.28)
+       ("gcc" ,gcc-5)))
     (home-page "http://jikes.sourceforge.net/")
     (synopsis "Compiler for the Java language")
     (description "Jikes is a compiler that translates Java source files as
@@ -152,12 +155,20 @@ and binary format defined in The Java Virtual Machine=
 Specification.")
              "--disable-gjdoc")
        #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'foo
+           (lambda _
+             (substitute* "native/jni/java-io/java_io_VMFile.c"
+               (("result =3D cpio_isFileExists.*" m)
+                (string-append m "\n//")))
+             #t))
          (add-after 'install 'install-data
            (lambda _ (invoke "make" "install-data"))))))
     (native-inputs
      `(("jikes" ,jikes)
        ("fastjar" ,fastjar)
        ("libltdl" ,libltdl)
+       ("gcc" ,gcc-5)
+       ("libc" ,glibc-2.28)
        ("pkg-config" ,pkg-config)))
     (home-page "https://www.gnu.org/software/classpath/")
     (synopsis "Essential libraries for Java")
@@ -191,6 +202,9 @@ language.")
      `(("classpath" ,classpath-bootstrap)
        ("jikes" ,jikes)
        ("zlib" ,zlib)))
+    (native-inputs
+     `(("libc" ,glibc-2.28)
+       ("gcc" ,gcc-5)))
     (home-page "http://jamvm.sourceforge.net/")
     (synopsis "Small Java Virtual Machine")
     (description "JamVM is a Java Virtual Machine conforming to the JVM
@@ -302,7 +316,9 @@ JNI.")
      `(("jikes" ,jikes)
        ("jamvm" ,jamvm-1-bootstrap)
        ("unzip" ,unzip)
-       ("zip" ,zip)))
+       ("zip" ,zip)
+       ("gcc" ,gcc-5)
+       ("libc" ,glibc-2.28)))
     (home-page "http://ant.apache.org")
     (synopsis "Build tool for Java")
     (description
@@ -627,7 +643,9 @@ machine.")))
          ("fastjar" ,fastjar)
          ("jamvm" ,jamvm-1-bootstrap)
          ("libltdl" ,libltdl)
-         ("pkg-config" ,pkg-config))))))
+         ("pkg-config" ,pkg-config)
+         ("gcc" ,gcc-5)
+         ("libc" ,glibc-2.28))))))

 (define jamvm
   (package (inherit jamvm-1-bootstrap)
@@ -656,7 +674,9 @@ machine.")))
      `(("guile" ,guile-2.2)
        ("ecj-bootstrap" ,ecj-bootstrap)
        ("jamvm" ,jamvm)
-       ("classpath" ,classpath-devel)))))
+       ("classpath" ,classpath-devel)
+       ("gcc" ,gcc-5)
+       ("libc" ,glibc-2.28)))))

 ;; The bootstrap JDK consisting of jamvm, classpath-devel,
 ;; ecj-javac-wrapper-final cannot build Icedtea 2.x directly, because it's
@@ -907,7 +927,10 @@ machine.")))
        ("fastjar" ,fastjar)
        ("fontconfig" ,fontconfig)
        ("freetype" ,freetype)
-       ("gcc" ,gcc-4.9) ; there's a segmentation fault when compiling with=
 gcc-5 or gcc-7
+       ;;("gcc" ,gcc-4.9) ; there's a segmentation fault when compiling wi=
th gcc-5 or gcc-7
+       ("gcc" ,gcc-5)
+       ("libc" ,glibc-2.28)
+
        ("gtk" ,gtk+-2)
        ("gawk" ,gawk)
        ("giflib" ,giflib)
--8<---------------cut here---------------end--------------->8---

The build aborts early with =E2=80=9CERROR: FreeType version 2.2.1 or highe=
r is
required.=E2=80=9D  So I added this:

  (substitute* "patches/freetypeversion.patch"
   (("REQUIRED_FREETYPE_VERSION =3D 2.2.1")
    "REQUIRED_FREETYPE_VERSION =3D 2.10.1"))

and icedtea is being built now.

We may want to check where the use of glibc-2.28 and gcc-5 is really
needed and where we can do without.

--
Ricardo





Information forwarded to bug-guix@HIDDEN:
bug#36685; Package guix. Full text available.

Message received at 36685 <at> debbugs.gnu.org:


Received: (at 36685) by debbugs.gnu.org; 19 Jul 2019 12:56:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 19 08:56:14 2019
Received: from localhost ([127.0.0.1]:55353 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hoSQo-000898-At
	for submit <at> debbugs.gnu.org; Fri, 19 Jul 2019 08:56:14 -0400
Received: from sender-of-o51.zoho.com ([135.84.80.216]:21265)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1hoSQm-00088z-EV
 for 36685 <at> debbugs.gnu.org; Fri, 19 Jul 2019 08:56:13 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1563540969; cv=none; d=zoho.com; s=zohoarc; 
 b=I/ZOweukqD4XE2BRZalq4swhl8X2/zQJuWp/7InaN+HfFzwDeLR48R8ndHrGEHTesoixteVTzCq721lZB651hSQhtBLqYqQnGOQg3ukN5HTHpF5oIr6J2yICInCCfQ0AmFDuC0vPKP9+KV67KGtGTR6/5SweDcFUeVC/qulD54A=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com;
 s=zohoarc; t=1563540969;
 h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results;
 bh=PGLn5Jb7nLBXPEbep6DWLj8FOBCYg/69Z8+M0OD/3Uk=; 
 b=iPqoCgbkGPPCTbrW6YLCMMG9Kn+nt43Wk2lo5iSROWhr8MONGyCwR1J+sCH9qBiLC6jmXT8BPYicg+PlNEj9R5l8HSi2KHg69szDyeTargTthKZzqhDU/FQuoxZTOHgBG+PE/9yvB0pW7lnRF/nM4609kuFSd1ItKYX5ypI5EPM=
ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1563540969; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;
 l=2350; bh=PGLn5Jb7nLBXPEbep6DWLj8FOBCYg/69Z8+M0OD/3Uk=;
 b=Yg6NOZTY2oM4/lDuITl/nghZJZUH+SW0YgDeVHEy8V98LT0+JiFitEd3drc0qX5d
 EYPOpD74DYOoSKkcjL4lkk2FubXB594991GadRW9K9n87NofpYC7NCaEN2o3jAXGtQa
 yd0OlJhqiQYsVv0EAeErlaq+h2394xDSFxnuKTOQ=
Received: from localhost (141.80.247.250 [141.80.247.250]) by mx.zohomail.com
 with SMTPS id 1563540968184643.19169628824;
 Fri, 19 Jul 2019 05:56:08 -0700 (PDT)
References: <8736j61n57.fsf@HIDDEN> <87o91ugdot.fsf@HIDDEN>
 <87ftn5gjzw.fsf@HIDDEN> <871ryogu6j.fsf@HIDDEN>
 <87r26nfwes.fsf@HIDDEN> <87a7dafntp.fsf@HIDDEN>
 <CAE4v=pjmPSRCiqBauVMhK=CgfzLnUoN_z8UGfzu7A8uAdFMUbQ@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.2
From: Ricardo Wurmus <rekado@HIDDEN>
To: =?utf-8?Q?G=C3=A1bor?= Boskovits <boskovits@HIDDEN>
Subject: Re: bug#36685: ant-bootstrap fails on core-updates (409 dependents)
In-reply-to: <CAE4v=pjmPSRCiqBauVMhK=CgfzLnUoN_z8UGfzu7A8uAdFMUbQ@HIDDEN>
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: Fri, 19 Jul 2019 14:56:04 +0200
Message-ID: <878ssufajf.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-ZohoMailClient: External
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36685
Cc: Guix-devel <guix-devel@HIDDEN>, 36685 <at> debbugs.gnu.org,
 Chris Marusich <cmmarusich@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Hi G=C3=A1bor,

> Ricardo Wurmus <rekado@HIDDEN> ezt =C3=ADrta (id=C5=91pont: 2019. j=
=C3=BAl. 19., P,
> 8:09):
>
>>
>> Ricardo Wurmus <rekado@HIDDEN> writes:
>> > Here=E2=80=99s a shorter patch:
>> >
>> > --8<---------------cut here---------------start------------->8---
>> > diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
>> > index 403c446a82..bd98784232 100644
>> > --- a/gnu/packages/java.scm
>> > +++ b/gnu/packages/java.scm
>> > @@ -152,6 +152,13 @@ and binary format defined in The Java Virtual
>> Machine Specification.")
>> >               "--disable-gjdoc")
>> >         #:phases
>> >         (modify-phases %standard-phases
>> > +         (add-after 'unpack 'foo
>> > +           (lambda _
>> > +             (substitute* "native/jni/java-io/java_io_VMFile.c"
>> > +               (("result =3D cpio_isFileExists.*" m)
>> > +                (string-append m "
>> > +//Without a long comment the Java side will return \"true\" on x86_64
>> all the time.")))
>> > +             #t))
>> >           (add-after 'install 'install-data
>> >             (lambda _ (invoke "make" "install-data"))))))
>> >      (native-inputs
>> > --8<---------------cut here---------------end--------------->8---
>> >
>> > This only adds a comment.  If the comment is too short it won=E2=80=99=
t work.
>>
>>
> I confirm this path works.
> I tested a modified version, where I took out the comment text. It also
> works that way.

Yes.  It=E2=80=99s just commenting the *following* line (i.e. removal of the
call to =E2=80=9Cfree=E2=80=9D) that fixes it.

> We might contact the classpath devs to get a proper fix, and maybe a new
> release, they
> were super responsive the last time.

I don=E2=80=99t think the problem is with GNU Classpath.  Classpath devs are
welcome to look at this, of course, but we are not even using the latest
version at this point in the bootstrap.

I wonder what could have caused this problem in the first place.  The
bootstrap hasn=E2=80=99t changed.  Using the same compiler as before doesn=
=E2=80=99t fix
it, so it=E2=80=99s probably not the compiler either.  So what is it?

>> Illegal instruction?  This uses JamVM 2.0.0 as the JVM.  I=E2=80=99ll tr=
y to
>> figure out what instruction this is and where it comes from.
>
> I hit the same bug now.

Good.  We need to figure out why =E2=80=93 is it miscompilation?  Tuning to=
 a
different CPU type=E2=80=A6?

--
Ricardo





Information forwarded to bug-guix@HIDDEN:
bug#36685; Package guix. Full text available.

Message received at 36685 <at> debbugs.gnu.org:


Received: (at 36685) by debbugs.gnu.org; 19 Jul 2019 12:38:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 19 08:38:07 2019
Received: from localhost ([127.0.0.1]:55321 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hoS9H-0007hO-6z
	for submit <at> debbugs.gnu.org; Fri, 19 Jul 2019 08:38:07 -0400
Received: from mail-ed1-f44.google.com ([209.85.208.44]:45539)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <boskovits@HIDDEN>) id 1hoS9E-0007gr-W0
 for 36685 <at> debbugs.gnu.org; Fri, 19 Jul 2019 08:38:05 -0400
Received: by mail-ed1-f44.google.com with SMTP id x19so28445772eda.12
 for <36685 <at> debbugs.gnu.org>; Fri, 19 Jul 2019 05:38:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=pM1OIzlGMhCwB0aUGVjh8ikdFpLkrz9P9u04bzcMy6o=;
 b=NN6rrIM1a2wMrK5RcH5T+hvON57xByD12bGn9GA0JOUKyIl6hy0L+JltYf+qlMCddv
 uYX59JhWvGvH1I4ZIQw/cpMQdU23vulwzmx2ozjcpF+8+YQ0hXhlB9of7bDmQXNOvd8m
 OELTolcHjICv1bQSGs4nr83pYTw/UB0o9ZL56yyv/fwiy4O+U5HqgTUBCZA0ix53XCbH
 52FgyUn2f9iUtq6sVpgh0CDyMEaRIE0Dj2BbpF6twVdgotzBfXHQvFq5uU2uqAGFgmho
 Fv3+rx0h9YQzLYcCMKbyFMbDkZacvzHCdm9pGWRh7dyt6pSnIV3D2Ih/JEcMcGH2Uk6y
 l/Gg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=pM1OIzlGMhCwB0aUGVjh8ikdFpLkrz9P9u04bzcMy6o=;
 b=bm2rcSqggTedEVKBZ+z2oCm1Wjk0CC1cV59l7AiXEetVSyGI8CkVlVfCDgISMvhObO
 1eIzeCXPYZG6Nu7ifgNVOHl1nX0ZgpyIUYs2Dx+j/by7qjb/C35uYqYvV3bFlPRuKcVR
 wKFLrLpaIA0ifezDBNmm4h6Ebqd/SA3h+DlxNQ9FI2TpFlKf7ayBQCf3K0t+Y9HrlGOs
 s62UwgEK5biFGFwr02QopBsxDQ9h08rsHbns523x4qf77vQ0zTlnFfoTSfLhv86ZXUNI
 h2ke8vfqPFbMYCLbe5MKNg3g0rzuQXMMjLbavVrcRjR430vFsccWqMAmJN1XqZHVbGCa
 VIqw==
X-Gm-Message-State: APjAAAW7HUHcjrhJZ+SDZGf2Y9B5cQ34Svv/d92bzOTVcDL9y2DJ1sNr
 5loupwSKJX8YWohZ4duyIu4rTn4H8L0HRNtl3Q==
X-Google-Smtp-Source: APXvYqxcKT0MVQKsLEWUcBA4CjdxZhmL4j/wpRGxSbsemQxDTJq/uq1GlznceoBXx1D9hLwzapFNcHrUhe6pkq4uxng=
X-Received: by 2002:a50:a5e3:: with SMTP id b32mr44801342edc.169.1563539879045; 
 Fri, 19 Jul 2019 05:37:59 -0700 (PDT)
MIME-Version: 1.0
References: <8736j61n57.fsf@HIDDEN> <87o91ugdot.fsf@HIDDEN>
 <87ftn5gjzw.fsf@HIDDEN> <871ryogu6j.fsf@HIDDEN>
 <87r26nfwes.fsf@HIDDEN> <87a7dafntp.fsf@HIDDEN>
In-Reply-To: <87a7dafntp.fsf@HIDDEN>
From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= <boskovits@HIDDEN>
Date: Fri, 19 Jul 2019 12:37:47 +0000
Message-ID: <CAE4v=pjmPSRCiqBauVMhK=CgfzLnUoN_z8UGfzu7A8uAdFMUbQ@HIDDEN>
Subject: Re: bug#36685: ant-bootstrap fails on core-updates (409 dependents)
To: Ricardo Wurmus <rekado@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000152f9c058e07ff40"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36685
Cc: Guix-devel <guix-devel@HIDDEN>, 36685 <at> debbugs.gnu.org,
 Chris Marusich <cmmarusich@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000152f9c058e07ff40
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello,

Ricardo Wurmus <rekado@HIDDEN> ezt =C3=ADrta (id=C5=91pont: 2019. j=C3=
=BAl. 19., P,
8:09):

>
> Ricardo Wurmus <rekado@HIDDEN> writes:
> > Here=E2=80=99s a shorter patch:
> >
> > --8<---------------cut here---------------start------------->8---
> > diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
> > index 403c446a82..bd98784232 100644
> > --- a/gnu/packages/java.scm
> > +++ b/gnu/packages/java.scm
> > @@ -152,6 +152,13 @@ and binary format defined in The Java Virtual
> Machine Specification.")
> >               "--disable-gjdoc")
> >         #:phases
> >         (modify-phases %standard-phases
> > +         (add-after 'unpack 'foo
> > +           (lambda _
> > +             (substitute* "native/jni/java-io/java_io_VMFile.c"
> > +               (("result =3D cpio_isFileExists.*" m)
> > +                (string-append m "
> > +//Without a long comment the Java side will return \"true\" on x86_64
> all the time.")))
> > +             #t))
> >           (add-after 'install 'install-data
> >             (lambda _ (invoke "make" "install-data"))))))
> >      (native-inputs
> > --8<---------------cut here---------------end--------------->8---
> >
> > This only adds a comment.  If the comment is too short it won=E2=80=99t=
 work.
>
>
I confirm this path works.
I tested a modified version, where I took out the comment text. It also
works that way.
We might contact the classpath devs to get a proper fix, and maybe a new
release, they
were super responsive the last time.


> No, that=E2=80=99s wrong.
>
> To my eternal embarrassement but also great relief this substitution has
> the effect of commenting the *following* line which frees up previously
> claimed resources (a bunch of characters making up the file name).  The
> other comments I tested must have ended on \n, so they did not have this
> effect.
>
> Thanks to Julien for pointing this out!
>
> So!  Creating a memory leak lets us successfully build ant-bootstrap.
> It does not, however, get us all the way through the Java bootstrap.
> When configuring the first icedtea I get this error:
>
> --8<---------------cut here---------------start------------->8---
> checking if the VM and compiler work together... ./configure: line 9614:
>  697 Illegal instruction     $JAVA -classpath . $BYTECODE 1>&5 2>&1
> configure: error: VM failed to run compiled class.
> command
> "/gnu/store/h9c5g3inn5zmkixk08m27zzpj58zbfgy-bash-minimal-5.0.7/bin/bash"
> "./configure"
> "CONFIG_SHELL=3D/gnu/store/h9c5g3inn5zmkixk08m27zzpj58zbfgy-bash-minimal-=
5.0.7/bin/bash"
> "SHELL=3D/gnu/store/h9c5g3inn5zmkixk08m27zzpj58zbfgy-bash-minimal-5.0.7/b=
in/bash"
> "--prefix=3D/gnu/store/802356lxpjkqk66kv35mdzxhvaw6rghp-icedtea-1.13.13"
> "--enable-fast-install"
> "--docdir=3D/gnu/store/d4c4w9bka2bnnrwrmph1ilgjss5i37h9-icedtea-1.13.13-d=
oc/share/doc/icedtea"
> "--build=3Dx86_64-unknown-linux-gnu" "--enable-bootstrap" "--enable-nss"
> "--without-rhino" "--with-parallel-jobs" "--disable-downloading"
> "--disable-tests"
> "--with-ecj=3D/gnu/store/6dijv9ynn5j2bya86dgjn8v0qfd1nv3j-ecj-bootstrap-3=
.2.2/share/java/ecj-bootstrap.jar"
> "--with-jar=3D/gnu/store/hw67b3w83cc2abbgrf0wqzra07iiz3a1-fastjar-0.98/bi=
n/fastjar"
> "--with-jdk-home=3D/gnu/store/1agbz95p2ljcvbb88w7p7jn2hnd6z3gv-classpath-=
0.99-1.e7c13ee0c"
> "--with-java=3D/gnu/store/ril2kk63p1grib14vl88z3aladfs33gf-jamvm-2.0.0/bi=
n/jamvm"
> failed with status 1
> --8<---------------cut here---------------end--------------->8---
>
> Illegal instruction?  This uses JamVM 2.0.0 as the JVM.  I=E2=80=99ll try=
 to
> figure out what instruction this is and where it comes from.
>

I hit the same bug now.


> --
> Ricardo
>
>
>
Best regards,
g_bor

--=20
OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21

--000000000000152f9c058e07ff40
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hello,<br></div><br><div class=3D"gmail_quote"><div d=
ir=3D"ltr" class=3D"gmail_attr">Ricardo Wurmus &lt;<a href=3D"mailto:rekado=
@elephly.net">rekado@HIDDEN</a>&gt; ezt =C3=ADrta (id=C5=91pont: 2019.=
 j=C3=BAl. 19., P, 8:09):<br></div><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding=
-left:1ex"><br>
Ricardo Wurmus &lt;<a href=3D"mailto:rekado@HIDDEN" target=3D"_blank">=
rekado@HIDDEN</a>&gt; writes:<br>
&gt; Here=E2=80=99s a shorter patch:<br>
&gt;<br>
&gt; --8&lt;---------------cut here---------------start-------------&gt;8--=
-<br>
&gt; diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm<br>
&gt; index 403c446a82..bd98784232 100644<br>
&gt; --- a/gnu/packages/java.scm<br>
&gt; +++ b/gnu/packages/java.scm<br>
&gt; @@ -152,6 +152,13 @@ and binary format defined in The Java Virtual Mac=
hine Specification.&quot;)<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&quot;--disable-=
gjdoc&quot;)<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0#:phases<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(modify-phases %standard-phases<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(add-after &#39;unpack &#39;foo<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(lambda _<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(substitute* &quot;na=
tive/jni/java-io/java_io_VMFile.c&quot;<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0((&quot;result=
 =3D cpio_isFileExists.*&quot; m)<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (string-appen=
d m &quot;<br>
&gt; +//Without a long comment the Java side will return \&quot;true\&quot;=
 on x86_64 all the time.&quot;)))<br>
&gt; +=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0#t))<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(add-after &#39;install &#39;i=
nstall-data<br>
&gt;=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(lambda _ (invoke &quot=
;make&quot; &quot;install-data&quot;))))))<br>
&gt;=C2=A0 =C2=A0 =C2=A0 (native-inputs<br>
&gt; --8&lt;---------------cut here---------------end---------------&gt;8--=
-<br>
&gt;<br>
&gt; This only adds a comment.=C2=A0 If the comment is too short it won=E2=
=80=99t work.<br>
<br></blockquote><div><br></div><div>I confirm this path works.</div><div>I=
 tested a modified version, where I took out the comment text. It also work=
s that way.</div><div>We might contact the classpath devs to get a proper f=
ix, and maybe a new release, they</div><div>were super responsive the last =
time.<br></div><div>=C2=A0</div><blockquote class=3D"gmail_quote" style=3D"=
margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-lef=
t:1ex">
No, that=E2=80=99s wrong.<br>
<br>
To my eternal embarrassement but also great relief this substitution has<br=
>
the effect of commenting the *following* line which frees up previously<br>
claimed resources (a bunch of characters making up the file name).=C2=A0 Th=
e<br>
other comments I tested must have ended on \n, so they did not have this<br=
>
effect.<br>
<br>
Thanks to Julien for pointing this out!<br>
<br>
So!=C2=A0 Creating a memory leak lets us successfully build ant-bootstrap.<=
br>
It does not, however, get us all the way through the Java bootstrap.<br>
When configuring the first icedtea I get this error:<br>
<br>
--8&lt;---------------cut here---------------start-------------&gt;8---<br>
checking if the VM and compiler work together... ./configure: line 9614:=C2=
=A0 =C2=A0697 Illegal instruction=C2=A0 =C2=A0 =C2=A0$JAVA -classpath . $BY=
TECODE 1&gt;&amp;5 2&gt;&amp;1<br>
configure: error: VM failed to run compiled class.<br>
command &quot;/gnu/store/h9c5g3inn5zmkixk08m27zzpj58zbfgy-bash-minimal-5.0.=
7/bin/bash&quot; &quot;./configure&quot; &quot;CONFIG_SHELL=3D/gnu/store/h9=
c5g3inn5zmkixk08m27zzpj58zbfgy-bash-minimal-5.0.7/bin/bash&quot; &quot;SHEL=
L=3D/gnu/store/h9c5g3inn5zmkixk08m27zzpj58zbfgy-bash-minimal-5.0.7/bin/bash=
&quot; &quot;--prefix=3D/gnu/store/802356lxpjkqk66kv35mdzxhvaw6rghp-icedtea=
-1.13.13&quot; &quot;--enable-fast-install&quot; &quot;--docdir=3D/gnu/stor=
e/d4c4w9bka2bnnrwrmph1ilgjss5i37h9-icedtea-1.13.13-doc/share/doc/icedtea&qu=
ot; &quot;--build=3Dx86_64-unknown-linux-gnu&quot; &quot;--enable-bootstrap=
&quot; &quot;--enable-nss&quot; &quot;--without-rhino&quot; &quot;--with-pa=
rallel-jobs&quot; &quot;--disable-downloading&quot; &quot;--disable-tests&q=
uot; &quot;--with-ecj=3D/gnu/store/6dijv9ynn5j2bya86dgjn8v0qfd1nv3j-ecj-boo=
tstrap-3.2.2/share/java/ecj-bootstrap.jar&quot; &quot;--with-jar=3D/gnu/sto=
re/hw67b3w83cc2abbgrf0wqzra07iiz3a1-fastjar-0.98/bin/fastjar&quot; &quot;--=
with-jdk-home=3D/gnu/store/1agbz95p2ljcvbb88w7p7jn2hnd6z3gv-classpath-0.99-=
1.e7c13ee0c&quot; &quot;--with-java=3D/gnu/store/ril2kk63p1grib14vl88z3alad=
fs33gf-jamvm-2.0.0/bin/jamvm&quot; failed with status 1<br>
--8&lt;---------------cut here---------------end---------------&gt;8---<br>
<br>
Illegal instruction?=C2=A0 This uses JamVM 2.0.0 as the JVM.=C2=A0 I=E2=80=
=99ll try to<br>
figure out what instruction this is and where it comes from.<br></blockquot=
e><div><br></div><div>I hit the same bug now.</div><div> <br></div><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px=
 solid rgb(204,204,204);padding-left:1ex">
<br>
--<br>
Ricardo<br>
<br>
<br>
</blockquote></div><div><br></div><div>Best regards,</div><div>g_bor<br></d=
iv><br>-- <br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr">O=
penPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21<b=
r></div></div></div>

--000000000000152f9c058e07ff40--




Information forwarded to bug-guix@HIDDEN:
bug#36685; Package guix. Full text available.

Message received at 36685 <at> debbugs.gnu.org:


Received: (at 36685) by debbugs.gnu.org; 19 Jul 2019 08:09:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 19 04:09:14 2019
Received: from localhost ([127.0.0.1]:55083 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hoNx4-0002Vd-LZ
	for submit <at> debbugs.gnu.org; Fri, 19 Jul 2019 04:09:14 -0400
Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21385)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1hoNx3-0002VV-7R
 for 36685 <at> debbugs.gnu.org; Fri, 19 Jul 2019 04:09:13 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1563523749; cv=none; d=zoho.com; s=zohoarc; 
 b=JywATpzgYz1pnTAXXaUo7QJo+owOcf6BNsRLHCPJ/JqN7HMgcf3ppsK1H1IXijj78EPSiYTLs/Jg+eGmoD1gPEoRo2h81nujS082h3lqSMrP53tcGvK0qxOyfrBH4/6SalOxWq42iUStBx0ZFnCxqtZ0bZwFvnvcppMk9nEB46I=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com;
 s=zohoarc; t=1563523749;
 h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results;
 bh=UKU5P+itXVn0JZFx4SaAnrsz9zuwjzi9o594IdizBNE=; 
 b=cvrgEL2btF00potd3kwcEgaUnZEB5738A91/KIoMJaMuVgUphXJDgdu0JQqWJAsxm9gKcCHr9jLhMmjA7u1Lk+rzqbt2TvJ7XKd9vmDw4cQng46YlOkVcg8UyJAQGpOlGhMw9Qck3qhHgaWl1S8cWImW+BO2j5p9DtXuqoh/Pb4=
ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1563523749; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;
 l=3111; bh=UKU5P+itXVn0JZFx4SaAnrsz9zuwjzi9o594IdizBNE=;
 b=ezLOcGvUmAwL5H0kgDX8y9wE0j+Vl+9yvsRtPpypzZETXtvVpqlhODr+dlcnEqO6
 b7oAzBdDVIRSb7YBBtUHN0fYEOfHbusB2RIVOEY3QpKS51fMUM/wu4cqxJ6DHwnFwsB
 tFjtHHdmFnLiJBzfZyIZrpv1fBmswb+gPnQvMicA=
Received: from localhost (141.80.247.250 [141.80.247.250]) by mx.zohomail.com
 with SMTPS id 156352374881475.41505260693316;
 Fri, 19 Jul 2019 01:09:08 -0700 (PDT)
References: <8736j61n57.fsf@HIDDEN> <87o91ugdot.fsf@HIDDEN>
 <87ftn5gjzw.fsf@HIDDEN> <871ryogu6j.fsf@HIDDEN>
 <87r26nfwes.fsf@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.2
From: Ricardo Wurmus <rekado@HIDDEN>
To: cmmarusich@HIDDEN
Subject: Re: bug#36685: ant-bootstrap fails on core-updates (409 dependents)
In-reply-to: <87r26nfwes.fsf@HIDDEN>
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: Fri, 19 Jul 2019 10:09:06 +0200
Message-ID: <87a7dafntp.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-ZohoMailClient: External
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36685
Cc: guix-devel@HIDDEN, 36685 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Ricardo Wurmus <rekado@HIDDEN> writes:
> Here=E2=80=99s a shorter patch:
>
> --8<---------------cut here---------------start------------->8---
> diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
> index 403c446a82..bd98784232 100644
> --- a/gnu/packages/java.scm
> +++ b/gnu/packages/java.scm
> @@ -152,6 +152,13 @@ and binary format defined in The Java Virtual Machin=
e Specification.")
>               "--disable-gjdoc")
>         #:phases
>         (modify-phases %standard-phases
> +         (add-after 'unpack 'foo
> +           (lambda _
> +             (substitute* "native/jni/java-io/java_io_VMFile.c"
> +               (("result =3D cpio_isFileExists.*" m)
> +                (string-append m "
> +//Without a long comment the Java side will return \"true\" on x86_64 al=
l the time.")))
> +             #t))
>           (add-after 'install 'install-data
>             (lambda _ (invoke "make" "install-data"))))))
>      (native-inputs
> --8<---------------cut here---------------end--------------->8---
>
> This only adds a comment.  If the comment is too short it won=E2=80=99t w=
ork.

No, that=E2=80=99s wrong.

To my eternal embarrassement but also great relief this substitution has
the effect of commenting the *following* line which frees up previously
claimed resources (a bunch of characters making up the file name).  The
other comments I tested must have ended on \n, so they did not have this
effect.

Thanks to Julien for pointing this out!

So!  Creating a memory leak lets us successfully build ant-bootstrap.
It does not, however, get us all the way through the Java bootstrap.
When configuring the first icedtea I get this error:

--8<---------------cut here---------------start------------->8---
checking if the VM and compiler work together... ./configure: line 9614:   =
697 Illegal instruction     $JAVA -classpath . $BYTECODE 1>&5 2>&1
configure: error: VM failed to run compiled class.
command "/gnu/store/h9c5g3inn5zmkixk08m27zzpj58zbfgy-bash-minimal-5.0.7/bin=
/bash" "./configure" "CONFIG_SHELL=3D/gnu/store/h9c5g3inn5zmkixk08m27zzpj58=
zbfgy-bash-minimal-5.0.7/bin/bash" "SHELL=3D/gnu/store/h9c5g3inn5zmkixk08m2=
7zzpj58zbfgy-bash-minimal-5.0.7/bin/bash" "--prefix=3D/gnu/store/802356lxpj=
kqk66kv35mdzxhvaw6rghp-icedtea-1.13.13" "--enable-fast-install" "--docdir=
=3D/gnu/store/d4c4w9bka2bnnrwrmph1ilgjss5i37h9-icedtea-1.13.13-doc/share/do=
c/icedtea" "--build=3Dx86_64-unknown-linux-gnu" "--enable-bootstrap" "--ena=
ble-nss" "--without-rhino" "--with-parallel-jobs" "--disable-downloading" "=
--disable-tests" "--with-ecj=3D/gnu/store/6dijv9ynn5j2bya86dgjn8v0qfd1nv3j-=
ecj-bootstrap-3.2.2/share/java/ecj-bootstrap.jar" "--with-jar=3D/gnu/store/=
hw67b3w83cc2abbgrf0wqzra07iiz3a1-fastjar-0.98/bin/fastjar" "--with-jdk-home=
=3D/gnu/store/1agbz95p2ljcvbb88w7p7jn2hnd6z3gv-classpath-0.99-1.e7c13ee0c" =
"--with-java=3D/gnu/store/ril2kk63p1grib14vl88z3aladfs33gf-jamvm-2.0.0/bin/=
jamvm" failed with status 1
--8<---------------cut here---------------end--------------->8---

Illegal instruction?  This uses JamVM 2.0.0 as the JVM.  I=E2=80=99ll try to
figure out what instruction this is and where it comes from.

--
Ricardo





Information forwarded to bug-guix@HIDDEN:
bug#36685; Package guix. Full text available.

Message received at 36685 <at> debbugs.gnu.org:


Received: (at 36685) by debbugs.gnu.org; 18 Jul 2019 10:51:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 18 06:51:34 2019
Received: from localhost ([127.0.0.1]:53480 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ho40c-0000s0-4s
	for submit <at> debbugs.gnu.org; Thu, 18 Jul 2019 06:51:34 -0400
Received: from sender-of-o51.zoho.com ([135.84.80.216]:21276)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1ho40Z-0000rr-Fx
 for 36685 <at> debbugs.gnu.org; Thu, 18 Jul 2019 06:51:32 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1563447088; cv=none; d=zoho.com; s=zohoarc; 
 b=lOWo9Ld2XVvS9ssnp3obAqJhSi2fQowvb/bclJ3DG/y8rTV5z7VbGIeh4dBNPjCSKI4t2zQ3xPjnGToXFCLgGjglbVh/gV2k4l+EMd9adskxxyZ/TRnPQqvYekNtPXxyCUTdE/ssQBboHAxi8nzI7nWIcyzZLtQkYnwVnvM6h70=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com;
 s=zohoarc; t=1563447088;
 h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results;
 bh=Tj5PbikNeH7SvCW+kj7JYM/PgsBd76w7kWX1sIw+z6g=; 
 b=MZCs3RGxjl7csShIwbtPNLnotp3rnra8H3QP2VU/mpgwBopI9oTjkVscMUsvo0mFwh+wP3fEqrBKuwx32UwK9auS5z9weZli6drdJ0/n7+OOLBPMWSKjH6zjFnLfAzcGXGUiH6i3xo1mQZuxPOsIf1hqX77CgMamzQRvm/K+3rI=
ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1563447088; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;
 l=1805; bh=Tj5PbikNeH7SvCW+kj7JYM/PgsBd76w7kWX1sIw+z6g=;
 b=KkQ9baoXd5a2fZAnw7wzFNxB09BKCEr9vhWc/98gQDiZbN3F+afbOCt1/wAdJEC/
 Ofwacurs6OEG69Z95lR9LtXZE9E4cyZmbCFGxX40N8e3h1gGmq+rNpe7PasrPC55OeN
 kAY9fL9VgHxNP2pKdO1cn2fm5rzLRvZXhs7m2WLo=
Received: from localhost (141.80.247.250 [141.80.247.250]) by mx.zohomail.com
 with SMTPS id 1563447086590341.5326611217216;
 Thu, 18 Jul 2019 03:51:26 -0700 (PDT)
References: <8736j61n57.fsf@HIDDEN> <87o91ugdot.fsf@HIDDEN>
 <87ftn5gjzw.fsf@HIDDEN> <871ryogu6j.fsf@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.2
From: Ricardo Wurmus <rekado@HIDDEN>
To: cmmarusich@HIDDEN
Subject: Re: bug#36685: ant-bootstrap fails on core-updates (409 dependents)
In-reply-to: <871ryogu6j.fsf@HIDDEN>
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: Thu, 18 Jul 2019 12:51:23 +0200
Message-ID: <87r26nfwes.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-ZohoMailClient: External
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36685
Cc: guix-devel@HIDDEN, 36685 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Ricardo Wurmus <rekado@HIDDEN> writes:

> Ricardo Wurmus <rekado@HIDDEN> writes:
>
>> I have confirmed that this is the problem by replacing =E2=80=9Cwhile
>> (VMFile.exists(file.path))=E2=80=9D with =E2=80=9Cwhile (false)=E2=80=9D=
.  The build doesn=E2=80=99t
>> fully complete then either, but it gets past the compilation of the Ant
>> source files.  This clears JamVM and Jikes.
>
> It doesn=E2=80=99t.
>
> VMFile.exists always returns =E2=80=9Ctrue=E2=80=9D, no matter what.  The=
 C part is
> fine, but the Java part is not, so I suspected the JVM to be at fault.
>
> I managed to build ant-bootstrap successfully with this patch: [=E2=80=A6]

Here=E2=80=99s a shorter patch:

--8<---------------cut here---------------start------------->8---
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 403c446a82..bd98784232 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -152,6 +152,13 @@ and binary format defined in The Java Virtual Machine =
Specification.")
              "--disable-gjdoc")
        #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'foo
+           (lambda _
+             (substitute* "native/jni/java-io/java_io_VMFile.c"
+               (("result =3D cpio_isFileExists.*" m)
+                (string-append m "
+//Without a long comment the Java side will return \"true\" on x86_64 all =
the time.")))
+             #t))
          (add-after 'install 'install-data
            (lambda _ (invoke "make" "install-data"))))))
     (native-inputs
--8<---------------cut here---------------end--------------->8---

This only adds a comment.  If the comment is too short it won=E2=80=99t wor=
k.

I suspected some misguided optimizations, so I built jamvm-1-bootstrap
and classpath-bootstrap with -O0, -O1, and I disabled stripping of
binaries, but to no avail.

Any ideas?

--
Ricardo





Information forwarded to bug-guix@HIDDEN:
bug#36685; Package guix. Full text available.

Message received at 36685 <at> debbugs.gnu.org:


Received: (at 36685) by debbugs.gnu.org; 17 Jul 2019 22:42:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 17 18:42:06 2019
Received: from localhost ([127.0.0.1]:53139 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hnscg-0001xW-BH
	for submit <at> debbugs.gnu.org; Wed, 17 Jul 2019 18:42:06 -0400
Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21342)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1hnscd-0001xN-Kx
 for 36685 <at> debbugs.gnu.org; Wed, 17 Jul 2019 18:42:04 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1563403321; cv=none; d=zoho.com; s=zohoarc; 
 b=TfOHr8DYrtqmvAfYkUgTo//E+GmcPI/sumHm8cNc2o4177CZGs3yyO2BKQgHMlY6usdmI9xnbcAUmkCeeXZ5UH6oz1Q+lWNmb5SNsJKc1IEIzz0qA4JaI5GDqPOFh62p1HzbX9kHz/0jC/vo3gKC3JWfQ6VgfAZgJd+eUZmLuDw=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com;
 s=zohoarc; t=1563403321;
 h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results;
 bh=O0J3J9/WGz7EbStghaCcDi8NfsYhWFoJbk2qwCyVbUw=; 
 b=AMLWokLn6oaCBvwwHAyLL/hO+REazcsf+tG3+fTlueLetcIceAjrcA/2KWSuDcn0JOmwy/pRX3/jJC/EXaYsudRZ4ACz9Tan1k4a1wwM9/3FhRUfIhYebnWFISJgC0Adx3P0bkGehPNjHKAnvIG3L+Ueu/kRUta8Z2FBuSTWmz4=
ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1563403321; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type;
 l=2906; bh=O0J3J9/WGz7EbStghaCcDi8NfsYhWFoJbk2qwCyVbUw=;
 b=Vhe5De9a3Pb0L/LGpNcpOR55MvGy+s/MZQvne13h7tB+YGJIzr09clxakcdWdYsq
 A63zaOS99plP+DLylHj3R6rzr+WZ1/mtd+ZA3IthMfbkCYzVCkt7QiQ0BzRw5MXcwGz
 AJKHy9nK8OrqoP5EDLyOEdi91dUiz+1QPHvYRQtM=
Received: from localhost (p54AD4F55.dip0.t-ipconnect.de [84.173.79.85]) by
 mx.zohomail.com with SMTPS id 1563403319520596.0731179031155;
 Wed, 17 Jul 2019 15:41:59 -0700 (PDT)
References: <8736j61n57.fsf@HIDDEN> <87o91ugdot.fsf@HIDDEN>
 <87ftn5gjzw.fsf@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.2
From: Ricardo Wurmus <rekado@HIDDEN>
To: cmmarusich@HIDDEN
Subject: Re: bug#36685: ant-bootstrap fails on core-updates (409 dependents)
In-reply-to: <87ftn5gjzw.fsf@HIDDEN>
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: Thu, 18 Jul 2019 00:41:56 +0200
Message-ID: <871ryogu6j.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-ZohoMailClient: External
X-Zoho-Virus-Status: 1
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36685
Cc: 36685 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


Ricardo Wurmus <rekado@HIDDEN> writes:

> I have confirmed that this is the problem by replacing =E2=80=9Cwhile
> (VMFile.exists(file.path))=E2=80=9D with =E2=80=9Cwhile (false)=E2=80=9D.=
  The build doesn=E2=80=99t
> fully complete then either, but it gets past the compilation of the Ant
> source files.  This clears JamVM and Jikes.

It doesn=E2=80=99t.

VMFile.exists always returns =E2=80=9Ctrue=E2=80=9D, no matter what.  The C=
 part is
fine, but the Java part is not, so I suspected the JVM to be at fault.

I managed to build ant-bootstrap successfully with this patch:


--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline; filename=printf.diff

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 403c446a82..6ebfd0ffdf 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -152,6 +152,12 @@ and binary format defined in The Java Virtual Machine Specification.")
              "--disable-gjdoc")
        #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'foo
+           (lambda _
+             (substitute* "native/jni/java-io/java_io_VMFile.c"
+               (("result = cpio_isFileExists.*" m)
+                (string-append m "\nfprintf(stderr, \"exists? %s : %d -- %d;\\n\", filename, result, ((result == CPNATIVE_OK) ? 1 : 0));")))
+             #t))
          (add-after 'install 'install-data
            (lambda _ (invoke "make" "install-data"))))))
     (native-inputs
@@ -186,10 +192,12 @@ language.")
     (arguments
      `(#:configure-flags
        (list (string-append "--with-classpath-install-dir="
-                            (assoc-ref %build-inputs "classpath")))))
+                            (assoc-ref %build-inputs "classpath"))
+             "--enable-ffi")))
     (inputs
      `(("classpath" ,classpath-bootstrap)
        ("jikes" ,jikes)
+       ("libffi" ,libffi)
        ("zlib" ,zlib)))
     (home-page "http://jamvm.sourceforge.net/")
     (synopsis "Small Java Virtual Machine")
@@ -258,7 +266,11 @@ JNI.")
                 ,@(if (string-prefix? "armhf" (or (%current-system)
                                                   (%current-target-system)))
                       `((string-append m "-Xnocompact "))
-                      `((string-append m "-Xnocompact -Xnoinlining ")))))
+                      `((string-append m "-Xnocompact ")))))
+
+             (substitute* "src/main/org/apache/tools/ant/version.txt"
+               (("VERSION=.*") (string-append "VERSION=" ,version "\n"))
+               (("DATE=.*") "DATE=reproducible"))
 
              ;; Disable tests because we are bootstrapping and thus don't have
              ;; any of the dependencies required to build and run the tests.

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


Note that the change to native/jni/java-io/java_io_VMFile.c is necessary
even though it just prints things and compares values.  So this might be
time-related or it could be other stateful behaviour.  Don=E2=80=99t know y=
et.

The changes in ant-bootstrap might not be needed.

Can someone confirm that this patch helps?

--
Ricardo

--=-=-=--





Information forwarded to bug-guix@HIDDEN:
bug#36685; Package guix. Full text available.

Message received at 36685 <at> debbugs.gnu.org:


Received: (at 36685) by debbugs.gnu.org; 17 Jul 2019 08:09:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 17 04:09:48 2019
Received: from localhost ([127.0.0.1]:51476 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hnf0W-0005s5-8A
	for submit <at> debbugs.gnu.org; Wed, 17 Jul 2019 04:09:48 -0400
Received: from sender-of-o51.zoho.com ([135.84.80.216]:21260)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1hnf0T-0005rt-PM
 for 36685 <at> debbugs.gnu.org; Wed, 17 Jul 2019 04:09:47 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1563350983; cv=none; d=zoho.com; s=zohoarc; 
 b=hPtrXm3dslB/L6p/XDMhoD7gKJ2qbZIn4XIPs4KrHQ98QIOsGsgnbGJW+Q5HyMK3+ckrof/DH5Z03e9rUQ4xdIy9Gzofka5aWWN12615n5EqPx9wVUlslHGN+d9nz2BqeClx0/e8QbjQdoP132y8zwZ4oSkQYAOc2I8Yw6jm0G4=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com;
 s=zohoarc; t=1563350983;
 h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results;
 bh=me8s5akEy0QI2CoMvhHOMKphNB+dF7UM1HRtZ7wGUSw=; 
 b=X7D1eUy3zIczqlo8cMFaqOkQuFGk+4ZLzh6iavpX7McogfT4e0v4LVxAFWFs7E1YIFt/arYzJYtFmZm9mCc+fVxaUfmdZ4UfFW+bARCPMKq9K70Lr7vVeex6cKI1u2THXaOFqB1FgLiwAmJv+9nhb673WoeU7Ohjt6bq9vhZJxQ=
ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1563350983; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type;
 l=8956; bh=me8s5akEy0QI2CoMvhHOMKphNB+dF7UM1HRtZ7wGUSw=;
 b=D/OXnI3bXMRt/huMjN2YCy+BlRcatLhpL0A2pP0RwtYzEfWQ+slreR2CCcofU2kZ
 D7ehp01otZ9mbi2WeXxe/URP3i6Tqk5NvEC4EFfszXMEw/yPw1LqBI1F54ConlSWmlW
 P1LgbDLhZQMRTbWxrv50Q0bUa0tDxUltifFnK4FY=
Received: from localhost (p54AD4F55.dip0.t-ipconnect.de [84.173.79.85]) by
 mx.zohomail.com with SMTPS id 1563350981898268.0109863931035;
 Wed, 17 Jul 2019 01:09:41 -0700 (PDT)
References: <8736j61n57.fsf@HIDDEN> <87o91ugdot.fsf@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.2
From: Ricardo Wurmus <rekado@HIDDEN>
To: cmmarusich@HIDDEN
Subject: Re: bug#36685: ant-bootstrap fails on core-updates (409 dependents)
In-reply-to: <87o91ugdot.fsf@HIDDEN>
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, 17 Jul 2019 10:09:39 +0200
Message-ID: <87ftn5gjzw.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-ZohoMailClient: External
X-Zoho-Virus-Status: 1
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36685
Cc: 36685 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


Ricardo Wurmus <rekado@HIDDEN> writes:

> However, this doesn=E2=80=99t seem to help.  Yes, the bootstrap script no=
 longer
> aborts but it gets stuck compiling things.  I can=E2=80=99t get it to tel=
l me
> anything about the compilation progress, but strace shows me that it
> keeps stat=E2=80=99ing for non-existent files like "/tmp/files16bfb86414e=
_b"
> until the end of the day.
>
> Judging by the name of the file I think this is ant=E2=80=99s
> src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.j=
ava
> that creates them, which is used by Jikes.java.  We should see if
> there=E2=80=99s a race somewhere or if perhaps =E2=80=9Cjikes=E2=80=9D cr=
ashes and thus gets
> executed over and over again.

The problem appears to be in GNU Classpath (classpath-bootstrap).  Its
=E2=80=9Cnative/jni/java-io/java_io_VMFile.c=E2=80=9D defines
=E2=80=9CJava_java_io_VMFile_exists=E2=80=9D, which returns =E2=80=9C1=E2=
=80=9D when a file exists.  It
does so by calling =E2=80=9Ccpio_isFileExists=E2=80=9D which is defined in
=E2=80=9Cnative/jni/native-lib/cpio.c=E2=80=9D:

--8<---------------cut here---------------start------------->8---
int cpio_isFileExists (const char *filename)
{
  struct stat statbuf;

  if (stat(filename, &statbuf) < 0)
    {
      return errno;
    }

  return 0;
}
--8<---------------cut here---------------end--------------->8---

I have confirmed with printf debugging that there=E2=80=99s a mismatch betw=
een
what the Java side thinks and what the C side tells it.  On the C side
the temporary file is determined to not exist yet, but on the Java side
it is said to exist =E2=80=94 this is in spite of the fact that the Java si=
de
only converts the C side=E2=80=99s return value.

Here=E2=80=99s an example from the printf output:

    exists? /tmp/files16bfd145b82_1 : 2 -- 0;
    classpath trying to create: /tmp/files16bfd145b82_1 exists? true

The first line is from C, the 2 is ENOENT, and 0 is the return value.
The zero is taken to be a Java boolean, so it maps to false.  The second
line comes from Java.

It hangs in =E2=80=9Cwhile (VMFile.exists(file.path))=E2=80=9D:

--8<---------------cut here---------------start------------->8---
    File file;
    if (!VMFile.IS_DOS_8_3)
      {
        do
          {
            long now =3D System.currentTimeMillis();
            if (now > last_tmp)
              {
                // The last temporary file was created more than 1 ms ago.
                last_tmp =3D now;
                n_created =3D 0;
              }
            else
              n_created++;

            String name =3D Long.toHexString(now);
            if (n_created > 0)
              name +=3D '_'+Integer.toHexString(n_created);
            String filename =3D prefix + name + suffix;
            file =3D new File(directory, filename);
          }
        while (VMFile.exists(file.path));
      }
    else =E2=80=A6
--8<---------------cut here---------------end--------------->8---

I have confirmed that this is the problem by replacing =E2=80=9Cwhile
(VMFile.exists(file.path))=E2=80=9D with =E2=80=9Cwhile (false)=E2=80=9D.  =
The build doesn=E2=80=99t
fully complete then either, but it gets past the compilation of the Ant
source files.  This clears JamVM and Jikes.

I=E2=80=99m attaching my embarrassing printf debugging patches.

Any ideas?

--
Ricardo


--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline; filename=printf.diff

diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 403c446a82..0245b299f8 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -116,6 +116,8 @@
                (base32
                 "1qqldrp74pzpy5ly421srqn30qppmm9cvjiqdngk8hf47dv2rc0c"))))
     (build-system gnu-build-system)
+    (native-inputs
+     `(("gcc" ,gcc-5)))
     (home-page "http://jikes.sourceforge.net/")
     (synopsis "Compiler for the Java language")
     (description "Jikes is a compiler that translates Java source files as
@@ -152,13 +154,43 @@ and binary format defined in The Java Virtual Machine Specification.")
              "--disable-gjdoc")
        #:phases
        (modify-phases %standard-phases
+         (add-after 'unpack 'foo
+           (lambda _
+             (substitute* "native/jni/native-lib/cpio.c"
+               (("\\(stat\\(filename, &statbuf\\) < 0\\)")
+                "(stat(filename, &statbuf) != 0)"))
+             (substitute* "native/jni/java-io/java_io_VMFile.c"
+               (("return result == CPNATIVE_OK \\? 1 : 0;")
+                "return ((result == CPNATIVE_OK) ? 1 : 0);")
+               (("result = cpio_isFileExists.*" m)
+                (string-append m "\nfprintf(stderr, \"exists? %s : %d -- %d;\\n\", filename, result, ((result == CPNATIVE_OK) ? 1 : 0));")))
+             (substitute* "java/io/File.java"
+               (("String filename = ") "filename =")
+               (("File file;" m)
+                (string-append m "\nString filename;"))
+
+               ;; (("while \\(VMFile.exists\\(file.path\\)\\)")
+               ;;  "while (false)")
+               (("while \\(VMFile.exists\\(file.path\\)\\)")
+                "while (VMFile.exists(directory.path + \"/\" + filename))")
+               (("// Grab the system" m)
+                (string-append "System.err.println(\"classpath called createTempFile: prefix \" + prefix + \" suffix \" + suffix + \" directory \" + directory.path );\n"
+                               m))
+               (("// Verify that we" m)
+                (string-append "System.err.println(\"classpath after loop with: \" + prefix);\n
+file = new File(directory, filename);"
+                               m))
+               (("file = new File.*" m)
+                (string-append m "\nSystem.err.println(\"classpath trying to create: \" + file.path + \" exists? \" + String.valueOf(VMFile.exists(file.path)));\n")))
+             #t))
          (add-after 'install 'install-data
            (lambda _ (invoke "make" "install-data"))))))
     (native-inputs
      `(("jikes" ,jikes)
        ("fastjar" ,fastjar)
        ("libltdl" ,libltdl)
-       ("pkg-config" ,pkg-config)))
+       ("pkg-config" ,pkg-config)
+       ("gcc" ,gcc-5)))
     (home-page "https://www.gnu.org/software/classpath/")
     (synopsis "Essential libraries for Java")
     (description "GNU Classpath is a project to create core class libraries
@@ -191,6 +223,8 @@ language.")
      `(("classpath" ,classpath-bootstrap)
        ("jikes" ,jikes)
        ("zlib" ,zlib)))
+    (native-inputs
+     `(("gcc-5" ,gcc-5)))
     (home-page "http://jamvm.sourceforge.net/")
     (synopsis "Small Java Virtual Machine")
     (description "JamVM is a Java Virtual Machine conforming to the JVM
@@ -225,7 +259,6 @@ JNI.")
        #:tests? #f ; no "check" target
        #:phases
        (modify-phases %standard-phases
-         (delete 'bootstrap)
          (delete 'configure)
          (replace 'build
            (lambda* (#:key inputs #:allow-other-keys)
@@ -244,9 +277,12 @@ JNI.")
              (setenv "HOME" "/tmp")
              (with-output-to-file "/tmp/.ant.properties"
                (lambda _ (display "")))
+             (with-output-to-file ".ant.properties"
+               (lambda _ (display "")))
 
              ;; Use jikes instead of javac for <javac ...> tags in build.xml
-             (setenv "ANT_OPTS" "-Dbuild.compiler=jikes")
+             (setenv "ANT_OPTS"
+                     "-Dbuild.compiler=jikes -Djava.io.tmpdir=/tmp")
 
              ;; jikes produces lots of warnings, but they are not very
              ;; interesting, so we silence them.
@@ -254,15 +290,49 @@ JNI.")
 
              ;; Without these JamVM options the build may freeze.
              (substitute* "bootstrap.sh"
+               ;;(("-emacs") "-debug")
                (("^\"\\$\\{JAVACMD\\}\" " m)
                 ,@(if (string-prefix? "armhf" (or (%current-system)
                                                   (%current-target-system)))
                       `((string-append m "-Xnocompact "))
                       `((string-append m "-Xnocompact -Xnoinlining ")))))
 
+             (substitute* "src/main/org/apache/tools/ant/version.txt"
+               (("VERSION=.*") (string-append "VERSION=" ,version "\n"))
+               (("DATE=.*") "DATE=reproducible"))
+
+             ;; XXX: Copying the source files appears to be necessary because
+             ;; ant won't find the XML and txt resources in src/main for some
+             ;; reason.  It really shouldn't be needed, so maybe this can be
+             ;; avoided by setting some environment variable.
+             (substitute* "bootstrap.sh"
+               (("cp src/script/antRun bin" m)
+                (string-append m "
+cp -ar {src/main,build/classes}/org/apache/tools/ant/version.txt
+cp -ar {src/main,build/classes}/org/apache/tools/ant/antlib.xml
+")))
+             (substitute* "src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java"
+               (("tmpFile = FILE_UTILS.createTempFile" m)
+                (string-append "attributes.log(\"REKADO createTempFile\", Project.MSG_WARN);"
+                               m))
+               (("out = new.*" m)
+                (string-append m
+                               "\nattributes.log(\"REKADO created\", Project.MSG_WARN);"))
+               (("exe.execute\\(\\)" m)
+                (string-append "attributes.log(\"REKADO executing\", Project.MSG_WARN);"
+                               m)))
+
+             (substitute* "src/main/org/apache/tools/ant/util/FileUtils.java"
+               (("result = File.*" m)
+                (string-append "System.err.println(\"Trying to create \" + prefix);\n"
+                               m
+                               "\nSystem.err.println(\"Created file \" + result);")))
+             
              ;; Disable tests because we are bootstrapping and thus don't have
              ;; any of the dependencies required to build and run the tests.
              (substitute* "build.xml"
+               ;; (("includeantruntime=\"false\"")
+               ;;  (string-append "includeantruntime=\"true\" createMissingPackageInfoClass=\"false\" fork=\"true\""))
                (("depends=\"jars,test-jar\"") "depends=\"jars\""))
              (invoke "bash" "bootstrap.sh"
                      (string-append "-Ddist.dir="

--=-=-=--





Information forwarded to bug-guix@HIDDEN:
bug#36685; Package guix. Full text available.

Message received at 36685 <at> debbugs.gnu.org:


Received: (at 36685) by debbugs.gnu.org; 16 Jul 2019 16:13:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 16 12:13:52 2019
Received: from localhost ([127.0.0.1]:51029 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hnQ5P-0005JS-Ub
	for submit <at> debbugs.gnu.org; Tue, 16 Jul 2019 12:13:52 -0400
Received: from sender-of-o51.zoho.com ([135.84.80.216]:21220)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rekado@HIDDEN>) id 1hnQ5L-0005JC-GY
 for 36685 <at> debbugs.gnu.org; Tue, 16 Jul 2019 12:13:48 -0400
ARC-Seal: i=1; a=rsa-sha256; t=1563293625; cv=none; d=zoho.com; s=zohoarc; 
 b=G68r0jdMbiUma1qZ+Un4ZWVWsgHFvpdGNHX7JSzCmwgCUPZvgotEEfHuoh4uAKciDEkf+KYMbcKYk7YKJ1rpW2zAa8eP3jv+tXDD7jbAFoK+pk6RJAxLyIvUUqw73NW3wfBQJWo+3T6ce7OxSAUf64xRkZPyW6DspHugjpKLqWs=
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com;
 s=zohoarc; t=1563293625;
 h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To:ARC-Authentication-Results;
 bh=2svzwzLnXisVnCa5UY/NoHIp2T1ijwKo1FWNKQQvveQ=; 
 b=MuU+r0Qf/bkO87Z70tgPX8u0ndVPIT98NhkNxVMijq5Wyd95JkK2YKw/4Di99v2DV5BxXpHcLJrfA/TJ8qQxw2muBmyA70OaJNVX8tGTKUa+NDgxF6+i8uG+ABHSxxRZdqV/xPkX3GOsBkYHKWOaCrlPyMkePD6LGCstyZAQWOo=
ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass  header.i=elephly.net;
 spf=pass  smtp.mailfrom=rekado@HIDDEN;
 dmarc=pass header.from=<rekado@HIDDEN> header.from=<rekado@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1563293625; 
 s=zoho; d=elephly.net; i=rekado@HIDDEN;
 h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding;
 l=3233; bh=2svzwzLnXisVnCa5UY/NoHIp2T1ijwKo1FWNKQQvveQ=;
 b=bw3z+cgKWfxsHZXlCjwbUVDouIurMLnbU6RhOnaRzMXXVzeY0YjRPqBl2vZQx+XB
 MWyIQ7uygaiMekIv4a2tfFmHjw0JPrySZZsMEbsP2FEBM8FPQCCJCttQV4jQjS43ME5
 xF91PysZMlmiemO5zAxUErh1z0YHhKJ9YlqzxV2I=
Received: from localhost (141.80.247.250 [141.80.247.250]) by mx.zohomail.com
 with SMTPS id 1563293622928876.997859539467;
 Tue, 16 Jul 2019 09:13:42 -0700 (PDT)
References: <8736j61n57.fsf@HIDDEN>
User-agent: mu4e 1.2.0; emacs 26.2
From: Ricardo Wurmus <rekado@HIDDEN>
To: cmmarusich@HIDDEN
Subject: Re: bug#36685: ant-bootstrap fails on core-updates (409 dependents)
In-reply-to: <8736j61n57.fsf@HIDDEN>
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: Tue, 16 Jul 2019 18:13:38 +0200
Message-ID: <87o91ugdot.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-ZohoMailClient: External
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36685
Cc: 36685 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Chris Marusich <cmmarusich@HIDDEN> writes:

> Hi,
>
> At commit 464a29d3d74e7d2f27042db6ab166bfdbe1f992e ('git branch --all
> --contains 464a29d3d74e7d2f27042db6ab166bfdbe1f992e' tells me that only
> core-updates has this commit at this time), the following error occurs
> when trying to build ant-bootstrap, which causes the 409 dependent
> packages to fail, also:
>
> --8<---------------cut here---------------start------------->8---
> $ guix build -e '(@@ (gnu packages java) ant-bootstrap)'
[=E2=80=A6]
> BUILD FAILED
> Could not load the version information.

This error means that it couldn=E2=80=99t find the version.txt file.  This =
is
strange because it=E2=80=99s right there in src/main, but not in build/clas=
ses.
So I thought I could just fix this by copying files from src/main to
build/classes and the bootstrap build does in fact begin:

--8<---------------cut here---------------start------------->8---
diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm
index 403c446a82..0ec582d10a 100644
--- a/gnu/packages/java.scm
+++ b/gnu/packages/java.scm
@@ -244,6 +244,8 @@ JNI.")
              (setenv "HOME" "/tmp")
              (with-output-to-file "/tmp/.ant.properties"
                (lambda _ (display "")))
+             (with-output-to-file ".ant.properties"
+               (lambda _ (display "")))

              ;; Use jikes instead of javac for <javac ...> tags in build.x=
ml
              (setenv "ANT_OPTS" "-Dbuild.compiler=3Djikes")
@@ -260,6 +262,17 @@ JNI.")
                       `((string-append m "-Xnocompact "))
                       `((string-append m "-Xnocompact -Xnoinlining ")))))

+             (substitute* "src/main/org/apache/tools/ant/version.txt"
+               (("VERSION=3D.*") (string-append "VERSION=3D" ,version "\n"=
))
+               (("DATE=3D.*") "DATE=3Dreproducible"))
+
+             ;; XXX: Copying the source files appears to be necessary beca=
use
+             ;; ant won't find the XML and txt resources in src/main for s=
ome
+             ;; reason.  It really shouldn't be needed, so maybe this can =
be
+             ;; avoided by setting some environment variable.
+             (substitute* "bootstrap.sh"
+               (("cp src/script/antRun bin" m)
+                (string-append m "\ncp -ar src/main/* build/classes/")))
              ;; Disable tests because we are bootstrapping and thus don't =
have
              ;; any of the dependencies required to build and run the test=
s.
              (substitute* "build.xml"
--8<---------------cut here---------------end--------------->8---

It=E2=80=99s possible we could get away with just adding these lines:

  cp {src/main,build/classes}/org/apache/tools/ant/antlib.xml
  cp {src/main,build/classes}/org/apache/tools/ant/version.txt

However, this doesn=E2=80=99t seem to help.  Yes, the bootstrap script no l=
onger
aborts but it gets stuck compiling things.  I can=E2=80=99t get it to tell =
me
anything about the compilation progress, but strace shows me that it
keeps stat=E2=80=99ing for non-existent files like "/tmp/files16bfb86414e_b"
until the end of the day.

Judging by the name of the file I think this is ant=E2=80=99s
src/main/org/apache/tools/ant/taskdefs/compilers/DefaultCompilerAdapter.java
that creates them, which is used by Jikes.java.  We should see if
there=E2=80=99s a race somewhere or if perhaps =E2=80=9Cjikes=E2=80=9D cras=
hes and thus gets
executed over and over again.

--
Ricardo





Information forwarded to bug-guix@HIDDEN:
bug#36685; Package guix. Full text available.

Message received at 36685 <at> debbugs.gnu.org:


Received: (at 36685) by debbugs.gnu.org; 16 Jul 2019 08:08:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 16 04:08:26 2019
Received: from localhost ([127.0.0.1]:49612 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hnIVe-0005F5-Em
	for submit <at> debbugs.gnu.org; Tue, 16 Jul 2019 04:08:26 -0400
Received: from flashner.co.il ([178.62.234.194]:59370)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <efraim@HIDDEN>) id 1hnIVd-0005Ep-5X
 for 36685 <at> debbugs.gnu.org; Tue, 16 Jul 2019 04:08:25 -0400
Received: from localhost (unknown [94.230.83.247])
 by flashner.co.il (Postfix) with ESMTPSA id EDBA440202;
 Tue, 16 Jul 2019 08:08:17 +0000 (UTC)
Date: Tue, 16 Jul 2019 11:08:16 +0300
From: Efraim Flashner <efraim@HIDDEN>
To: Chris Marusich <cmmarusich@HIDDEN>
Subject: Re: bug#36685: ant-bootstrap fails on core-updates (409 dependents)
Message-ID: <20190716080816.GJ22158@macbook41>
References: <8736j61n57.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha512;
 protocol="application/pgp-signature"; boundary="EMQjp+MvU6EBGjHc"
Content-Disposition: inline
In-Reply-To: <8736j61n57.fsf@HIDDEN>
X-PGP-Key-ID: 0x41AAE7DCCA3D8351
X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc
X-PGP-Fingerprint: A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
User-Agent: Mutt/1.12.1 (2019-06-15)
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 36685
Cc: 36685 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


--EMQjp+MvU6EBGjHc
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Building with gcc-5 didn't make it suddenly start working, before anyone
goes down that path.


--=20
Efraim Flashner   <efraim@HIDDEN>   =D7=90=D7=A4=D7=A8=D7=99=D7=9D =
=D7=A4=D7=9C=D7=A9=D7=A0=D7=A8
GPG key =3D A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

--EMQjp+MvU6EBGjHc
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl0thesACgkQQarn3Mo9
g1HP5A//SHa0ezqV5L72mD7rrQSSCF+97/IdvlGdMLCaIauoZRShKsRVXIbZlR8O
zYCUHE6KhsAdIAgVfTa4onJLC/lcigJfaCnK5gd7YBG9PHBez2eTv73+2QJUtTnx
jQLVoMBrtZUkV0JixnJ52CsXGxHut0PzzTL70VSioN888vuRr01Qz+kL7J1Hpj/s
BFuGzqt4E5D07wvpX9CgQxVt1RdWgVLiVY7Fk3o7H/VK3jHOaNRCY6BcLBKB1inu
uIK9eFvwZ7EhD47RecFwAZSAdEmVx/0DKH4aHsF4PWsK5zpT44NmDURmhe7pT+Bv
UIIDO+mMSPWG+qyGXfbTf1iDri18qENXwzIMlQNG4CLoFa3ul8Gx7eTlH7RSXd4I
14QYZPz4TWgIZYNNBuYEMhhaYFS0RA63Qj4xpM8T8upYvXW8eypbwpMW+Hul7dsP
zzTg3X+rylrEabmQxMqoIzvMKgGVw4SXXbxr3JhuVQtdRlrxTg1NOvqNyS/yH7dz
Hr+sPi0o4SXmOPJb+Lfa6PlGnklidytKb5ymNjjeX3+hYNNPv4LaGZP7n1hkqJQ9
/5ORbe8rIbIcmeYUv3HALUm3/zB/uQXGYzUqdiNPhx4nrn6S6cGD8OfECZDoeWUA
NK5l1bAqu/OmyaBAbuK0TUdWWwa4ySjmPp4TdSDe1CtQ3NyKKx4=
=EiE4
-----END PGP SIGNATURE-----

--EMQjp+MvU6EBGjHc--




Information forwarded to bug-guix@HIDDEN:
bug#36685; Package guix. Full text available.

Message received at 36685 <at> debbugs.gnu.org:


Received: (at 36685) by debbugs.gnu.org; 16 Jul 2019 07:04:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 16 03:04:06 2019
Received: from localhost ([127.0.0.1]:49560 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hnHVN-0003W1-Jk
	for submit <at> debbugs.gnu.org; Tue, 16 Jul 2019 03:04:06 -0400
Received: from mail-ed1-f45.google.com ([209.85.208.45]:36628)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <boskovits@HIDDEN>) id 1hnHVL-0003VO-F5
 for 36685 <at> debbugs.gnu.org; Tue, 16 Jul 2019 03:04:04 -0400
Received: by mail-ed1-f45.google.com with SMTP id k21so18347738edq.3
 for <36685 <at> debbugs.gnu.org>; Tue, 16 Jul 2019 00:04:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:references:in-reply-to:from:date:message-id:subject:to
 :cc; bh=eNRMxPTZ8u+ALtnirAAJDAbIwIvwABZmKF4B7rFUs2o=;
 b=e0QGjPyyoGxZ1q1OaALazxyNzpJflG1d+6wpOBlLHyg2NkGuDsRFtW/tmBJy7tjCMA
 b1dlzUzuAgSX+VZdMKasxQbyKopogYJK2PZl08K6CrLw8ZeOyA2Cmt1CTd9vK6SoWxQV
 n+xn/Wvm8cMHRO/FaAbDCGoa08zbIvhjMrDDmpGCeeoaqA0SNmEAAlvr107DjV+cEcpf
 0BlDiu1HQDmuop7D7KW+nO9uvMvjJzfaGQKi717oZRLemTh6ANrhMFH9bryKWzfKd3x5
 G044EiFJ8mtJDctKaG9vy3pxcDR2FGJSjAXnaARes3LpfkusGrBTJlWmm+OR+9io/Sn1
 tFxA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:references:in-reply-to:from:date
 :message-id:subject:to:cc;
 bh=eNRMxPTZ8u+ALtnirAAJDAbIwIvwABZmKF4B7rFUs2o=;
 b=BySjA1XJN+cDDrB+Nob4i9GIOa7eoK/3ByhRZ+CMDHUX0WAaaBOOWvrkgNpZGpfrqm
 cgZkIMuiRUsDUu2d8HA8WZMVdDZWtySjQh8YC6SHl5Mhks6akUecDhlQqjRGtJlU8HCn
 OaOrEGnQuvgcnk+pVPGB+IiH4jyJbkI8qgdLYKj34bqfiaDCTrIYF2ixmNjljYKUEPo0
 T5nG492vPDKD6aAoqRvHUwOklFdB8ajpns6Zfl/FuVNZKN02OfnhiSH3Y8MS7Jf+7pql
 TV7LF2UY/Vz9cFEZ++LuPqg+qRkFdN6cK/3cBYyrECTbr/R8H1IBuv4Bdr37U/vJD4kL
 OCnA==
X-Gm-Message-State: APjAAAV9gBim+Fr1KGP704Th2w9vSy1XH2ogdZju0f6quNr3YzbcUmj4
 53QjO7MIoo0rMwj5jNPrxbVzF54hoRA6UcfkAQ==
X-Google-Smtp-Source: APXvYqyECAQmyGrs0aUZ3g686TGYfZpMg/SQLGOq7r3SXomoe0PwocR7Q00x9APmCVsAX6r3o3yMMNjt0R4cxytNcfo=
X-Received: by 2002:a17:906:af4f:: with SMTP id
 ly15mr24005830ejb.126.1563260637449; 
 Tue, 16 Jul 2019 00:03:57 -0700 (PDT)
MIME-Version: 1.0
References: <8736j61n57.fsf@HIDDEN>
In-Reply-To: <8736j61n57.fsf@HIDDEN>
From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= <boskovits@HIDDEN>
Date: Tue, 16 Jul 2019 09:03:44 +0200
Message-ID: <CAE4v=phnP0Gyj0P5E9ePc9Eec_hhRuKPCmyaEU-bpcBhnapaiw@HIDDEN>
Subject: Re: bug#36685: ant-bootstrap fails on core-updates (409 dependents)
To: Chris Marusich <cmmarusich@HIDDEN>
Content-Type: multipart/alternative; boundary="000000000000fc9587058dc6fadd"
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 36685
Cc: 36685 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--000000000000fc9587058dc6fadd
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi,

Chris Marusich <cmmarusich@HIDDEN> ezt =C3=ADrta (id=C5=91pont: 2019. j=
=C3=BAl. 16., Ke
8:59):

> Hi,
>
> At commit 464a29d3d74e7d2f27042db6ab166bfdbe1f992e ('git branch --all
> --contains 464a29d3d74e7d2f27042db6ab166bfdbe1f992e' tells me that only
> core-updates has this commit at this time), the following error occurs
> when trying to build ant-bootstrap, which causes the 409 dependent
> packages to fail, also:
>
> --8<---------------cut here---------------start------------->8---
> $ guix build -e '(@@ (gnu packages java) ant-bootstrap)'
> ...
> Issued 1 semantic warning compiling
> "src/main/org/apache/tools/ant/filters/FixCrLfFilter.java":
>
>                         <---------
>    665.                 case '\r':
>    . . .
>    684.                     }
>         -------------------->
> *** Semantic Warning: This switch block can fall through to the next case=
.
> Did you forget a break statement?
>
> Issued 1 semantic warning compiling
> "src/main/org/apache/tools/ant/taskdefs/Zip.java":
>
>   1555.             Vector resources =3D new Vector();
>                            ^-------^
> *** Semantic Warning: Local "resources" shadows a field of the same name
> in "org.apache.tools.ant.taskdefs.Zip".
>
> Issued 1 semantic warning compiling
> "src/main/org/apache/tools/ant/taskdefs/Get.java":
>
>    633.             URLConnection connection =3D aSource.openConnection()=
;
>                                   ^--------^
> *** Semantic Warning: Local "connection" shadows a field of the same name
> in "org.apache.tools.ant.taskdefs.Get$GetThread".
>
> Issued 1 semantic warning compiling
> "src/main/org/apache/tools/ant/taskdefs/rmic/XNewRmic.java":
>
>     34.     public static final String COMPILER_NAME =3D "xnew";
>                                        ^-----------^
> *** Semantic Warning: Field "COMPILER_NAME" shadows a field of the same
> name in "org.apache.tools.ant.taskdefs.rmic.ForkingSunRmic".
> ... Copying Required Files
> ... Building Ant Distribution
> Buildfile:
> /tmp/guix-build-ant-bootstrap-1.8.4.drv-0/apache-ant-1.8.4/build.xml
>
> BUILD FAILED
> Could not load the version information.
>
> Total time: 0 seconds
> ... Failed Building Ant Distribution !
> command "bash" "bootstrap.sh"
> "-Ddist.dir=3D/gnu/store/jd6jm79d0r5g59d0l2l3w445adykp5p9-ant-bootstrap-1=
.8.4"
> failed with status 1
> builder for
> `/gnu/store/76apf0hpcdabpjy0839nhkwgfrz3m8z5-ant-bootstrap-1.8.4.drv'
> failed with exit code 1
> build of
> /gnu/store/76apf0hpcdabpjy0839nhkwgfrz3m8z5-ant-bootstrap-1.8.4.drv faile=
d
> View build log at
> '/var/log/guix/drvs/76/apf0hpcdabpjy0839nhkwgfrz3m8z5-ant-bootstrap-1.8.4=
.drv.bz2'.
> guix build: error: build of
> `/gnu/store/76apf0hpcdabpjy0839nhkwgfrz3m8z5-ant-bootstrap-1.8.4.drv' fai=
led
> --8<---------------cut here---------------end--------------->8---
>
> It fails quite quickly, so you can easily get a copy failing locally if
> you want to test it out.
>
Thanks for the report.
I will have a look at this soon.

>
> --
> Chris
>
Best regards,
g_bor

>

--000000000000fc9587058dc6fadd
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div>Hi,</div><div dir=3D"auto"><br><div class=3D"gmail_q=
uote" dir=3D"auto"><div dir=3D"ltr" class=3D"gmail_attr">Chris Marusich &lt=
;<a href=3D"mailto:cmmarusich@HIDDEN">cmmarusich@HIDDEN</a>&gt; ezt =
=C3=ADrta (id=C5=91pont: 2019. j=C3=BAl. 16., Ke 8:59):<br></div><blockquot=
e class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc sol=
id;padding-left:1ex">Hi,<br>
<br>
At commit 464a29d3d74e7d2f27042db6ab166bfdbe1f992e (&#39;git branch --all<b=
r>
--contains 464a29d3d74e7d2f27042db6ab166bfdbe1f992e&#39; tells me that only=
<br>
core-updates has this commit at this time), the following error occurs<br>
when trying to build ant-bootstrap, which causes the 409 dependent<br>
packages to fail, also:<br>
<br>
--8&lt;---------------cut here---------------start-------------&gt;8---<br>
$ guix build -e &#39;(@@ (gnu packages java) ant-bootstrap)&#39;<br>
...<br>
Issued 1 semantic warning compiling &quot;src/main/org/apache/tools/ant/fil=
ters/FixCrLfFilter.java&quot;:<br>
<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 &lt;---------<br>
=C2=A0 =C2=A0665.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0case &#39;\r&#39;:<br>
=C2=A0 =C2=A0. . .<br>
=C2=A0 =C2=A0684.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0}<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 --------------------&gt;<br>
*** Semantic Warning: This switch block can fall through to the next case. =
Did you forget a break statement?<br>
<br>
Issued 1 semantic warning compiling &quot;src/main/org/apache/tools/ant/tas=
kdefs/Zip.java&quot;:<br>
<br>
=C2=A0 1555.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Vector resource=
s =3D new Vector();<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0^-------^<br>
*** Semantic Warning: Local &quot;resources&quot; shadows a field of the sa=
me name in &quot;org.apache.tools.ant.taskdefs.Zip&quot;.<br>
<br>
Issued 1 semantic warning compiling &quot;src/main/org/apache/tools/ant/tas=
kdefs/Get.java&quot;:<br>
<br>
=C2=A0 =C2=A0633.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0URLConnect=
ion connection =3D aSource.openConnection();<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ^--------^<br>
*** Semantic Warning: Local &quot;connection&quot; shadows a field of the s=
ame name in &quot;org.apache.tools.ant.taskdefs.Get$GetThread&quot;.<br>
<br>
Issued 1 semantic warning compiling &quot;src/main/org/apache/tools/ant/tas=
kdefs/rmic/XNewRmic.java&quot;:<br>
<br>
=C2=A0 =C2=A0 34.=C2=A0 =C2=A0 =C2=A0public static final String COMPILER_NA=
ME =3D &quot;xnew&quot;;<br>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0^--------=
---^<br>
*** Semantic Warning: Field &quot;COMPILER_NAME&quot; shadows a field of th=
e same name in &quot;org.apache.tools.ant.taskdefs.rmic.ForkingSunRmic&quot=
;.<br>
... Copying Required Files<br>
... Building Ant Distribution<br>
Buildfile: /tmp/guix-build-ant-bootstrap-1.8.4.drv-0/apache-ant-1.8.4/build=
.xml<br>
<br>
BUILD FAILED<br>
Could not load the version information.<br>
<br>
Total time: 0 seconds<br>
... Failed Building Ant Distribution !<br>
command &quot;bash&quot; &quot;bootstrap.sh&quot; &quot;-Ddist.dir=3D/gnu/s=
tore/jd6jm79d0r5g59d0l2l3w445adykp5p9-ant-bootstrap-1.8.4&quot; failed with=
 status 1<br>
builder for `/gnu/store/76apf0hpcdabpjy0839nhkwgfrz3m8z5-ant-bootstrap-1.8.=
4.drv&#39; failed with exit code 1<br>
build of /gnu/store/76apf0hpcdabpjy0839nhkwgfrz3m8z5-ant-bootstrap-1.8.4.dr=
v failed<br>
View build log at &#39;/var/log/guix/drvs/76/apf0hpcdabpjy0839nhkwgfrz3m8z5=
-ant-bootstrap-1.8.4.drv.bz2&#39;.<br>
guix build: error: build of `/gnu/store/76apf0hpcdabpjy0839nhkwgfrz3m8z5-an=
t-bootstrap-1.8.4.drv&#39; failed<br>
--8&lt;---------------cut here---------------end---------------&gt;8---<br>
<br>
It fails quite quickly, so you can easily get a copy failing locally if<br>
you want to test it out.<br></blockquote></div></div><div dir=3D"auto">Than=
ks for the report.</div><div dir=3D"auto">I will have a look at this soon.<=
/div><div dir=3D"auto"><div class=3D"gmail_quote" dir=3D"auto"><blockquote =
class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid=
;padding-left:1ex">
<br>
-- <br>
Chris<br></blockquote></div></div><div dir=3D"auto">Best regards,</div><div=
 dir=3D"auto">g_bor</div><div dir=3D"auto"><div class=3D"gmail_quote" dir=
=3D"auto"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bord=
er-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>

--000000000000fc9587058dc6fadd--




Information forwarded to bug-guix@HIDDEN:
bug#36685; Package guix. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 16 Jul 2019 06:58:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 16 02:58:40 2019
Received: from localhost ([127.0.0.1]:49554 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hnHQ7-0003LK-PK
	for submit <at> debbugs.gnu.org; Tue, 16 Jul 2019 02:58:40 -0400
Received: from lists.gnu.org ([209.51.188.17]:35318)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <cmmarusich@HIDDEN>) id 1hnHQ6-0003LD-70
 for submit <at> debbugs.gnu.org; Tue, 16 Jul 2019 02:58:38 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:38141)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <cmmarusich@HIDDEN>) id 1hnHQ5-0008Bn-0a
 for bug-guix@HIDDEN; Tue, 16 Jul 2019 02:58:38 -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,FREEMAIL_FROM,
 URIBL_BLOCKED autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <cmmarusich@HIDDEN>) id 1hnHQ4-0001sv-0H
 for bug-guix@HIDDEN; Tue, 16 Jul 2019 02:58:36 -0400
Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]:45246)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <cmmarusich@HIDDEN>)
 id 1hnHQ3-0001rJ-Nz
 for bug-guix@HIDDEN; Tue, 16 Jul 2019 02:58:35 -0400
Received: by mail-pg1-x532.google.com with SMTP id o13so8924137pgp.12
 for <bug-guix@HIDDEN>; Mon, 15 Jul 2019 23:58:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:subject:date:message-id:user-agent:mime-version;
 bh=z+H5ulZLezF/8n0Si0Eey9tggFqn448InC0l2KhdYEM=;
 b=JRShDhfpvsy1O975BHzjGsfqKbRoO5VqjXAJsj934dF0aC48ry9mSMlNLqp2JcQE7p
 iJtZjUQemOrGDYjAHoRxvdbGS1rGMkMS95HUA8yFrlBdnCMXVhCvnPkG2r9q2YUXxdis
 ubtFXYSnL3YgnhXbTfFYWiFwJxNEJWCKUvxdRJbfRFpkPSx6GQVQ0ZHssK36tgd6hL3d
 eexVRzQljUSXlEIeApdBn+ryZHgXkBaGEWprH6YbDiSO5z54wQThHeaLUD+EC6HflFuO
 68jypFLpt/mrO2BC8JiDAjrrCn8x1vD1T/DtQr4SypCS+X/Io0FS6FvBCxnZqpJFqYF8
 NJBw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:subject:date:message-id:user-agent
 :mime-version;
 bh=z+H5ulZLezF/8n0Si0Eey9tggFqn448InC0l2KhdYEM=;
 b=pD1fkA0Pw3MIxwfp5KH6zgYJI1LlHumE9E0yfmJYDO/LPv5I4eNIUOh82tgEkyTbci
 30EfqR7V3YDIXr50AMQgk0uJM8x0xArB5rnUm0Ky8H7epA0+714ROtRsQtsm6aS9YU6j
 2rLOljgA4pgmhIN9qC1HMIbY0CdYGUxyScuYTprvOW+FNptQL1qaOKv4cC3tIQXo6lgr
 psEnEk5rrBYDwJ2oQCG6UYE6lJjRZkPIgZRXsPnRGcNklu+RfTa+gJcodcmpHiUU8bxB
 wgdyGGFND2H2i8Xi5m8bv12nzS5mlYz9yw53pU6BPGF452A+cEcxa/ScdvGZ3mDgGoog
 exkg==
X-Gm-Message-State: APjAAAWBsdnTX1Bybz+w2GwbZzwRXpQBwFMyaQZrfcPQ5b045hEusklo
 IYQlsrSSdhKeyujViHcCQQaldLUR
X-Google-Smtp-Source: APXvYqwpokYxyLBjOqGONJ3YQTPWq+nuwj0rQZWqyVEk2PVCPhq9g2HF9KbGvZHR2dSE6t0gviTh2g==
X-Received: by 2002:a63:fe15:: with SMTP id p21mr31960144pgh.149.1563260314047; 
 Mon, 15 Jul 2019 23:58:34 -0700 (PDT)
Received: from garuda.local ([2601:601:9d80:25b2::d12])
 by smtp.gmail.com with ESMTPSA id i124sm37453180pfe.61.2019.07.15.23.58.32
 for <bug-guix@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Mon, 15 Jul 2019 23:58:33 -0700 (PDT)
From: Chris Marusich <cmmarusich@HIDDEN>
To: bug-guix@HIDDEN
Subject: ant-bootstrap fails on core-updates (409 dependents)
Date: Mon, 15 Jul 2019 23:58:28 -0700
Message-ID: <8736j61n57.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2607:f8b0:4864:20::532
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi,

At commit 464a29d3d74e7d2f27042db6ab166bfdbe1f992e ('git branch --all
=2D-contains 464a29d3d74e7d2f27042db6ab166bfdbe1f992e' tells me that only
core-updates has this commit at this time), the following error occurs
when trying to build ant-bootstrap, which causes the 409 dependent
packages to fail, also:

=2D-8<---------------cut here---------------start------------->8---
$ guix build -e '(@@ (gnu packages java) ant-bootstrap)'
...
Issued 1 semantic warning compiling "src/main/org/apache/tools/ant/filters/=
FixCrLfFilter.java":

                        <---------
   665.                 case '\r':
   . . .
   684.                     }
        -------------------->
*** Semantic Warning: This switch block can fall through to the next case. =
Did you forget a break statement?

Issued 1 semantic warning compiling "src/main/org/apache/tools/ant/taskdefs=
/Zip.java":

  1555.             Vector resources =3D new Vector();
                           ^-------^
*** Semantic Warning: Local "resources" shadows a field of the same name in=
 "org.apache.tools.ant.taskdefs.Zip".

Issued 1 semantic warning compiling "src/main/org/apache/tools/ant/taskdefs=
/Get.java":

   633.             URLConnection connection =3D aSource.openConnection();
                                  ^--------^
*** Semantic Warning: Local "connection" shadows a field of the same name i=
n "org.apache.tools.ant.taskdefs.Get$GetThread".

Issued 1 semantic warning compiling "src/main/org/apache/tools/ant/taskdefs=
/rmic/XNewRmic.java":

    34.     public static final String COMPILER_NAME =3D "xnew";
                                       ^-----------^
*** Semantic Warning: Field "COMPILER_NAME" shadows a field of the same nam=
e in "org.apache.tools.ant.taskdefs.rmic.ForkingSunRmic".
... Copying Required Files
... Building Ant Distribution
Buildfile: /tmp/guix-build-ant-bootstrap-1.8.4.drv-0/apache-ant-1.8.4/build=
.xml

BUILD FAILED
Could not load the version information.

Total time: 0 seconds
... Failed Building Ant Distribution !
command "bash" "bootstrap.sh" "-Ddist.dir=3D/gnu/store/jd6jm79d0r5g59d0l2l3=
w445adykp5p9-ant-bootstrap-1.8.4" failed with status 1
builder for `/gnu/store/76apf0hpcdabpjy0839nhkwgfrz3m8z5-ant-bootstrap-1.8.=
4.drv' failed with exit code 1
build of /gnu/store/76apf0hpcdabpjy0839nhkwgfrz3m8z5-ant-bootstrap-1.8.4.dr=
v failed
View build log at '/var/log/guix/drvs/76/apf0hpcdabpjy0839nhkwgfrz3m8z5-ant=
-bootstrap-1.8.4.drv.bz2'.
guix build: error: build of `/gnu/store/76apf0hpcdabpjy0839nhkwgfrz3m8z5-an=
t-bootstrap-1.8.4.drv' failed
=2D-8<---------------cut here---------------end--------------->8---

It fails quite quickly, so you can easily get a copy failing locally if
you want to test it out.

=2D-=20
Chris

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAl0tdZQACgkQ3UCaFdgi
Rp1evA/9HUEfqG+JKJX3aPcVe3cBEuMsISgo2t7uLWUmReVsw9iBUDnN0gu/1Bqj
jgKKuwM6uTD9cA739j5lrJO5C9IXxDrMsy7AUH7KrIdPqxr8lDp7ECFxf1D0SuJr
io6BkHQXXgj+rYehe7hDJ7oiFivZdGRTznuubw9FN9+C4CrFGpXRzL+sum1TCi6U
fOilZf6TKgYVGUtIALcFYsmQmnk7UyfQyhQVu9b3rNXyg7bCc9HwwiaFVZBLAMIa
bHhADgP5AKIDNqjbMoV/aYFopb2BDl34wahVlOaiRS5+u/K0VtZqXsfM5vxhwIWI
ez63xzhkbf/QDqQ2JVGXSZQTAYbTsOBR3bTIJcbYktSAsJeBR1aqo3dOvl4ac0rE
vbjLgzIV35fYd4rfBrHCCNzQct6liKsnUTlJJFnh84i6otSESLUEYiwHxOz23reo
2IAUM3StWO3kLPVHfGnP17cbJS//DOpEZ6U4CxMl215hgvdtk/gEwnYcrLq960WS
Kyb/q3UhLW0+itGV4/I9sE0lZV0ox7/ST42u+RbrKFkwjnSlOG4sV3Y1gPnnei1b
YlY4KuWXKFpc3vZBjfQEyHGJd6a3zBh862x2RcrOvDaSH711hcg/WVT7AOxtVCSf
Cq0Mnsv82vyAW3NIWKsJveGoTXIc5jZ9/fW46bGEc4bgez4iN98=
=eiFS
-----END PGP SIGNATURE-----
--=-=-=--




Acknowledgement sent to Chris Marusich <cmmarusich@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guix@HIDDEN. Full text available.
Report forwarded to bug-guix@HIDDEN:
bug#36685; Package guix. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 21 Jul 2019 11:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.