From nobody Mon Jul 19 09:01:03 2021 X-Original-To: freebsd-ports@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 26E1A1279243 for ; Mon, 19 Jul 2021 09:01:12 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GSwn40Xqvz3MfN; Mon, 19 Jul 2021 09:01:12 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:470:7a58:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id DA02D2EDB2; Mon, 19 Jul 2021 09:01:11 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (unknown [IPv6:2001:470:7a58:0:71f4:757a:4188:d5e2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 6AB9925EDA; Mon, 19 Jul 2021 11:01:09 +0200 (CEST) Content-Type: multipart/signed; boundary="Apple-Mail=_6E5849CC-0FF0-48A9-BF74-42260FA9CC5A"; protocol="application/pgp-signature"; micalg=pgp-sha1 List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.100.0.2.22\)) Subject: Re: undefined symbol: __aarch64_ldadd8_acq_rel since llvm12 (mongodb44) From: Dimitry Andric X-Priority: 3 (Normal) In-Reply-To: <1529638903.1.1626679781992@mailrelay> Date: Mon, 19 Jul 2021 11:01:03 +0200 Cc: FreeBSD Ports , Michal Meloun Message-Id: References: <561167089.7.1626421438153@localhost> <1529638903.1.1626679781992@mailrelay> To: Ronald Klop X-Mailer: Apple Mail (2.3654.100.0.2.22) X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_6E5849CC-0FF0-48A9-BF74-42260FA9CC5A Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 19 Jul 2021, at 09:29, Ronald Klop wrote: >=20 > Does anybody have a clue why I get this error since clang 12 on = aarch64/arm64? > Do other ports have the same issue? >=20 > Regards, > Ronald. >=20 > Van: Ronald Klop > Datum: vrijdag, 16 juli 2021 09:43 > Aan: freebsd-arm@freebsd.org > Onderwerp: undefined symbol: __aarch64_ldadd8_acq_rel since llvm12 = (mongodb44) >> Hi, >> I'm also maintaining databases/mongodb44 and this gives undefined = symbols since llvm12 (I think). >> See: = http://www.ipv6proxy.net/go.php?u=3Dhttp://ampere2.nyi.freebsd.org/data/ma= in-arm64-default/pf44e1c1de734_s63ca9ea4f3/logs/errors/mongodb44-4.4.6.log= >> And look for: >> ld.lld: error: undefined symbol: __aarch64_ldadd8_acq_rel >> There are a bunch of similar symbols not found while linking. >> This compiles fine using llvm11 or on amd64. It turns out clang 12 now enables -moutline-atomics by default, but we don't yet expose the necessary functions from compiler-rt. As a temporary workaround, compile with -mno-outline-atomics. Meanwhile, adding these functions to the compiler-rt lib is on my TODO list. -Dimitry --Apple-Mail=_6E5849CC-0FF0-48A9-BF74-42260FA9CC5A Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCYPU/TwAKCRCwXqMKLiCW o5xqAJ9wx5h0/X7dXO+zMMxCtFchbUrUYwCgo2jeJ9TVwCr2v3ABvGkPkrUQNLE= =OLFT -----END PGP SIGNATURE----- --Apple-Mail=_6E5849CC-0FF0-48A9-BF74-42260FA9CC5A--