From debbugs-submit-bounces@debbugs.gnu.org Thu Jul 18 06:51:34 2019 Received: (at 36685) by debbugs.gnu.org; 18 Jul 2019 10:51:34 +0000 Received: from localhost ([127.0.0.1]:53480 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ho40c-0000s0-4s for submit@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 ) id 1ho40Z-0000rr-Fx for 36685@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@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1563447088; s=zoho; d=elephly.net; i=rekado@elephly.net; 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@gmail.com> <87o91ugdot.fsf@elephly.net> <87ftn5gjzw.fsf@elephly.net> <871ryogu6j.fsf@elephly.net> User-agent: mu4e 1.2.0; emacs 26.2 From: Ricardo Wurmus To: cmmarusich@gmail.com Subject: Re: bug#36685: ant-bootstrap fails on core-updates (409 dependents) In-reply-to: <871ryogu6j.fsf@elephly.net> 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@elephly.net> 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@gnu.org, 36685@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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