From nobody Sat Nov 1 20:17:39 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 4czTfs2xPwz6Dsm9 for ; Sat, 01 Nov 2025 20:17:41 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 4czTfs15wnz3WR8; Sat, 01 Nov 2025 20:17:41 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762028261; 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=VwwwR+AvCgXbOnnH5eQ78fdF/MoMw2MjdMxGoao9n9k=; b=h+KyaFzJKdS8hmSbQRtXqax99ku91fdGrpLrhnpvveCflVOkDJkrCIxZAskuxHlPlmBJcX hvrj46TVMew9WlJsl2fhKQ/oPKJ59HW2vGS1s42MBu2B2ERdw+YgfNmRFOkFsMGRqdVA0F 9BTSdJNHtJBMD6SqJWHI1QphWolOUWBGq7oplth9/WhpHznhtehBhN1Bn8Kb0sAC/K/CgB PpF8LsDmqAr+ZKCKOH5yn6sg3uMQRRIIui7t+5IeARQ7kLJ32dRFIMFGQHyWwyAgRP34Ie 8NhzWwJlAWvbL1L2Ay56P10lV1ki1dwVxa0s3bb6NNIf6/9osjQchs6GXuWzzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1762028261; 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=VwwwR+AvCgXbOnnH5eQ78fdF/MoMw2MjdMxGoao9n9k=; b=rD1OncUn8M38+yqfpZgpw0wKb4AmiT5t8lJa4ISxPJ1s5QDAFXblwbhHc6tzlLJnYwqJCz jgEyfSlWmpA26OkSKIw58IDq13XxW+l494p1V04djgxcrihpzH+G2iB85t6wGpoc0Dsvix hsEy0I1Qe68vqFd8ybDQhl36ELHHkHnWL46E3+i2JwnwoWWdUfihJz3RPUH4NSV94jRyXH gqG51LwE2/EV3XYHujaOlUiB1pb5bBmIx79pFhc7t1ALnVm9umx3leW/BJ8WgXUWVH8orx 6bUvFQHuNo/AnIokbaxDZowPU7sdMHCCAkxc92QqXKJf7JPgE9rx8HrSOhVkvw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1762028261; a=rsa-sha256; cv=none; b=e1SL6SPFjf53E119AWw/pwmOdDV0fBqUlLyXLbQgz/0QKSFb1q+w8P1seTqcTfV+3BySoi Ns3PHaGefhbBzpZFe8LdvCSTGJ5lBIEt6PI+IMUfjrZL7eBhFCKq2pJCYm2DnlellI6acv CbdFlRetDxz6O1pEm/0xrIZza8o7yzGNfk4SGwwAKKDjtDsDl/9lwdYYc5JGJVujP9xoCF tQC7MyJCfdaLgVknIYuw8DM7gG5NOmAj1ZNt3npyZGJSwI2lc4A2QL9TSArEpiPijwMU24 fAWYEvcfSKlP63s58+P2ByXtx7tzTLqFhamqZAy02DgrvJhwUESdlrDIcZRm6w== 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 4czTfr5slVz1QVf; Sat, 01 Nov 2025 20:17:40 +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 356AE5C232; Sat, 01 Nov 2025 21:17:39 +0100 (CET) Content-Type: text/plain; charset=utf-8 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: <38155720-430A-4E3B-82C3-3DFF36A37098@yahoo.com> Date: Sat, 1 Nov 2025 21:17:39 +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> To: Mark Millard X-Mailer: Apple Mail (2.3826.700.81) On 1 Nov 2025, at 20:48, Mark Millard wrote: >=20 > Dimitry Andric wrote on > Date: Sat, 01 Nov 2025 18:40:54 UTC : >=20 >> On 31 Oct 2025, at 17:20, Jose Luis Duran = wrote: >>>=20 >>> On Fri, Oct 31, 2025 at 12:48=E2=80=AFPM Dimitry Andric = wrote: >>>>=20 >>>> On 31 Oct 2025, at 14:48, Jose Luis Duran = wrote: >>>>>=20 >>>>> On Wed, Oct 29, 2025 at 3:50=E2=80=AFPM Dimitry Andric = wrote: >>>>>>=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 >>>> It's weird, but I cannot reproduce it. For me, both world and = kernel build fine. >>>>=20 >>>> Does anybody have any particular settings that can be used to = reproduce this on a fresh 16-CURRENT or 15-STABLE box? >>>=20 >>> I can reproduce it on an aarch64 VM (using a mac studio), vanilla = settings: >>>=20 >>> make cleanuniverse <--- very important! >>> make -j $(nproc) buildworld ... as usual >>=20 >> Unfortunately it still does not reproduce for me. I have tried this = on two different systems. The current hypothesis is that it is due to a = race in the build system. >>=20 >> At the point where the error occurs, libgcc.a (an alias of = libcompiler_rt.a) should already have been built, with the __aarch64_* = symbols in it. In the logs from ci.freebsd.org = you can see that libcompiler_rt.a has already been built, and installed = into ${WORLDTMP}. So it's still a mystery why this error even occurs. >=20 > When I look at the official CI log file I see, for example: >=20 > --- outline_atomic_cas4_2.o --- > cc -target aarch64-unknown-freebsd16.0 . . . -fpic -fvisibility=3Dhidden= -DVISIBILITY_HIDDEN . . . -c outline_atomic_cas4_2.S -o = outline_atomic_cas4_2.o >=20 > Would that tend to imply that the later: >=20 > ld: error: non-exported symbol '__aarch64_cas4_acq' in = '/usr/obj/usr/src/arm64.aarch64/tmp/usr/lib/libgcc.a(outline_atomic_cas4_2= .o)' is referenced by DSO = '/usr/obj/usr/src/arm64.aarch64/tmp/usr/lib/libgcc_s.so' >=20 > would be expected? No, the symbol should be there, and it shouldn't be "non-exported". = However, looking with readelf, I see: 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 So the symbol is global but hidden, which is because = lib/libcompiler_rt/Makefile compiles everything with = -fvisibility=3Dhidden. 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? -Dimitry