From nobody Thu Sep 15 03:49:52 2022 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 4MSjrl45cKz4bq2D for ; Thu, 15 Sep 2022 03:49:59 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-21.consmr.mail.gq1.yahoo.com (sonic314-21.consmr.mail.gq1.yahoo.com [98.137.69.84]) (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 4MSjrk58HPz4J9l for ; Thu, 15 Sep 2022 03:49:58 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1663213796; bh=qfzPh3bBX9xSbuZO1+A/iiCwemLA7qwYBYva7n1459c=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=qymznty1Ne2O1G8mVwM1fHzuXQo4V4lNYaKmid+tAXrtk3nqRXAjybZ31D1QuZtt8Pv2dcx5ABlXmVSl01+315+rPtc/YZrRqa8RLYZIUptlNSWlUpk5W2tqa6f9ddpHJ0nOfDRy79pi9yS5LsisA3khRpVSSJSC1i5HHsOpK8v4AS3Ro/KTyZmBiQTZ789KyU4F9Ot/jk/WZEhM+vtqihgxQ/jB+1vaKv2LMRjRtHM3PsxJ0qGC7vP0NVKQJjaBaBJ4hKQdMMehlOgdCi4jjtBQxExtrbA2/pmLxwVfZlkOHmxqCiKxCc51xfONzYNF2oLI5HNo38LEPUkoa1IWtw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1663213796; bh=PwlejnMmGCglFrOJ7KLOlBGL4ZNdBOUdlS/0OfI0a4C=; h=X-Sonic-MF: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V3YIqc1WPzkeggNsx_pHmsVz5mZ.dGXBHBK N.Ima5pYVx7Men7sp7q5HHhL2FCJzBMcHLpuwAZojfbvz2taeY1xdN1vkcpq5UurWLx_AGo59Saw y2jDeRFkkUoJxRPv56O7bRWrodTbhHmLOZ_jsi97RfuOJBgE_Six3PIbpKd_OIKpNT3nNEtssS6Q EDKCE0dCM228Mpg6pTWILk6tnr5.43ThFoKbbj7DU6TKy08yPW20R14_LYUpFILK386kMApi_Srg XQVry8xkTXp462Gbupgvw2tHzrpoH360Df8wdDYJl4DkFNLg907KKiTSmNlu9F0SapfezvAiseaP ODTvbZ6W9QkOoeot_EXj9q4E.7tChXU.3hJ25FhzQYbCdebKjlKljDoNaXR0KYGZhLfqvOfDqbTd 2ylQMBD0LjxbHq.H.XzLEcKprpqXqnubHf3trcP1aNqj_cUJPR2VFB.j9k09f0Ncdedz7YDrJvcF eXtCyIOuzPVEtnil1W5mDWZBkSMCZN1ALG3NNc9W.H6_jXk687IItzQBHobGIWkVxCXyvwIRciA- - X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Thu, 15 Sep 2022 03:49:56 +0000 Received: by hermes--production-ne1-544744cc75-kxtjx (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID c0ef286edc2a331454f8718187234c5a; Thu, 15 Sep 2022 03:49:54 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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 14.0 \(3654.120.0.1.13\)) Subject: RE: gcc failure on -current on aarch64 Message-Id: Date: Wed, 14 Sep 2022 20:49:52 -0700 To: void , freebsd-arm X-Mailer: Apple Mail (2.3654.120.0.1.13) References: X-Rspamd-Queue-Id: 4MSjrk58HPz4J9l X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=qymznty1; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.84 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.84:from]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; DKIM_TRACE(0.00)[yahoo.com:+]; FREEMAIL_TO(0.00)[f-m.fm,freebsd.org]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.84:from] X-ThisMailContainsUnwantedMimeParts: N void wrote on Date: Wed, 14 Sep 2022 16:20:18 UTC : > I'm not sure whether to raise a ports PR for this, or if it's > an aarch64 problem or if it's a -current problem so if this is the > wrong list, please advise. >=20 > On a php80 installlation running recent -current using ports > built yesterday in poudriere with a fresh ports tree, php80-gd > upgraded but now php complains like this: >=20 > PHP Startup: Unable to load dynamic library 'gd.so' \ > (tried: /usr/local/lib/php/20200930/gd.so (/lib/libgcc_s.so.1: \ > version GCC_4.5.0 required by /usr/local/lib/gcc11/libstdc++.so.6 not = found), \ > /usr/local/lib/php/20200930/gd.so.so (/lib/libgcc_s.so.1: version = GCC_4.5.0 \ > required by /usr/local/lib/gcc11/libstdc++.so.6 not found)) in Unknown = \ > on line 0 >=20 > Sure enough, GCC_4.5.0 isn't there >=20 > # strings /lib/libgcc_s.so.1 | ug GCC_ >=20 > 180: GCC_3.0 > 181: GCC_3.3 > 182: GCC_3.3.1 > 183: GCC_3.4 > 184: GCC_3.4.2 > 185: GCC_3.4.4 > 186: GCC_3.5 > 187: GCC_4.0.0 > 188: GCC_4.2.0 > 189: GCC_4.3.0 > 190: GCC_4.6.0 >=20 > # strings /usr/local/lib/gcc11/libstdc++.so.6 | ug GCC_ >=20 > 6111: GCC_4.2.0 > 6112: GCC_3.3 > 6113: GCC_3.0 > 6114: GCC_4.5.0 >=20 > Is the problem with base/ports/gcc{version}, gd, php? >=20 > freebsd-current is main-n257818 built 5th Sept [I've run into this issue in multiple contexts recently. But I figured I'd leave notes here on the list as well.] For aarch64 specifically, FreeBSD's /lib/libgcc_s.so.1 simply does not provide everything that the various /usr/local/lib/gcc*/libstdc++.so.6 require, including for g++11 use. (Even plain C code can run into the general issue --but usually does not happen to use something that does. libstdc++.so.6 from older lang/gcc* and g++ code generation also run into the issue.) Because of this /lib/libgcc_s.so.1 mismatch for aarch64, /usr/local/lib/gcc11/libstdc++.so.6 needs to find: /usr/local/lib/gcc11/libgcc_s.so.1 instead of /lib/libgcc_s.so.1 That, in turn, means that if g++11 (for example) is used as a front end command for linking, -Wl,-rpath=3D/usr/local/lib/gcc11 should be involved in the command as well. An example of without and with ( lang/gcc12 context ): # g++12 trivial.cpp # ldd ./a.out ./a.out: libstdc++.so.6 =3D> /usr/local/lib/gcc12/libstdc++.so.6 = (0x400000) libm.so.5 =3D> /lib/libm.so.5 (0x400000) libgcc_s.so.1 =3D> /lib/libgcc_s.so.1 (0x400000) libc.so.7 =3D> /lib/libc.so.7 (0x400000) # ./a.out ld-elf.so.1: /lib/libgcc_s.so.1: version GCC_4.5.0 required by = /usr/local/lib/gcc12/libstdc++.so.6 not found vs.: # g++12 -Wl,-rpath=3D/usr/local/lib/gcc12 trivial.cpp # ldd ./a.out ./a.out: libstdc++.so.6 =3D> /usr/local/lib/gcc12/libstdc++.so.6 = (0x400000) libm.so.5 =3D> /lib/libm.so.5 (0x400000) libgcc_s.so.1 =3D> /usr/local/lib/gcc12/libgcc_s.so.1 (0x400000) libc.so.7 =3D> /lib/libc.so.7 (0x400000) # ./a.out # This means that the ports using libstdc++.so.6 need to deal with getting the builds to have the required rpath(s) in place for the g++* involved. (gcc* generated code can also end up requiring such.) =3D=3D=3D Mark Millard marklmi at yahoo.com