From nobody Thu Dec 30 23:14:25 2021 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1639B1910FDF; Thu, 30 Dec 2021 23:14:30 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta002.cacentral1.a.cloudfilter.net (omta002.cacentral1.a.cloudfilter.net [3.97.99.33]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JQ3xx6Mttz4hVj; Thu, 30 Dec 2021 23:14:29 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from shw-obgw-4002a.ext.cloudfilter.net ([10.228.9.250]) by cmsmtp with ESMTP id 2xThnxcpOztEj34cvn3dWI; Thu, 30 Dec 2021 23:14:29 +0000 Received: from spqr.komquats.com ([70.66.148.124]) by cmsmtp with ESMTPA id 34ctndFaK5liv34cunTNI9; Thu, 30 Dec 2021 23:14:29 +0000 X-Authority-Analysis: v=2.4 cv=IfaU5Ema c=1 sm=1 tr=0 ts=61ce3d55 a=Cwc3rblV8FOMdVN/wOAqyQ==:117 a=Cwc3rblV8FOMdVN/wOAqyQ==:17 a=kj9zAlcOel0A:10 a=IOMw9HtfNCkA:10 a=CjxXgO3LAAAA:8 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=EkcXrb_YAAAA:8 a=uhm4iqFLJ7xKFP7NoHwA:9 a=CjuIK1q_8ugA:10 a=UivYFtiqaNAA:10 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 a=LK5xJRSDVpKd5WXXoEvA:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id 17C228F4; Thu, 30 Dec 2021 15:14:26 -0800 (PST) Received: from slippy (localhost [127.0.0.1]) by slippy.cwsent.com (8.16.1/8.16.1) with ESMTP id 1BUNEPt5016004; Thu, 30 Dec 2021 15:14:25 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <202112302314.1BUNEPt5016004@slippy.cwsent.com> X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Mark Millard cc: Cy Schubert , Dimitry Andric , Ed Maste , freebsd-current , "dev-commits-src-main@freebsd.org" Subject: Re: git: 5e6a2d6eb220 - main - Reapply: move libc++ from /usr/lib to /lib In-reply-to: <3140C5F6-495F-441C-AA6B-542F3BC53B62@yahoo.com> References: <45118DB4-F8C4-4F96-9CAA-5DC5DCFFEB7E@yahoo.com> <3140C5F6-495F-441C-AA6B-542F3BC53B62@yahoo.com> Comments: In-reply-to Mark Millard message dated "Thu, 30 Dec 2021 12:47:18 -0800." List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 30 Dec 2021 15:14:25 -0800 X-CMAE-Envelope: MS4xfP86YXa7CrtWXvy2GtiqXjXO0sPYCfMP2+jdwYeQ2qqRLEmLnuZ/bke21Fyg9/vGrsv59wuWb4Oc9OgdwsHlnwwMMMR47tUL4aEb5pqsszioR0X+v3g2 G0XVhyvUgC8r/aU17euClz0nZWNuxh48hdd+EfFm3RchvZBdlUAv+zmpsVrzqeazks1PNVRQqYDYBw+J59OGmu8OIWs0VgH6kAUMY54gmrfHbNYry13kUgSc Zdn+LSR2YJOHX/M3a8GM9BfgTPtjIPqlmv1iSO7TeQW5BrZ6/G9l/87Sr8jM4j9ocO1PF+/cuzlNH43rzn9QDUrGqyGsznYr1vYoRicQj5w= X-Rspamd-Queue-Id: 4JQ3xx6Mttz4hVj X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N In message <3140C5F6-495F-441C-AA6B-542F3BC53B62@yahoo.com>, Mark Millard write s: > On 2021-Dec-30, at 11:52, Mark Millard wrote: > > >> This commit results in a different error. > >> > >> ld: error: /export/obj/opt/src/git-src/amd64.amd64/tmp/usr/lib/libc++.so:2 > : > >> cannot find /usr/lib/libc++.so.1 inside /export/obj/opt/src/git-src/amd64. > am > >> d64/tmp > >>>>> GROUP ( /usr/lib/libc++.so.1 /usr/lib/libcxxrt.so ) > >>>>> ^ > >> c++: error: linker command failed with exit code 1 (use -v to see > >> invocation) > >> *** [libclang_rt.asan-x86_64.so.full] Error code 1 > >> > >> make[6]: stopped in /opt/src/git-src/lib/libclang_rt/asan_dynamic > > > > Working in a system that had the file removed and then > > manually put back after the upgrade, what I see after this > > new rebuild (not installed) is: > > > > # grep -r 'GROUP.*/lib.*/libc++.so' /usr/obj/BUILDs/main-amd64-nodbg-clang/ > usr/main-src/amd64.amd64/ > > /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/lib/libc++/ > libc++.ld:GROUP ( /lib/libc++.so.1 /usr/lib/libcxxrt.so ) > > /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/obj-lib32/t > mp/usr/lib32/libc++.so:GROUP ( /usr/lib32/libc++.so.1 /usr/lib32/libcxxrt.so > ) > > /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/obj-lib32/l > ib/libc++/libc++.ld:GROUP ( /usr/lib32/libc++.so.1 /usr/lib32/libcxxrt.so ) > > grep: /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/sys/G > ENERIC-NODBG/modules/usr/main-src/sys/modules/twa/opt_twa.h: No such file or > directory > > grep: /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/tmp/u > sr/include/dev/ic/esp.h: No such file or directory > > /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/tmp/usr/lib > /libc++.so:GROUP ( /lib/libc++.so.1 /usr/lib/libcxxrt.so > > > > That has /lib/libc++.so.1 (outside lib32 materials). > > > > But it also has: /tmp/usr/lib/libc++.so and is that a problem? > > > > And, checking on when the files were modified: > > > > # ls -Tld `grep -rl 'GROUP.*/lib.*/libc++.so' /usr/obj/BUILDs/main-amd64-no > dbg-clang/usr/main-src/amd64.amd64/` > > grep: /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/sys/G > ENERIC-NODBG/modules/usr/main-src/sys/modules/twa/opt_twa.h: No such file or > directory > > grep: /usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64.amd64/tmp/u > sr/include/dev/ic/esp.h: No such file or directory > > -rw-r--r-- 1 root wheel 64 Dec 30 08:30:43 2021 /usr/obj/BUILDs/main-amd > 64-nodbg-clang/usr/main-src/amd64.amd64/lib/libc++/libc++.ld > > -rw-r--r-- 1 root wheel 72 Dec 30 08:22:11 2021 /usr/obj/BUILDs/main-amd > 64-nodbg-clang/usr/main-src/amd64.amd64/obj-lib32/lib/libc++/libc++.ld > > -r--r--r-- 1 root wheel 72 Aug 19 03:09:03 2021 /usr/obj/BUILDs/main-amd > 64-nodbg-clang/usr/main-src/amd64.amd64/obj-lib32/tmp/usr/lib32/libc++.so > > -r--r--r-- 1 root wheel 64 Dec 30 08:30:43 2021 /usr/obj/BUILDs/main-amd > 64-nodbg-clang/usr/main-src/amd64.amd64/tmp/usr/lib/libc++.so > > > > So lib/libc++/libc++.ld and tmp/usr/lib/libc++.so both had been > > updated. > > > > I used META_MODE. > > > > So I do not get a full match to what is reported but the use of > > the tmp/usr/lib/libc++.so path does seem odd. > > > > I've not looked at what a system from before the first move of > > libc++.so.1 does. I may be able to check that in a while. > > So I've now looked at a build (not installed) that was done on: > > # uname -apKU > FreeBSD CA72_16Gp_ZFS 14.0-CURRENT FreeBSD 14.0-CURRENT #29 main-n252010-254e > 4e5b77d7-dirty: Tue Dec 28 16:04:12 PST 2021 root@CA72_16Gp_ZFS:/usr/obj/ > BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch64/sys/GENERIC-NODBG-CA7 > 2 arm64 aarch64 1400045 1400045 > > which is before the original attempt to move libc++.so.1 . It shows: > > # grep -r 'GROUP.*/lib.*/libc++.so' /usr/obj/BUILDs/main-CA72-nodbg-clang/usr > /main-src/arm64.aarch64/ | more > grep: /usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch64/tmp/us > r/include/dev/ic/esp.h: No such file or directory > /usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch64/lib/libc++/l > ibc++.ld:GROUP ( /lib/libc++.so.1 /usr/lib/libcxxrt.so ) > /usr/obj/BUILDs/main-CA72-nodbg-clang/usr/main-src/arm64.aarch64/tmp/usr/lib/ > libc++.so:GROUP ( /lib/libc++.so.1 /usr/lib/libcxxrt.so ) > > Again the tmp/usr/lib/libc++.so path but the content has /lib/libc++.so.1 . > > Again it was a META_MODE build. > > https://ci.freebsd.org and https://ci.freebsd.org show > successful builds at this point. > > > It looks like Cy may need to report more about the context > for the reported build failure. It was a NO_CLEAN build. A CLEAN build resolved it. There were no mods to this, my prod tree, except for some upcoming ipfilter commits intended for the new year. One would think a META_MODE build would also fail if NO_CLEAN fails. Sorry for the late reply. There are other things here that needed some urgent attention. -- Cheers, Cy Schubert FreeBSD UNIX: Web: https://FreeBSD.org NTP: Web: https://nwtime.org The need of the many outweighs the greed of the few.