From nobody Wed Dec 21 00:24:21 2022 X-Original-To: freebsd-current@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 4NcDj559Bsz1G164 for ; Wed, 21 Dec 2022 00:24:41 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic311-25.consmr.mail.gq1.yahoo.com (sonic311-25.consmr.mail.gq1.yahoo.com [98.137.65.206]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4NcDj4582Jz3n9k for ; Wed, 21 Dec 2022 00:24:40 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=bGCDyabJ; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.206 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1671582278; bh=w2dKKhhnykM4ivCqVz06pLaQicpBFHZrD+Azn8qguIM=; h=From:Subject:Date:Cc:To:References:From:Subject:Reply-To; b=bGCDyabJK39oWWohtcilsVOxsWRkqUbE7bco5XuG8jcriXlzj3Ntwy5IB7mjR7EWkdP4+9tZFViAGU6hdajsEBSzVoL2FPu0Rd502O+SD40azOARwxpCyn90djqo4FHSoZhc8p1uvLYY1bDGC7Qlavr7qFmx9v9WRoDCKWyIDCCX/vS9TkiMGPu3iYKYMvRDlkFKG9UrRYZ0nfJQJXckS1JEqduMTV0NctJppF4JH3ZoeRT719AwupPYvpsNPY93pdJ/6GlxSnz30qNLSxuX3znmNC+uTp2gG+DLHobub2Q6EJQBIHBT8Vzvk5MEbkMG1mPV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ZRmQB0mkh.lurpiF.69KhsOhLa_jXEYjgtcY08HUCzIZ hmD3hxTBd9G.OfSrzsUvOaOXd38Sig7qp1KXff36FQW6QGJUO6Oluac.EsHBnfGVvbByV2py26VY Z.aA65gIVXHuK0h8nL3XwlVL_ZVAMYS1V0DdMerU0UYyHL7PJWgTfdCBoxptmAv80zlWFX56AVfl 6OJYmF_Q84mx3JaWhgI5pKpt7GZwWLOpGnyR5_tF7lFHsptCPrW1M2xaPDqCcLnZ7yNnwN3VdyCU 2gQH8zclgc0MeKJqeA4fBfd7WEQudD8WP_RLBnlkLPmtLFl1QivWok3JcNcvYYIM3fm4Uq.nfc_0 DVEsHEjH_R804oBz.BzznyYKVzcfV22UKw62jKmM73wDcyN9AFcvGRSiIWJfs8OQlk7PkDiP3v2I MSxFy3ocOfaFPAfxiPsiv757jqITXi0YJdLM46l1mACyvYfCTjJR9dThxtPewSutqZxIQLDjADUL YjtolfmbH0XP3YBjjmK_BtSOi9qVe_ALy.tIhYcOswwY8BOUGE34ZSC7tOFRbMi7eA7liwnc4Djz eTwmdlSSxFT3rHrR8aXcY5lGQRKVFTu2J5icRDCy4l2ryszRF5OggZuv4SrC8LTPuS10cQaO7Yj_ dSTziH7SHhOJZIkf.7R1SldhsYkQjoCGBfLqzeaZylomnV0mRvNAxv41wvjveToUqlp96Lw_qOe_ VLp7_juAK X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Wed, 21 Dec 2022 00:24:38 +0000 Received: by hermes--production-bf1-5458f64d4-tg4jl (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 25076c550aba9bc58f57cac50a3eeb77; Wed, 21 Dec 2022 00:24:33 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.110.1.12\)) Subject: RE: all_subdir_lib/libclang_rt build failure (libc++ ld error) Message-Id: Date: Tue, 20 Dec 2022 16:24:21 -0800 Cc: FreeBSD Toolchain To: zseri.devel+fbsd@ytrizja.de, freebsd-current X-Mailer: Apple Mail (2.3731.200.110.1.12) References: X-Spamd-Result: default: False [-2.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.991]; MV_CASE(0.50)[]; SUBJECT_ENDS_SPACES(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TAGGED_RCPT(0.00)[fbsd]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.206:from]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org] X-Rspamd-Queue-Id: 4NcDj4582Jz3n9k X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N Alain Zscheile wrote on Date: Tue, 20 Dec 2022 23:12:40 UTC : > I encountered a build failure while trying to build fbsd' > src.git commit ae521fda895ff0b5076904f08ec92e3c60d53701 That commit is from main: =E2=80=A2 git: ae521fda895f - main - stress2: Added link to problem = found Peter Holm > with `make -j4 buildworld` on an FreeBSD 13.1 system. So this was some 13.1 variant building at ae521fda895f of main [so: 14]. That was not obvious on a first read of the report. Sort of a self-hosted version upgrade cross-build. For reference (example local installs): # find /usr/obj/DESTDIRs/*/ -name libc++.so.1 -exec ls -C1 {} \; | grep = -v lib32 /usr/obj/DESTDIRs/13S-amd64-poud-bulk_a/usr/lib/libc++.so.1 /usr/obj/DESTDIRs/13_1R-amd64-poud-bulk_a/usr/lib/libc++.so.1 /usr/obj/DESTDIRs/main-amd64-poud-bulk_a/lib/libc++.so.1 Note that only main has main-amd64-poud-bulk_a/lib/libc++.so.1 and it does not have a main-amd64-poud-bulk_a/usr/lib/libc++.so.1 . As for lib32: # find /usr/obj/DESTDIRs/*/ -name libc++.so.1 -exec ls -C1 {} \; | grep = lib32 /usr/obj/DESTDIRs/13S-amd64-poud-bulk_a/usr/lib32/libc++.so.1 /usr/obj/DESTDIRs/13_1R-amd64-poud-bulk_a/usr/lib32/libc++.so.1 /usr/obj/DESTDIRs/main-amd64-poud-bulk_a/usr/lib32/libc++.so.1 So all 3 have *-amd64-poud-bulk_a/usr/lib32/libc++.so.1 and none have a *-amd64-poud-bulk_a/lib32/libc++.so.1 . > > --- all_subdir_lib/libclang_rt --- > ld: error: /usr/obj/usr/src/amd64.amd64/tmp/usr/lib/libc++.so:2: > cannot find /usr/lib/libc++.so.1 inside > /usr/obj/usr/src/amd64.amd64/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) >=20 > make[2]: stopped in /usr/src > >=20 > The stated file is indeed not present, and resides in .../tmp/lib > instead of .../tmp/usr/lib. tmp/lib/libc++.so.1 would be a main [so: 14] style path. tmp/usr/lib/libc++.so.1 would be a 13.1 style path. The build appears to have which type of context applies confused. > It appears that the .so linker script > should either be patched (to point to /lib instead of /usr/lib) or > a symlink for the .so.1 file should be created. > (at least the corresponding c++ command line doesn't indicate > anything to the contrary of that afaik) >=20 > I don't know when this problem was introduced and it might be the > case that this bootstrapping problem only occurs when the "outside > system" (in this case FreeBSD 13.1) has an older version of clang. It is not clang that is the issue, it is that FreeBSD changed the path used for libc++.so.1 . (main avoids needing more mounts already being actie place when libc++.so.1 is used in some common configurations, usr/lib/ not being available yet. > (as I'm not really sure when the bootstrapping process actually > kicks in, as it appears to have omitted building a linker when it > detected that the current one is recent enough/matches) > It might also be that case that this is just the result of a > missing dependency, which messes with parallel building, idk... Looks to me like whatever vintage/variant of 13.1 it was did not yet(?) have logic for making sure that it provides for builds of main [so: 14] that have the new libc++.so.1 style path. Nor did the main materials have logic to make it work when built from an older context, such as a 13.1 context. At least one of the two must happen to allow 13.1 to build a 14. Having main [so: 14] deal with it, if possible, could possibly also deal with 13.0 vintages/variants without adjusting 13.0 materials. =3D=3D=3D Mark Millard marklmi at yahoo.com