From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KHbQHZHRLmHF2AAAgWs5BA (envelope-from ) for ; Wed, 01 Sep 2021 03:04:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id OE2iGZHRLmHrQQAAB5/wlQ (envelope-from ) for ; Wed, 01 Sep 2021 01:04:17 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B84595867 for ; Wed, 1 Sep 2021 03:04:16 +0200 (CEST) Received: from localhost ([::1]:37046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLEfm-00039r-UB for larch@yhetil.org; Tue, 31 Aug 2021 21:04:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLEfa-00039i-Iy for bug-guix@gnu.org; Tue, 31 Aug 2021 21:04:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52376) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mLEfa-0005NL-Af for bug-guix@gnu.org; Tue, 31 Aug 2021 21:04:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mLEfa-0001Uz-3J for bug-guix@gnu.org; Tue, 31 Aug 2021 21:04:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49990: [core-updates-frozen] Ant-bootstrap broken by classpath-bootstrap Resent-From: Julien Lepiller Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 01 Sep 2021 01:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49990 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 49990-submit@debbugs.gnu.org id=B49990.16304581945702 (code B ref 49990); Wed, 01 Sep 2021 01:04:02 +0000 Received: (at 49990) by debbugs.gnu.org; 1 Sep 2021 01:03:14 +0000 Received: from localhost ([127.0.0.1]:35689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLEek-0001Tm-GM for submit@debbugs.gnu.org; Tue, 31 Aug 2021 21:03:14 -0400 Received: from lepiller.eu ([89.234.186.109]:56598) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLEee-0001TY-C2 for 49990@debbugs.gnu.org; Tue, 31 Aug 2021 21:03:09 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id f38519ec; Wed, 1 Sep 2021 01:03:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:cc:subject:message-id:in-reply-to:references:mime-version :content-type; s=dkim; bh=A8daQEPXz7R1C0e6flNAyEBl4UoIeHQWYAUwDy UN9iQ=; b=E2RGOVZQ1+VMRwavqUrCIQ2kk13a6YYeQsDprMj4cBBqeB91I8roWY Z+Jkev0p0/kFqzGz0Q5LyuqLHZDcib5hLgSTEypftF6bGJIRY2f04ZF9qRPUOirZ F+hOIe+aCIcTMNwVzusSamT42vQQn8+XXH7+DpYtJXDhNaglTBTRFUtCstoFkGwC QMGkyL/9t9pXsgArM3GAnUVEULoBVuNNNaUgpunXfSsdmEjcI2zWiFXPli8qaiox tGxeGdIfs/jJg+CJD7V2S7S0m6SANHmqV7rionJpzVoZY5DbDTvoy3RPEzLSzRgH wLHU6/z8EIBTJla06CMINzuZOBQz2Rhg== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id f1aac32e (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 1 Sep 2021 01:03:01 +0000 (UTC) Date: Wed, 1 Sep 2021 03:02:55 +0200 From: Julien Lepiller Message-ID: <20210901030255.27bfdd2d@tachikoma.lepiller.eu> In-Reply-To: <878s0h8cu0.fsf@gnu.org> References: <20210810233801.02639bd8@tachikoma.lepiller.eu> <878s0h8cu0.fsf@gnu.org> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/gCRo1p7.yqGfjx913__iHNz" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 49990@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1630458257; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=bPTspw3gNlTPzO7QkSQkYkgJ0R3HZAVKHUW5tv4djz0=; b=UFz1RfMmF/rlbI/XgSSyVhkTXkdpbaipWAqxSfAYsuk6HrSf1u9FNdyfMEMO06xczbpvp1 i90kiwBpx9Mhtz2Tvn+ARUXc0cx6ZM3gU7SIOqkX6ALX+oFXK5K6XJ/eQMw8ko2JCF5zWk fB03yylxug2Ll/bcULfZSoo0DVW0ip5qezlsGSp035koEmpaTeQdzg45tGOX1l4JGUVGpZ tPj8Ea9bz20FvalbCE9BAzM9bjF2/K+GX1/dV9aA4uXcf/z3yXGviKcxfpGb2t4Yzd7kg7 E7238Vn7MC3KQnNRHmMBhzJjS5XmGAKLtcswl0JgG8grRqmUPRXYNGVn47Wnxg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630458257; a=rsa-sha256; cv=none; b=siemt/Y06CMt6/8i2++IqKAhMUMg6DgIc0nWSY62zyBjYbeTRBe5EHxkJpQ32W1e8FYtLx wn4TGgkiQmaz8YTTZBfDszsmTZaAwQMqFNiKcZTkerPm3TnZxR1GPFWZAGFjlMm9ghBDLQ cOdkJcS5WWaUw3MKiMc++oxzEes4VF455JF6dHQGAC33WNNfQjSa9x4gfIZOk7TG9Ob76h Eh4nSRm+RsW48faO/Fk31fumYooWRmBs5VXCvWc+jZuUTEgFio05r+M5mw5cxyoCaritIo AMpcbWnV1qERBq9e6MZ6qSQFiuWYE+3zzAtaclHvSPrMH2Egb9t3NVAMkEytOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=E2RGOVZQ; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=E2RGOVZQ; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=none); spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: B84595867 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: ECfwuW78OaOb --MP_/gCRo1p7.yqGfjx913__iHNz Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Le Wed, 01 Sep 2021 00:32:39 +0200, Ludovic Court=C3=A8s a =C3=A9crit : > Hello! >=20 > As discussed on IRC, I had a semi-victory with the attached patch, > which works around a miscompilation issue in > =E2=80=98Java_java_io_VMFile_isFile=E2=80=99. another possibility I tested was to disable optimization by adding CFLAGS=3D-O0 to the configure-flags. This creates an unoptimized version, but that should be fine since it's only for the bootstrap. However, I noticed that my debug messages from my previous attempt were still visible when compiling icedtea. I don't know what happened, since there is at least another classpath version before it. >=20 > Unfortunately, with this patch applied, =E2=80=98ant-bootstrap=E2=80=99 f= ails to build > with: >=20 > Ideas? What a wonderful puzzle we have! :-) Even more wonderful is the fact I do not get this error at all when using CFLAGS=3D-O0, but I do with your patch. I didn't have any issue either with my previous attempt with debugging. Could there be other problems with optimizations in classpath? I attached my counter-patch :) > Thanks, > Ludo=E2=80=99. >=20 --MP_/gCRo1p7.yqGfjx913__iHNz Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=classpath.patch diff --git a/gnu/packages/java.scm b/gnu/packages/java.scm index 08ef7a8213..b2fddcc055 100644 --- a/gnu/packages/java.scm +++ b/gnu/packages/java.scm @@ -244,7 +244,8 @@ only faster.") "--disable-plugin" "--disable-dssi" "--disable-alsa" - "--disable-gjdoc") + "--disable-gjdoc" + "CFLAGS=-O0") #:phases (modify-phases %standard-phases ;; XXX: This introduces a memory leak as we remove a call to free up @@ -333,7 +334,7 @@ other small VMs it supports the full spec, including object finalisation and JNI.") (license license:gpl2+))) -(define ant-bootstrap +(define-public ant-bootstrap (package (name "ant-bootstrap") ;; The 1.10.x series requires Java 8. 1.9.0 and later use generics, which --MP_/gCRo1p7.yqGfjx913__iHNz--