From nobody Sat Nov 8 09:29:21 2025 X-Original-To: freebsd-pkgbase@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 4d3Vxw3dd3z650jY for ; Sat, 08 Nov 2025 09:29:40 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic311-23.consmr.mail.gq1.yahoo.com (sonic311-23.consmr.mail.gq1.yahoo.com [98.137.65.204]) (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 4d3Vxt5p1Dz3b5q for ; Sat, 08 Nov 2025 09:29:38 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=jbE0l1by; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.65.204 as permitted sender) smtp.mailfrom=marklmi@yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1762594176; bh=OI/idL1sV6mwzz8nDQ3oCVdJmIVEnKTaHucOxH3U5Ss=; h=From:Subject:Date:References:To:In-Reply-To:From:Subject:Reply-To; b=jbE0l1byRLy8RjmB8HJj7OCzIb6DzS07x96XZvCoATcoGirK2ejgvViZBVRIjy6LT1alpoYhFY6ub/LUHMlCrlXQajHqcExXi4D4fTotj+Tho3g6rlno/8FIZxLG3PbV7jzBUc41Szz6CmDVGkAZ9VktabvUqGh5x4YBaidzkeFFyQdOH8Eeya1TxLipcmgiHkpu2hbH/i9TukUUd5KfbEEmoS4cDl3Wv/MD9YYxeVKHtena3RdzJT+88Se5+ZofBb0YEbjTQFpRKt5gBHPPACXIkZF9t9ypWvrKomaLk2bzb+XbfpHvuxW/tpP0AtRCWhBh5fPKTKEAtlQeIM6+8w== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1762594176; bh=+8GygV+BIvc8YpzpHYOFe24ZFucEWHUoulMI8kuLkzC=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=rI/w6DFGdDqmXieazOq3moDBX4efVxEFScp+9/6aeqgh6FVPBvmFfsVHtuGf1EcnCuUgts13PgfwVps0RETNO0RgEb2WK9Sa4RsIGZnWtvDyEhMDeqig6UJnjGIhMGvT0PNDGeSrkz9FUz/RhdIyN2utD56BBeb2pslgvquRxFeFH0oOm/9gjtqRYjXAOblY9j96cke/071m3WVp8IHLK80u0F7QEu4WQgyawMv/Zhyh0Ewe81QYYwUSl0wBbRpywIM81e8eHsmmxSP1s5bVFeOVnlOKE+zoLIpYvFuWqIikJRFFM4kjCyrj3z6vxcPGjO1S1NUpywklS2h1Lg241g== X-YMail-OSG: _Mz8Ub8VM1lvmsC54s8NHRIlxp8apIINK6ZFoPt9nai.GJxdnS8nQ4M8L112vax Eu30jXLvVkihEy8aL_W6bsaTUa.bmtlGQCbydOpcXvNlgW882uX3_hJoblElc78tKhohDnqpi.Ey wqUshsFz5ZRsg6qO9Dm5UhvhQrFuIkeSMmhan0dYxjkyJ2JT2pzyrCYIwI.sfnSrlSZt52Mbyu.0 77yje4kfpxHPmIfJofWTBUi_utJ35AVS84jAnv6Amn_UHJG.a8XSsdrsH3h7uThsxvec1SFczo_s QPQjBawsQcFaPDQMia4JxzsRyXPhyM1AJLXXgHvbf6hHnbmM4uMMrXwNpLdPPy2XfZXIBKx9jebt fC1wSmGlSxmZRoWI71q29CFq_43LBWnAs_rPRuJorCBs1JqoCFLe8JRszNG_CtZfnLwUwGjCIBLP lwfq_DMfto_W2CSE_WWHJOz.ia7WR6FLVCbr8lIqcPZnGeILWOmyDZ1j.w6HXe1dTdogz3sBo1L4 s8g8seAqet77Q2ZAZsA.wT72X6Yi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8pV5aeIGXKOhyAWQKWoV9UHNFj8KnEUaSYNlW jjCv1ykYhyi68elpyZ6r.D5tU1okWuDDbjOsJqNkMWWqpQ9o5Oe96WKmL2NnI5dKoD4vrToKDso4 XSAL55L58zabrS16l0C2H1jz3LBVoyEQuEpz7OYr38WUQW.TVA7qJh2YCZ_xwJz2FEOhYxQhCBrs GBA.thhwxNDUYgqAGQgPYB_LGwdt0jrIRdyelHvgVzgiZLlGT4mRRolhENmtzYVqyUySH4MHt7Kn JxHhskfw1fj7SKh3egZFvPeeYRCSRxasOy8vJq2BaFqdBmRF2lZgLx505hNcCgC1alGdTEYotG.. d7D5WMiXyuv9Q362TERV6VRbV0EhRezwaIMq6ViCieIDy6vVtoKfWLRrr9eNSqwKdgymvgzr6UMn kexJgtc8iyn57aoiaDOlVL61DaI3v64snz48KYDaiRAg0iDrLtERKLQAroyMGoSZr7ruITV_GUOJ xIbM_Pd05cOOeGmtdcVPWe.1VxsgLzHEmz0c40LDxEMjX_k7c8R61pOt1QIY.77fVVg6yY1QWb28 OGO2kNp8kqs15EicbHBZ4UBRYRSbmrSqweC6ET0MhoRKdAaBXzlE.paCWBdMZQV80GB2_alPevsr DdXQJJSY1ER03eJ_i_iH63X8_RH7FfYWl2aNAZetQlUtuBeAuHbaWOMwLYIugaBZJr1VYoObciVV g5mnT0Kxy9U_YwOqC X-Sonic-MF: X-Sonic-ID: d2e498d9-a631-4957-94d2-254fa2458788 Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.gq1.yahoo.com with HTTP; Sat, 8 Nov 2025 09:29:36 +0000 Received: by hermes--production-gq1-86c5846576-8trq7 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 2cbeb9088dc42ba3444cd2d479923c18; Sat, 08 Nov 2025 09:29:32 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Packaging the FreeBSD base system List-Archive: https://lists.freebsd.org/archives/freebsd-pkgbase List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkgbase@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: git: 51e8e8b0f369 - main - Merge commit e24f90190c77 from llvm git (by Brad Smith): Date: Sat, 8 Nov 2025 01:29:21 -0800 References: <23041DE4-706C-427C-9BC5-3AD5EAD13934@yahoo.com> To: Dimitry Andric , FreeBSD-pkgbase@freebsd.org In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3826.700.81) X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.96 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.984]; NEURAL_HAM_MEDIUM(-0.97)[-0.974]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[FreeBSD-pkgbase@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.65.204:from]; RCVD_IN_DNSWL_NONE(0.00)[98.137.65.204:from] X-Rspamd-Queue-Id: 4d3Vxt5p1Dz3b5q On Nov 7, 2025, at 23:03, Mark Millard wrote: > On Nov 7, 2025, at 19:51, Mark Millard wrote: >=20 >> Dimitry Andric wrote on >> Date: Thu, 06 Nov 2025 15:56:54 UTC : >>=20 >>> On 5 Nov 2025, at 08:56, Herbert J. Skuhra = wrote: >>>>=20 >>>> On Fri, 31 Oct 2025 14:48:06 +0100, Jose Luis Duran wrote: >>>>>=20 >>>>> On Wed, Oct 29, 2025 at 3:50=E2=80=AFPM Dimitry Andric = wrote: >>>>>>=20 >>>>>> The branch main has been updated by dim: >>>>>>=20 >>>>>> URL: = https://cgit.FreeBSD.org/src/commit/?id=3D51e8e8b0f36933814b1be08913857727= 876aece5 >>>>>>=20 >>>>>>=20 >> . . . >>>>>>=20 >>>>>> Merge commit e24f90190c77 from llvm git (by Brad Smith): >>>>>>=20 >>>>>> [Driver] Enable outline atomics for FreeBSD/aarch64 (#156089) >>>>>>=20 >>>>>> The compiler_rt helper functions have been built since 12.4, = 13.1, 14 >>>>>> and anything newer. >>>>>>=20 >>>>>>=20 >> . . . >>>>> I'm sure you're probably aware by now, but aarch64 builds are = failing >>>>> after this commit: >>>>>=20 >>>>> https://ci.freebsd.org/job/FreeBSD-main-aarch64-build/33100/ >>>>=20 >>>> I am now getting this error on stable/15 (aarch64) after this = change was >>>> reverted in f6a81b18a467. >>>>=20 >>>> I have already tried: >>>>=20 >>>> % rm -rf /usr/obj/usr >>>> % rm -rf ~/.cache/ccache >>>> % make SRCCONF=3D/dev/null __MAKE_CONF=3D/dev/null buildworld >>>>=20 >>>> I am now trying to rebuild world with llvm19 from ports. >>>=20 >>> I have repeatedly tried to reproduce this problem, but I have been = unsuccessful. >>=20 >> I tried to set up a simple context to experiment with but ended up >> blocked for what I intended. Nothing blocked making a .o for >> which: >>=20 >> 6: 0000000000000000 4 FUNC GLOBAL HIDDEN 2 = shared_static_routine >>=20 >> Nothing blocked making a .a for which: >>=20 >> 6: 0000000000000000 4 FUNC GLOBAL HIDDEN 2 = shared_static_routine >>=20 >> But every one of my attempts to form a .so with such a GLOBAL HIDDEN = status >> based on the .a instead ended up with the likes of: >>=20 >> 30: 0000000000010538 4 FUNC LOCAL HIDDEN 12 = shared_static_routine >>=20 >> So I did not get to the stage of a program that uses a .so with = GLOBAL HIDDEN >> status involved. >>=20 >> I tried commands that used each of: /usr/bin/ld , /usr/bin/ld.lld , >> /usr/local/bin/ld.bfd , and = /usr/local/bin/aarch64-unknown-freebsd16.0-ld . >>=20 >> I did similarly on amd64. >>=20 >> All of them converted the GLOBAL to be a LOCAL in the .so . >>=20 >> The context used is main 16. >>=20 >> It looks like the toolchain is deliberately avoiding generating the >> GLOBAL HIDDEN combination in the .so . >>=20 >>> If anybody has a system where this reliably occurs, and can give me = access to it (no privileged user needed, as long as git is installed), = that would be nice. >=20 >=20 > Turns out that my intended test was based on a partial > misinterpretation of the original error messages. I'll > need to set up a somewhat different test later. >=20 Here is the small example context I came up with to test. I show commands to use in comments for each of the 3 tiny source files. File #1 of 3: // shared_static_routine.c : // cc -std=3Dc17 -Wpedantic -Wall -o shared_static_routine.o -fPIC -c = shared_static_routine.c -fvisibility=3Dinternal // ar rcs libstatic_routine.a shared_static_routine.o // Note: Ends up with GLOBAL binding and HIDDEN visibility in = libstatic_routine.a void shared_static_routine(void) {} File #2 of 3: // shared_static_referencing_routine.c : // BAD: cc -shared -fPIC -Wl,-soname,libshared_routine.so -o = libshared_routine.so = shared_static_referencing_routine.c // vs. // GOOD: cc -shared -fPIC -Wl,-soname,libshared_routine.so -o = libshared_routine.so -L. -lstatic_routine = shared_static_referencing_routine.c extern void shared_static_routine(void); void shared_static_referencing_routine(void) { shared_static_routine(); = } File #3 of 3: // shared_routine_main.c : // cc -o shared_routine_main.o -fPIC -c shared_routine_main.c // Then . . . // For good libshared_routine.so case: // SUFFICIENT: // cc -o shared_routine_main -fPIC shared_routine_main.o -L. = -lshared_routine -Wl,-rpath=3D. // ALSO WORKS: // cc -o shared_routine_main -fPIC shared_routine_main.o -L. = -lstatic_routine -lshared_routine -Wl,-rpath=3D. // For the bad libshared_routine.so case, the SUFFICIENT case above = reports: // // ld: error: undefined reference: shared_static_routine // >>> referenced by ./libshared_routine.so (disallowed by = --no-allow-shlib-undefined) // cc: error: linker command failed with exit code 1 (use -v to see = invocation) // For the bad libshared_routine.so case, the ALSO WORKS case above = reports: // // ld: error: non-exported symbol 'shared_static_routine' in = './libstatic_routine.a(shared_static_routine.o)' is referenced by DSO = './libshared_routine.so' // cc: error: linker command failed with exit code 1 (use -v to see = invocation) extern void shared_static_referencing_routine(void); int main(void) { shared_static_referencing_routine(); } =3D=3D=3D Mark Millard marklmi at yahoo.com