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 ms11 with LMTPS id 6LHdAOID4l+4DAAA0tVLHw (envelope-from ) for ; Tue, 22 Dec 2020 14:34:10 +0000 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 ALdHOOED4l+8PwAAB5/wlQ (envelope-from ) for ; Tue, 22 Dec 2020 14:34:09 +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 3E2A4940356 for ; Tue, 22 Dec 2020 14:34:09 +0000 (UTC) Received: from localhost ([::1]:46188 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krijo-0005mI-4A for larch@yhetil.org; Tue, 22 Dec 2020 09:34:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:51840) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kriji-0005m4-2G for bug-guix@gnu.org; Tue, 22 Dec 2020 09:34:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37754) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1krijh-0001FJ-Rd for bug-guix@gnu.org; Tue, 22 Dec 2020 09:34:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1krijh-0008L2-Ok for bug-guix@gnu.org; Tue, 22 Dec 2020 09:34:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#45165: binutils-mesboot0 fails at configure, cannot find lex Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 22 Dec 2020 14:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45165 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Carl Dong Received: via spool by 45165-submit@debbugs.gnu.org id=B45165.160864759131974 (code B ref 45165); Tue, 22 Dec 2020 14:34:01 +0000 Received: (at 45165) by debbugs.gnu.org; 22 Dec 2020 14:33:11 +0000 Received: from localhost ([127.0.0.1]:49300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kriit-0008Je-GK for submit@debbugs.gnu.org; Tue, 22 Dec 2020 09:33:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:58518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kriir-0008JS-Sm for 45165@debbugs.gnu.org; Tue, 22 Dec 2020 09:33:10 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58954) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kriim-0000xa-Hw; Tue, 22 Dec 2020 09:33:04 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=44054 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kriim-0002YS-5W; Tue, 22 Dec 2020 09:33:04 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <1C1332EB-3389-416F-A8A7-0CF6A469AE29@carldong.me> <3FFC3D46-B961-479D-BCA9-273C150BF9CC@carldong.me> <87a6ukkg1r.fsf@gnu.org> <58F8D6E0-B15D-47D2-A468-8620B9DBD90D@carldong.me> <1CB66010-F81E-447B-9715-B1A79415EAA6@carldong.me> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 2 =?UTF-8?Q?Niv=C3=B4se?= an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Tue, 22 Dec 2020 15:33:02 +0100 In-Reply-To: <1CB66010-F81E-447B-9715-B1A79415EAA6@carldong.me> (Carl Dong's message of "Tue, 15 Dec 2020 19:46:16 -0500") Message-ID: <87a6u529nl.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: 45165@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.82 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; 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: 3E2A4940356 X-Spam-Score: -2.82 X-Migadu-Scanner: scn1.migadu.com X-TUID: xUxw+fVBsfyJ Hi! Carl Dong skribis: > This led me to look at ./configure=E2=80=99s shebang, which is: > /gnu/store/m89p469fxwn4hj7an9givd1ry9vk7j2l-bash-mesboot0-2.05b/bin/sh > > Then I did: > /gnu/store/m89p469fxwn4hj7an9givd1ry9vk7j2l-bash-mesboot0-2.05b/bin/sh -= c "test -w config.cache=E2=80=9D > > Which _did_ exit with status=3D1 ! > > So I believe that this is a problem with the =E2=80=9Ctest=E2=80=9D built= in in /gnu/store/m89p469fxwn4hj7an9givd1ry9vk7j2l-bash-mesboot0-2.05b > > So I ran: > env -i bash --rcfile environment-variables -c 'strace -v -e trace=3Dfile= /gnu/store/m89p469fxwn4hj7an9givd1ry 9vk7j2l-bash-mesboot0-2.05b/bin/sh -c= "test -w config.cache=E2=80=9D' > > And the output: > execve("/gnu/store/m89p469fxwn4hj7an9givd1ry9vk7j2l-bash-mesboot0-2.05b/b= in/sh", ["/gnu/store/m89p469fxwn4hj7an9giv"..., "-c", "test -w config.cache= "], ["PWD=3D/tmp/guix-build-binutils-mes"..., "SHLVL=3D0", "_=3D/usr/bin/st= race"]) =3D 0 > [ Process PID=3D2049037 runs in 32 bit mode. ] > open("/dev/tty", O_RDWR) =3D 3 > stat("/tmp/guix-build-binutils-mesboot0-2.14.drv-0", {st_dev=3Dmakedev(0,= 0x2f), st_ino=3D2546749, st_mode=3DS_IFDIR|0755, st_nlink=3D3, st_uid=3D10= 00, st_gid=3D1000, st_blksize=3D4096, st_blocks=3D0, st_size=3D80, st_atime= =3D1608079054 /* 2020-12-15T19:37:34.095396729-0500 */, st_atime_nsec=3D953= 96729, st_mtime=3D1607635957 /* 2020-12-10T16:32:37.842047431-0500 */, st_m= time_nsec=3D842047431, st_ctime=3D1607636165 /* 2020-12-10T16:36:05.7939303= 44-0500 */, st_ctime_nsec=3D793930344}) =3D 0 > stat(".", {st_dev=3Dmakedev(0, 0x2f), st_ino=3D2546749, st_mode=3DS_IFDIR= |0755, st_nlink=3D3, st_uid=3D1000, st_gid=3D1000, st_blksize=3D4096, st_bl= ocks=3D0, st_size=3D80, st_atime=3D1608079054 /* 2020-12-15T19:37:34.095396= 729-0500 */, st_atime_nsec=3D95396729, st_mtime=3D1607635957 /* 2020-12-10T= 16:32:37.842047431-0500 */, st_mtime_nsec=3D842047431, st_ctime=3D160763616= 5 /* 2020-12-10T16:36:05.793930344-0500 */, st_ctime_nsec=3D793930344}) =3D= 0 > stat("config.cache", 0xfff9affc) =3D -1 ENOENT (No such file or di= rectory) > +++ exited with 1 +++ Wait, here =E2=80=98stat=E2=80=99 returns ENOENT, so it=E2=80=99s no wonder= that =E2=80=98test -w config.cache=E2=80=99 returns 1, no? Could you rerun =E2=80=98strace=E2=80= =99 after making sure =E2=80=98config.cache=E2=80=99 exists? The builtin seems to work for me: --8<---------------cut here---------------start------------->8--- $ ls -l config.cache -rw-r--r-- 1 ludo users 9009 Dec 13 22:49 config.cache $ strace -e stat /gnu/store/m89p469fxwn4hj7an9givd1ry9vk7j2l-bash-mesboot0-= 2.05b/bin/sh -c "test -w config.cache" [ Process PID=3D9623 runs in 32 bit mode. ] stat("/home/ludo/src/guix", {st_mode=3DS_IFDIR|0755, st_size=3D4096, ...}) = =3D 0 stat(".", {st_mode=3DS_IFDIR|0755, st_size=3D4096, ...}) =3D 0 stat("config.cache", {st_mode=3DS_IFREG|0644, st_size=3D9009, ...}) =3D 0 +++ exited with 0 +++ $ echo $? 0 --8<---------------cut here---------------end--------------->8--- What kernel are you running? Weird! Thanks for investigating, Ludo=E2=80=99.