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 ms11 with LMTPS id wJxPOq5I2l+uKQAA0tVLHw (envelope-from ) for ; Wed, 16 Dec 2020 17:49:34 +0000 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 GM+ENK5I2l9JOAAAbx9fmQ (envelope-from ) for ; Wed, 16 Dec 2020 17:49:34 +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 0CF4E9403E8 for ; Wed, 16 Dec 2020 17:49:32 +0000 (UTC) Received: from localhost ([::1]:45944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpava-00036N-Kb for larch@yhetil.org; Wed, 16 Dec 2020 12:49:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpav8-0002lN-O3 for bug-guix@gnu.org; Wed, 16 Dec 2020 12:49:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:50344) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpav8-0004ST-GT for bug-guix@gnu.org; Wed, 16 Dec 2020 12:49:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kpav8-0007YE-FP for bug-guix@gnu.org; Wed, 16 Dec 2020 12:49:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#45165: binutils-mesboot0 fails at configure, cannot find lex Resent-From: Carl Dong Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 16 Dec 2020 17:49:02 +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: 45165@debbugs.gnu.org Received: via spool by 45165-submit@debbugs.gnu.org id=B45165.160814091928992 (code B ref 45165); Wed, 16 Dec 2020 17:49:02 +0000 Received: (at 45165) by debbugs.gnu.org; 16 Dec 2020 17:48:39 +0000 Received: from localhost ([127.0.0.1]:33657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpaul-0007XX-7J for submit@debbugs.gnu.org; Wed, 16 Dec 2020 12:48:39 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:45143) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kpauf-0007XE-Jj for 45165@debbugs.gnu.org; Wed, 16 Dec 2020 12:48:37 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 428EF5C01A0 for <45165@debbugs.gnu.org>; Wed, 16 Dec 2020 12:48:28 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 16 Dec 2020 12:48:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=carldong.me; h= from:content-type:content-transfer-encoding:mime-version:subject :date:references:to:in-reply-to:message-id; s=fm2; bh=iFP4WDOCMJ Iy6sWkK+jptz7spvesQDBkrYl/wxH/wv0=; b=fpfsuGFykOgrlXZ/B/NG2rrktW bNMrtu8kWmsMLM+1DW1HSkRKRub0iXt50T9MabHbADqg1p9dF+UOrFMEpDnJPpcZ ufJUXqA5HDSP9lPszxoh11L+IyPshNbmgQyjZ6NinzchvYFP/vyxStbVP6JddpDs yBmLM1ob0G+efLe6B6n+1Axt7xmnLoH2PVS3lMybDMyNz/kQTm9H13L5LNRCG30e AuQ3gCpJVLkN8VY10srTAmy6NEmhLPVtk5y49pK327xyMWT51CLfLK7U8aNpRJc8 BRdRlPfviOO5ieJ7F+hVLnISvZ2oLXiT/U4lsX5BUdkLXphNFE1tBy3X8mOQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=iFP4WDOCMJIy6sWkK+jptz7spvesQDBkrYl/wxH/w v0=; b=f0ZsBDvz0iF3wr8NhyKcaScCOzPG03MbR6Ozy/yE+tWT3sOPfJk5qOhp6 ZtAvm+4jihMP8LmOoS1zEBIoi9cbROZUgHG/jdMXKHQXdCh/L3tJTflytUGlFNAZ Do3jrntCSypog3I0nFU5Y8Up+MZgBmr0LZAV2ARjt9BXq+/SZTJvMaiVaE4AWtKJ Vg5maf6BN9roMOWC5pdn4oPM2mJGcsIhjBH1spSQZf8+BnDgHt13tiLvFxmtgH1i 7DFbLzRLKIc/e58KPgulTjS1Di/J4UmBj82yFb3yltlmLYC5MHxM68ihGNSkYZRy qb0OM3tvYCz1k6dUMlwpsD+rEpTCg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudelvddguddtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephfgtgfgguffffhfvjgfkofesth hqmhdthhdtjeenucfhrhhomhepvegrrhhlucffohhnghcuoegtohhnthgrtghtsegtrghr lhguohhnghdrmhgvqeenucggtffrrghtthgvrhhnpedtuefggfeuteegfeejffehvdette ekgeettddvgfdvleelvefgtefhieffffevieenucffohhmrghinhepmhhouggvrdhophgv nhenucfkphepleeirddvfeelrddujedrvdegvdenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpegtohhnthgrtghtsegtrghrlhguohhnghdrmhgv X-ME-Proxy: Received: from [192.168.0.6] (pool-96-239-17-242.nycmny.fios.verizon.net [96.239.17.242]) by mail.messagingengine.com (Postfix) with ESMTPA id 24298240057 for <45165@debbugs.gnu.org>; Wed, 16 Dec 2020 12:48:28 -0500 (EST) From: Carl Dong Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Date: Wed, 16 Dec 2020 12:49:45 -0500 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> In-Reply-To: <1CB66010-F81E-447B-9715-B1A79415EAA6@carldong.me> Message-Id: X-Mailer: Apple Mail (2.3608.120.23.2.4) 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 X-Migadu-Spam-Score: -0.81 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=carldong.me header.s=fm2 header.b=fpfsuGFy; dkim=fail (headers rsa verify failed) header.d=messagingengine.com header.s=fm1 header.b=f0ZsBDvz; 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: 0CF4E9403E8 X-Spam-Score: -0.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: AqhFghLDjT0x More clues: I ran the following one-liner: for i in $(seq 0 65535); do sudo chown $i:$i = /tmp/guix-build-binutils-mesboot0-2.14.drv-0/binutils-2.14/config.cache = && = /gnu/store/m89p469fxwn4hj7an9givd1ry9vk7j2l-bash-mesboot0-2.05b/bin/sh = -c "test -w = /tmp/guix-build-binutils-mesboot0-2.14.drv-0/binutils-2.14/config.cache" = && echo "Winner: $i" && break; done This is designed to iterate through all possible uid values, chown the = config.cache file, and test if that uid makes the =E2=80=9Ctest=E2=80=9D = builtin think that it is writable. If there is one, it=E2=80=99ll print = =E2=80=9CWinner: =E2=80=9D and exit The result: Nothing was printed and the exit status was 1 Not sure where to go from here. Cheers, Carl Dong > On Dec 15, 2020, at 7:46 PM, Carl Dong wrote: >=20 > Hi all, >=20 > I think I have a new lead! >=20 > Here=E2=80=99s what I did: > 1. cd /tmp/guix-build-binutils-mesboot0-2.14.drv-0/binutils-2.14 > 2. env -i bash --rcfile environment-variables > 3. Ran the configure command from the log, just to check: > ./configure --disable-nls --disable-shared --disable-werror = --build=3Di386-unknown-linux --host=3Di386-unknown-linux = --target=3Di386-unknown-linux --with-sysroot=3D/ = --prefix=3D/gnu/store/jfa9b78rdniyw7qilsmw3bh02x8x68ly-binutils-mesboot0-2= .14 >=20 > Indeed it did still output "not updating unwritable cache = ./config.cache=E2=80=9D >=20 > However, when I tried `test -w config.cache`, there was no status = code=E2=80=A6 >=20 > This led me to look at ./configure=E2=80=99s shebang, which is: > = /gnu/store/m89p469fxwn4hj7an9givd1ry9vk7j2l-bash-mesboot0-2.05b/bin/sh >=20 > Then I did: > = /gnu/store/m89p469fxwn4hj7an9givd1ry9vk7j2l-bash-mesboot0-2.05b/bin/sh = -c "test -w config.cache=E2=80=9D >=20 > Which _did_ exit with status=3D1 ! >=20 > So I believe that this is a problem with the =E2=80=9Ctest=E2=80=9D = builtin in = /gnu/store/m89p469fxwn4hj7an9givd1ry9vk7j2l-bash-mesboot0-2.05b >=20 > 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' >=20 > And the output: > = execve("/gnu/store/m89p469fxwn4hj7an9givd1ry9vk7j2l-bash-mesboot0-2.05b/bi= n/sh", ["/gnu/store/m89p469fxwn4hj7an9giv"..., "-c", "test -w = config.cache"], ["PWD=3D/tmp/guix-build-binutils-mes"..., "SHLVL=3D0", = "_=3D/usr/bin/strace"]) =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=3D1000, 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=3D95396729, = st_mtime=3D1607635957 /* 2020-12-10T16:32:37.842047431-0500 */, = st_mtime_nsec=3D842047431, st_ctime=3D1607636165 /* = 2020-12-10T16:36:05.793930344-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_blocks=3D0, st_size=3D80, st_atime=3D1608079054 /* = 2020-12-15T19:37:34.095396729-0500 */, st_atime_nsec=3D95396729, = st_mtime=3D1607635957 /* 2020-12-10T16:32:37.842047431-0500 */, = st_mtime_nsec=3D842047431, st_ctime=3D1607636165 /* = 2020-12-10T16:36:05.793930344-0500 */, st_ctime_nsec=3D793930344}) =3D 0 > stat("config.cache", 0xfff9affc) =3D -1 ENOENT (No such file or = directory) > +++ exited with 1 +++ >=20 > I had a hunch that the mode is most likely the problem. So I tried the = following: >=20 > chmod 664 config.cache -> status is still 1 > chmod 646 config.cache -> status is now 0!! >=20 > So somehow the =E2=80=9Ctest=E2=80=9D builtin for my bash-mesboot0 = doesn=E2=80=99t think that it has owner or group permissions to write to = a file that itself created? >=20 > Let me know what you guys think could be the case! >=20 > Cheers, > Carl Dong >=20 >=20