From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: bug#36685: ant-bootstrap fails on core-updates (409 dependents) Date: Thu, 18 Jul 2019 12:51:23 +0200 Message-ID: <87r26nfwes.fsf@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]:38850) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1ho40Z-0000tC-Ht for guix-devel@gnu.org; Thu, 18 Jul 2019 06:51:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ho40Y-0002eu-J7 for guix-devel@gnu.org; Thu, 18 Jul 2019 06:51:31 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21275) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ho40Y-0002eI-BI for guix-devel@gnu.org; Thu, 18 Jul 2019 06:51:30 -0400 In-reply-to: <871ryogu6j.fsf@elephly.net> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" 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