From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YL0/FuTGLGF0XwEAgWs5BA (envelope-from ) for ; Mon, 30 Aug 2021 13:54:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GM0DEuTGLGGubwAA1q6Kng (envelope-from ) for ; Mon, 30 Aug 2021 11:54:12 +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 8434119646 for ; Mon, 30 Aug 2021 13:54:11 +0200 (CEST) Received: from localhost ([::1]:50028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mKfrd-0003aQ-R4 for larch@yhetil.org; Mon, 30 Aug 2021 07:54:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45380) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mKfrW-0003aI-4f for bug-guix@gnu.org; Mon, 30 Aug 2021 07:54:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46766) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mKfrV-0007Fm-Tp for bug-guix@gnu.org; Mon, 30 Aug 2021 07:54:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mKfrV-0000xe-Ol for bug-guix@gnu.org; Mon, 30 Aug 2021 07:54:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#49990: [core-updates-frozen] Ant-bootstrap broken by classpath-bootstrap Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 30 Aug 2021 11:54:01 +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: Julien Lepiller Received: via spool by 49990-submit@debbugs.gnu.org id=B49990.16303244313678 (code B ref 49990); Mon, 30 Aug 2021 11:54:01 +0000 Received: (at 49990) by debbugs.gnu.org; 30 Aug 2021 11:53:51 +0000 Received: from localhost ([127.0.0.1]:58312 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKfrK-0000xF-M8 for submit@debbugs.gnu.org; Mon, 30 Aug 2021 07:53:51 -0400 Received: from flashner.co.il ([178.62.234.194]:50944) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mKfrG-0000wr-UV for 49990@debbugs.gnu.org; Mon, 30 Aug 2021 07:53:49 -0400 Received: from localhost (unknown [141.226.169.107]) by flashner.co.il (Postfix) with ESMTPSA id 9B74A40336; Mon, 30 Aug 2021 11:53:40 +0000 (UTC) Date: Mon, 30 Aug 2021 14:51:41 +0300 From: Efraim Flashner Message-ID: Mail-Followup-To: Efraim Flashner , Julien Lepiller , 49990@debbugs.gnu.org References: <20210810233801.02639bd8@tachikoma.lepiller.eu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="6nzhSwq/T0tVU2rq" Content-Disposition: inline In-Reply-To: <20210810233801.02639bd8@tachikoma.lepiller.eu> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 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=1630324451; 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; bh=Mi0lnhU9npLwKHlJz0TNV7JVFTyOZBR0RSzTjZClhMg=; b=OSo0huhguQKaX7T5muqOHx5L/8jOpUZ4/8xUTen4I3EA9oRlFGjkiGu+eeF8Z/j2AjLhsd Huj+p/vU8J8mJaZX0NEi1ZCXjty7ohZ/7H/5//nWoiqeoxXCdnszXgCUlKa1lXiejqIN1r d/pD+ofQO+CssRm4z1VQiFkKHPSiSWCXqQCzuarHjQXUVz5p4HjDEjsaEbAG+PJUl+91UC P6duFKlW7PW8PQRfJG7wAcxnQRrAay7JFjwOXwMQTyVIiTXnO2PkBd7HPSlh7N5d6t0ny0 a2Ps+DlzSv1EzT6Ugj6w4AJoSDtKf/JZUxPON9Mazw/NumwdQuMVh8z9oF+jLg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1630324451; a=rsa-sha256; cv=none; b=iodKQ+aXdhiCsnqydVMLAwWD0hyD7vB0SK27yXJWiYWgAq44RO5dshe2zuG+7R4WNGeN6F 2L+8r60h8ruhZkUKhZwQNYSG2PEWo/S9lT72Xwzf+DWHVsRk4zLe9EZt4b8T/qh/ucgULz r7H62FVmZTQPoUpz83jpoattUCN9BpkwqSJ+JfVO7nUiYeLHPtSumfB1epI8HgYgDHtWay U/SzCskIhzkoSWSWittaky8cLPbZY2rSY4EyK0M+4AxeGMcDxPhDYyz+7pWcQW/boJ2iXk 1CrUY9fT5APu5cQIH7FYp9XMtj5hnJu+AcKqE1Sdkl4veZkh/ptm5xYjtGDwCQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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-Spam-Score: -4.02 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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: 8434119646 X-Spam-Score: -4.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: s4Iju0pDlQL1 --6nzhSwq/T0tVU2rq Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 10, 2021 at 11:38:01PM +0200, Julien Lepiller wrote: > Hi Guix! >=20 > I've finally taken the time to investigate the build failure of > ant-bootstrap. It is failing after reporting a file exists: >=20 I tried working around it a different way, and tried removing some lines =66rom build.xml but didn't make it to a built package. Interestingly, ant-bootstrap as it currently exists in core-updates-frozen, builds just fine on armhf, aarch64 and powerpc. > ``` > /tmp/guix-build-ant-bootstrap-1.8.4.drv-0/apache-ant-1.8.4/build.xml:558: > Unable to create directory as a file already exists with that name: > /tmp/guix-build-ant-bootstrap-1.8.4.drv-0/apache-ant-1.8.4/build > ``` >=20 > So, I set an environment variable to pass a different build directory > to ant (-Dbuild.dir=3Dbootstrapped-build), but it fails in the same way: >=20 > ``` > /tmp/guix-build-ant-bootstrap-1.8.4.drv-0/apache-ant-1.8.4/build.xml:558: > Unable to create directory as a file already exists with that name: > /tmp/guix-build-ant-bootstrap-1.8.4.drv-0/apache-ant-1.8.4/bootstrapped-b= uild > ``` >=20 > However, using -K, I could check the directory does not exist. After > investigating a bit, I found that File.isFile() is not working as > expected. With the following file (Test.java): >=20 > ``` > import java.io.File; > public class Test { > public static void main(String[] args) { > File f =3D new File("non-existent"); > if(f.isFile()) > System.out.println("yes"); > else > System.out.println("no"); > } > } > ``` >=20 > compiled in a guix environment for ant-bootstrap (I had to temporarily > export it): >=20 > ``` > $ ./pre-inst-env guix environment ant-bootstrap > [env]$ CLASSPATH=3D$GUIX_ENVIRONMENT/lib/rt.jar jikes Test.java > [env]$ java Test > no > [env]$ jamvm Test > yes > ``` >=20 > (java comes from outside the environment). jamvm from master is > working, and I don't see any difference in it, classpath or jikes > recipes. >=20 > After investigation, it turns out that java.io.File is actually > implemented in classpath, not jamvm, and there is a comment that refers > to another similar issue: >=20 > https://issues.guix.gnu.org/issue/36685 >=20 > I tried the obvious, that is to introduce a new memory leak, but that > did not work. So, to better understand what was going on, I instead > added some printing: >=20 > ``` > @@ -256,7 +256,9 @@ only faster.") > (lambda _ > (substitute* "native/jni/java-io/java_io_VMFile.c" > (("result =3D cpio_isFileExists.*" m) > - (string-append m "\n//"))) > + (string-append m "\n//")) > + (("result =3D cpio_checkType.*" m) > + (string-append m "\nfprintf(stderr, \"type? %s : %d -- > %d -- %d;\\n\", filename, result, entryType, ((result =3D=3D CPNATIVE_OK = && > entryType =3D=3D CPFILE_FILE) ? 1 : 0));\n"))) #t)) (add-after 'install > 'install-data (lambda _ (invoke "make" "install-data")))))) > ``` >=20 > and surprisingly, this prints the expected values, and it is enough to > get the correct answer from the java side too. With the above diff, I'm > able to build ant-bootstrap and all the dependencies of icedtea@1, with > a lot of useless debug lines... Unfortunately icedtea itself ends in a > failure after building quite a lot. I was able to use your diff to build ant-bootstrap for x86_64. aarch64, armhf and powerpc still build and i686 still fails. I'm not sure why icedtea@1 didn't build for you, I was able to build it on x86_64. The other architectures are building more slowly. Looks to me like you should add it, with a comment like: With the power of ... debug spam? we magically enable building on x86_64. --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --6nzhSwq/T0tVU2rq Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmEsxkkACgkQQarn3Mo9 g1E5Fw//bAFlbKz/qGrKAzJu6JZY3Owa25a5SHMJA992AQ0M7hvyNmAVnWSS/8Pi EQa1TE7ss4Jv9s7vjPNTOX3T7cYGmnipbB0eLTopr84nzcyK59blPI3bOo24UbiK kUQSMUMXelQ1ShnaYlw+ugspvj/XFUusqG9etDXuyhl8QYCdUmsCRO0AF1Fmvbvw IOSyLHdxRrZRrx1YQgrSrVIaHzKMCJFJ6D7Qu40dPm99fjVBcQlw62Bgfm95Zr+7 ezTsUbqzE2z4tfFZdvqHNhUyCxkFb5gBLxq4uspfhl++aQYLPMC6pwgvjr9rzKER wXWb1jFUq0tAek5UGyn5HoqnFxTPGH487exjX744jcvHE/NnJs+pbJHKT6zNyfyY lqUmy9NHPm6qrKwbI0FOptcaV5UNWFH8S/7kDvj24toyTQVwYRBWOsEIXXNHqrYu O1RwXCp2KFK6xE+vb/z0Bq+VERDIXZbV2XQ0BXcHLaE7p9hLK1ORN8Y+3qRtA0BD dOz3Z9wSbkwPDl/OTLjunPp4U3H9IgA/9ottyUYGztsK2ztjqAO+nBHZDeg0uRbp FGWsN293AvJt7JfN8b/sQWr7Qy7nCZgMUN8L3+TzePDGIo1p31jeRA5A9+OnECuO Bud9VYsNbyyg5BIZGh2HyGAR2g3imx4Mta4tAmgoxw4Q1hDZtjw= =zgz1 -----END PGP SIGNATURE----- --6nzhSwq/T0tVU2rq--