From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0F1tIwbyEmFQQQEAgWs5BA (envelope-from ) for ; Tue, 10 Aug 2021 23:39:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2O3UHgbyEmElYAAAbx9fmQ (envelope-from ) for ; Tue, 10 Aug 2021 21:39:18 +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 ABC28B9A3 for ; Tue, 10 Aug 2021 23:39:17 +0200 (CEST) Received: from localhost ([::1]:43910 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mDZSu-0005PS-LM for larch@yhetil.org; Tue, 10 Aug 2021 17:39:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56420) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDZSg-0005Of-FH for bug-guix@gnu.org; Tue, 10 Aug 2021 17:39:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49436) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mDZSg-0004BW-8X for bug-guix@gnu.org; Tue, 10 Aug 2021 17:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mDZSg-0000wP-4Q for bug-guix@gnu.org; Tue, 10 Aug 2021 17:39: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: Tue, 10 Aug 2021 21:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49990 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 49990@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16286315083575 (code B ref -1); Tue, 10 Aug 2021 21:39:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Aug 2021 21:38:28 +0000 Received: from localhost ([127.0.0.1]:60982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDZS4-0000vW-GH for submit@debbugs.gnu.org; Tue, 10 Aug 2021 17:38:28 -0400 Received: from lists.gnu.org ([209.51.188.17]:59646) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mDZRy-0000vK-Pb for submit@debbugs.gnu.org; Tue, 10 Aug 2021 17:38:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56312) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDZRy-0005MS-HM for bug-guix@gnu.org; Tue, 10 Aug 2021 17:38:18 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:43956) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mDZRv-0003b8-LL for bug-guix@gnu.org; Tue, 10 Aug 2021 17:38:18 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 95fc77d0 for ; Tue, 10 Aug 2021 21:38:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:subject:message-id:mime-version:content-type :content-transfer-encoding; s=dkim; bh=DJm6NmQ1vVb5dBGKmWSNKMVZe ABfcXjc8uo8zJNGpRQ=; b=Lo5XYgVkQkbIZS/eXNqOQ6JvBlWlFy6HWLiAvuzhg AJGsNLVX/N0n4xRsV3yW+doUPAzvf5mx5bLkHeTjJF8NugjtVBeZyDO6dedLO3HL Zl1NDoPow/VujIWjdK8iy1dzI/c6EpZ1BjA8e4+7u9z5CTwbHzsXngv8YlaLl8bp jH1RVgEJKgDDKoVFqTLpsZ43JHciwPwjNR8ROu5Lx4kd53zxicBEnn2v4VCc/qzr 1KUCctCwFKvn6c9iRAkw43YoxUCNrOACzVcbst6l39Qr4hzwXw9WgKDmGtw+kwtl 2qTfFq4Cu1tnIJ6DMYI/coJzIhWbG8dIdX+4fkmn4T9hg== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 6374f4d7 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Tue, 10 Aug 2021 21:38:07 +0000 (UTC) Date: Tue, 10 Aug 2021 23:38:01 +0200 From: Julien Lepiller Message-ID: <20210810233801.02639bd8@tachikoma.lepiller.eu> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , 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=1628631557; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=0m2dSTEBji8Aa5LQdBY2jAWbi5NBzOa2U4uwi+S/+L8=; b=u+gAsoWf8q7tLnwezrWdiQHxCcQSUCv7ebPp+fc7OU4YTMjqkDeWf0Wx6u594jifwuS3mS HTYktcHipDelmsRZ64MrPW2JR4ACn0KD51VRabD698qbS171OFMzT/7siWA/5YJJP6+cRa 5Wx7c4nkqRycn1c12Q+YNloz9QsEfVrf7j4XhRXr/ZqWiIy6jT1t5QoZqoVYcyxqVytkbL zwy6/L3IFnz5uu8vUkRdIBD3TaBqAmN6CzSMyJ1rp2Wu9Qnbo9w1dPLimtvrNUMMim9oN0 7HybJ9vayDvYn4Bj7rQ57jjp83KVtn0KFY4V6M0Ql90FcnHOjd6rw/6vDiazjA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628631557; a=rsa-sha256; cv=none; b=aXpTpHjrm6FwGLuIBnHnHtazLP2oqYMjXM3+uQbWFibTqtSTOdfCN1HBHLzOlj+FT1IR62 pnzk5IIRiLzhmCEOJPC/7kSOG/hzOiUd6Uixg6QM8yyzroSEzpWAjeMXKsr1cNlLONzUO2 V8WtOJNBQFerRVHqln9B5trLeq3VU+cm39CeItNnNY05CmyUSR+WpFH+M5T0FhE26GEJRq yUbFkk2XjfQqpayu3ZlO58Iw7uatDfyTCmqHN9G9n1U+BWYdbilNZQsXCehYsd/4nD8mBF 7hlSrPrxhhD0eIk5rA2lh9Ov0HTHGGyAwDq8Nb4m2SxDloOrxinmAWKd1N4gXQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=Lo5XYgVk; 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.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=Lo5XYgVk; 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: ABC28B9A3 X-Spam-Score: -1.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: jRZ7YPoeFuj5 Hi Guix! I've finally taken the time to investigate the build failure of ant-bootstrap. It is failing after reporting a file exists: ``` /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 ``` So, I set an environment variable to pass a different build directory to ant (-Dbuild.dir=bootstrapped-build), but it fails in the same way: ``` /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-build ``` 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): ``` import java.io.File; public class Test { public static void main(String[] args) { File f = new File("non-existent"); if(f.isFile()) System.out.println("yes"); else System.out.println("no"); } } ``` compiled in a guix environment for ant-bootstrap (I had to temporarily export it): ``` $ ./pre-inst-env guix environment ant-bootstrap [env]$ CLASSPATH=$GUIX_ENVIRONMENT/lib/rt.jar jikes Test.java [env]$ java Test no [env]$ jamvm Test yes ``` (java comes from outside the environment). jamvm from master is working, and I don't see any difference in it, classpath or jikes recipes. 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: https://issues.guix.gnu.org/issue/36685 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: ``` @@ -256,7 +256,9 @@ only faster.") (lambda _ (substitute* "native/jni/java-io/java_io_VMFile.c" (("result = cpio_isFileExists.*" m) - (string-append m "\n//"))) + (string-append m "\n//")) + (("result = cpio_checkType.*" m) + (string-append m "\nfprintf(stderr, \"type? %s : %d -- %d -- %d;\\n\", filename, result, entryType, ((result == CPNATIVE_OK && entryType == CPFILE_FILE) ? 1 : 0));\n"))) #t)) (add-after 'install 'install-data (lambda _ (invoke "make" "install-data")))))) ``` 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.