From nobody Sat Nov 1 21:24:32 2025 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 4czW825S3Pz6FFj3 for ; Sat, 01 Nov 2025 21:24:34 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4czW823Zzzz3jp5; Sat, 01 Nov 2025 21:24:34 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762032274; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nipMAhoFo78Cx7DpbY3Is3KGxG5VEFpYy6m64aaLoHQ=; b=jhEsPh/1oZ9UmIjubIybMow4SozuYkVyLXwdUdo5gK7HP/4gWIZVhP8Ma/e2DXOF23js3t LSoyt79C48siHKkiDKsiwhE5/kq5eX09+8ndxF6eVGg3nj/VdN90Ws+iCAfo3A3YLECymA PZ0KnMURnJZwxBBZSebtxoMVLBtFqtaSYf2RVv6zp3uCpbL3UTjiAndcW72u9nsG7Jgf6W 4lXro2AezOSNcrWj74qXpUSU/GmIeR1shDrqCiHX/QHTXkIHDJDyqZwGo/5t8zrFbuCW3Y iMMkpv+AF7I2sHX0IWk8GQjpbof0pHRd3lzrAm4uEUMA9H6ASXGdq4AZGmO1ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762032274; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nipMAhoFo78Cx7DpbY3Is3KGxG5VEFpYy6m64aaLoHQ=; b=TYaCP6xVw16XZJhiPNh56StRxCEllPJ+Ae+F3yRyPswScuZ5jyd7xJ+N0nIFOkMqRrLbMp D32CvT60xVFmzr26YJVl038htXt5vGjMU9PELA9D4zLrq2S4wNDFzxxyuUu4lhTYNH1SKD lTGG4UKT6R36e3XF0I9TPQSxlzm0fUqqv4kmF9Uc+/WBrbp+t0qInxCm/oYn2XDUyDjCdH Tlz+YE0Y/TaVOC6tfO2AQnKiEYNOMJ8uH7dhBKe7pWvyVUxkDEIQgaHz4t/x4iyE5zjEN1 I5fIFUDydiukDRN8YnlbMxfbWKKa+UCWAGFzDxRQPyCigOjxc2Pi0jbNpZvLnw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1762032274; a=rsa-sha256; cv=none; b=KLMGNm0DuAHM7TIENyNk9i4sExYmw0V3Bu4mWXcecVqYYyFfFDBZ3PqinzU8bO/RY0yXBE eMmn3ftKoL7tidrnPIo86FdlHIg17vlUd8wlkHyu5Ok339C63ZdPlgGVHxGbt+LpyuF6G+ B/qsUmc+ynCQ7v8LCBWMHbej9D0eWFKx9pTl16D6y1U2+BbC21uXAsZJCtlvhgAv7Fjx+6 DhGNCWQvNPwNVNp6vAQrqkSnnm+nZzbCraxkrrjU3ohep6HpcZa90REUyOEWglSNtDZYur Lozj8TVT0c8qAusrCHfyQ9HYOmdgiJ/QPnEW2ezSXlgS0XZAfCkZ9qavBlDtxQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (prime256v1) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "E8" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4czW821ySGz1QTG; Sat, 01 Nov 2025 21:24:34 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (bladnoch.home.andric.com [192.168.0.20]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id DF5C55C262; Sat, 01 Nov 2025 22:24:32 +0100 (CET) Content-Type: text/plain; charset=us-ascii 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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): From: Dimitry Andric In-Reply-To: <9890C464-D776-4E27-9496-220F041D0973@yahoo.com> Date: Sat, 1 Nov 2025 22:24:32 +0100 Cc: dev-commits-src-main Content-Transfer-Encoding: quoted-printable Message-Id: References: <38155720-430A-4E3B-82C3-3DFF36A37098.ref@yahoo.com> <38155720-430A-4E3B-82C3-3DFF36A37098@yahoo.com> <9890C464-D776-4E27-9496-220F041D0973@yahoo.com> To: Mark Millard X-Mailer: Apple Mail (2.3826.700.81) On 1 Nov 2025, at 21:47, Mark Millard wrote: >=20 > On Nov 1, 2025, at 13:17, Dimitry Andric wrote: ... >> No, the symbol should be there, and it shouldn't be "non-exported". = However, looking with readelf, I see: >>=20 >> Symbol table '.symtab' contains 13 entries: >> Num: Value Size Type Bind Vis Ndx Name >> ... >> 11: 0000000000000000 0 NOTYPE GLOBAL HIDDEN UND = __aarch64_have_lse_atomics >> 12: 0000000000000000 48 FUNC GLOBAL HIDDEN 2 = __aarch64_cas4_acq >>=20 >> So the symbol is global but hidden, which is because = lib/libcompiler_rt/Makefile compiles everything with = -fvisibility=3Dhidden. >>=20 >> It has been doing that for a long time, so I am unsure why ld now = suddenly makes a problem out of it. Maybe the CI builds use another = linker, either on purpose or by accident? >=20 > May be something like: >=20 > QUOTE from https://github.com/llvm/llvm-project/issues/86777 > ("[lld] why does lld export hidden symbols without warning when = dynamic libraries link to object files?") >=20 > swift-ci > added a commit that references this issue on Mar 29, 2024 > [ELF] Enhance --no-allow-shlib-undefined for non-exported definitions > df54f62 > For a DSO with all DT_NEEDED entries accounted for, if it contains an > undefined non-weak symbol that shares a name with a non-exported > definition (hidden visibility or localized by a version script), and > there is no DSO definition, we should report an error. >=20 > llvm#70769 implemented the error when we see `ref.so def-hidden.so`. = This patch > implementes the error when we see `def-hidden.so ref.so`, matching GNU > ld. >=20 > Close llvm#86777 > END QUOTE Yes, I found that too, and an informative blog post by Fangrui Song at = = . But it doesn't explain why this error only occurs for some people and = not others. If I understand the llvm commit and the blog post correctly, = I would expect this error to always appear. :) -Dimitry