From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: bug#36685: ant-bootstrap fails on core-updates (409 dependents) Date: Fri, 19 Jul 2019 10:09:06 +0200 Message-ID: <87a7dafntp.fsf__36041.376860679$1563523816$gmane$org@elephly.net> References: <8736j61n57.fsf@gmail.com> <87o91ugdot.fsf@elephly.net> <87ftn5gjzw.fsf@elephly.net> <871ryogu6j.fsf@elephly.net> <87r26nfwes.fsf@elephly.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:45458) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hoNxr-0001k0-Bn for bug-guix@gnu.org; Fri, 19 Jul 2019 04:10:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hoNxq-0006jG-5R for bug-guix@gnu.org; Fri, 19 Jul 2019 04:10:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46263) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hoNxq-0006j5-2l for bug-guix@gnu.org; Fri, 19 Jul 2019 04:10:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hoNxp-0002Wf-SG for bug-guix@gnu.org; Fri, 19 Jul 2019 04:10:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <87r26nfwes.fsf@elephly.net> List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: cmmarusich@gmail.com Cc: guix-devel@gnu.org, 36685@debbugs.gnu.org Ricardo Wurmus 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