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: Thu, 18 Jul 2019 12:51:23 +0200 Message-ID: <87r26nfwes.fsf__14394.6070734941$1563447135$gmane$org@elephly.net> References: <8736j61n57.fsf@gmail.com> <87o91ugdot.fsf@elephly.net> <87ftn5gjzw.fsf@elephly.net> <871ryogu6j.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]:39049) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ho415-0001A1-K3 for bug-guix@gnu.org; Thu, 18 Jul 2019 06:52:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ho414-000338-K5 for bug-guix@gnu.org; Thu, 18 Jul 2019 06:52:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44664) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ho414-00032w-Gm for bug-guix@gnu.org; Thu, 18 Jul 2019 06:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ho414-0000sz-CZ for bug-guix@gnu.org; Thu, 18 Jul 2019 06:52:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-reply-to: <871ryogu6j.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: > Ricardo Wurmus 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