From nobody Wed Jan 24 21:24:23 2024 X-Original-To: freebsd-arm@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 4TKxmn2JwGz58l9H for ; Wed, 24 Jan 2024 21:24:41 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic310-21.consmr.mail.gq1.yahoo.com (sonic310-21.consmr.mail.gq1.yahoo.com [98.137.69.147]) (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 4TKxmm72S6z4WK4 for ; Wed, 24 Jan 2024 21:24:40 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1706131478; bh=96/m410WnPeVdFxHV6NqPgCaM/seTh47AFoF7AzCK2U=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=EG9+opwKhxsp3uxojyhLLY2o/Pa4hG5CjDOhK+1boc+QHJ2slFFhJp9EP/f2w9+NFLS5naFgJucHkz5MtG5nI/+OGkMpOzJse2Vx1vozsC727KVyyvqk9Fbmyq3eQt9e6lBqnaxKxiJzGo59PDyBSWVuJpQSN712+hTv9sZ10Pe/ffrUMJWoMEu0/oKPWbz0cWWLnEthUI3SuI+VAB9o2lcyLB8mZvXAOGlrcZGBmYXphOokpgoBzGl5yfxvA8fBUqEOvbptliW7B6LQrBDdIExawDLvYTHYPlUbVF/HrigqyECMXDW8cZUhmeK/+OLWLAJyUCf9th/KXEWhhWH1Yw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1706131478; bh=4WUdNXb8dZL8PaE2f/FlRMURPviAUlSSY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7cEBS5lmiw9smlZyb_5MoX5Es6xbre4fkFCy6fiCqoiiIQjOf _XMc3_cBvm645wiKRkXLXrnFve8OT4U1PS.A5BqpT2IbhSSth_VR4oz8YSCnBmkxJalEnSmlRQFU M0wzezNrE9R6xgD8A5Z_XkWZVbKg5_yJDGRYGtSJcP4dmJa95YGUxRHufqxtgENJAwrCuWCq2er2 dGf98LmZrJ7LMHo7qLUCDvl6QQdnjF6WUuvGj56XTpl2CqE1ZehSmshGGBomkb419qtWaPHmoN8B mkxXqaITtScxTMcYzLwiTyY.AsnvLcTeGcFTQJ_f3d_msG1WUYh1htZku5SVT1K_YcQsoT7bYuD. gqGMP4.ZkbBIidmeVh9WjFvoHE0Kl.moQcw8pKFwbB4PKMeMccMkDDUb...XeUtpEMxx2Jz_5WRE _n5t3g48K9ADjJWOW6C2Jdz9HdBn14ekthBSFiyryuWQO_L_PlE3cClh0IyNAQBz8jxPzFVxa8BN tPqPp3DWui1yzbQdXntp4HBl.ErVNso28fg9uZcXuqI2CbbVvl4Dh4UlkVgC5wNLx5n.RHQntKQ- - X-Sonic-MF: X-Sonic-ID: ae02318b-8890-4626-82b8-1543159ad414 Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.gq1.yahoo.com with HTTP; Wed, 24 Jan 2024 21:24:38 +0000 Received: by hermes--production-gq1-78d49cd6df-xrrtm (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 652207d48a306c6572a6fed92d26b58e; Wed, 24 Jan 2024 21:24:34 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.300.61.1.2\)) Subject: Re: gcc and base system disagree on version of __unordtf2 in libgcc_s From: Mark Millard In-Reply-To: Date: Wed, 24 Jan 2024 13:24:23 -0800 Cc: freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <1F152D0B-244C-4DBC-9322-A202E27E222C@yahoo.com> References: To: John F Carr X-Mailer: Apple Mail (2.3774.300.61.1.2) X-Rspamd-Queue-Id: 4TKxmm72S6z4WK4 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] On Jan 24, 2024, at 12:24, John F Carr wrote: > If I build a C++ program with g++ on 64 bit ARM and do not use = -Wl,-rpath > the resulting executable fails with >=20 > ld-elf.so.1: /lib/libgcc_s.so.1: version GCC_4.5.0 required by = /usr/local/lib/gcc11/libstdc++.so.6 not found >=20 > The symbol exists but has the wrong version. >=20 > FreeBSD's /lib/libgcc_s.so.1 defines __unordtf2 in version GCC_4.6.0. >=20 > gcc's libgcc_s.so defines __unordtf2 in version GCC_4.5.0. >=20 > Who is right? Can we make the gcc port and base system agree? > Can we do it without breaking old executables? >=20 > In the gcc source a comment in libgcc/config/i386/libgcc-bsd.ver = reads: >=20 > # 128 bit long double support was introduced with GCC 4.6.0 for = FreeBSD. > # These lines make the symbols to get a @@GCC_4.6.0. >=20 > Reproduced with gcc11, gcc12, and gcc13-devel packages on FreeBSD 14 = and 15. An old note from an old bugzilla: QUOTE An interesting point is amd64 vs. aarch64 for /usr/local/lib/gcc11/libgcc_s.so.1 : +GCC_4.6.0 __unordtf2 vs. +GCC_4.5.0 __unordtf2 So the GCC_* vintage is architecture specific. END QUOTE =3D=3D=3D Mark Millard marklmi at yahoo.com