From nobody Mon Sep 16 14:27:25 2024 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 4X6nLj3D0Qz5W7Y2 for ; Mon, 16 Sep 2024 14:27:41 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic301-21.consmr.mail.gq1.yahoo.com (sonic301-21.consmr.mail.gq1.yahoo.com [98.137.64.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 4X6nLg6jpDz44Jd for ; Mon, 16 Sep 2024 14:27:39 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=sPuTJZOI; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.64.147 as permitted sender) smtp.mailfrom=marklmi@yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1726496857; bh=CKNKygqRsEsmD/rgR8OMpcj4DdMRYxUI4mELPWakZcQ=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=sPuTJZOIVB76QW/QHywECO/1ZpmLZPqjdbWpJYx4ISlU8p4yYsFiOpQzduUiw7VGYSvJt6g8VR5Z+M0uaUJp9PC9PnetLJb8oT3DTmDR3qQEFSrxwO5H58rfDULRPY77t5xdhULtDN1/w+/GD9BBiR2LaIQ3Wof29q7MhxQ0TgT6LCfHFCL4auZ9hJ9+7joae3n4j0DG++gwzgIGjzUNXuvpy93KvYx4HKB54bIocIn97DCmFaeOZIHTVKGVx0VV3bmUxwWufK8X/OnVcE7zwFN7YW2OqzFHgc4c2KEyDEcerZGBX+yw0bPCwtwOO6Qj+w7HkCWb2cY/q0jdKJxiIw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1726496857; bh=289xjf8tbyatEKuqQcxsGKDE1B4lePIPBywCQrC+XHF=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=oo8n8/SQ4gPpW7PV8I4OHl6Wl2z5VKO9++TQ29d/LPBjAoWqWmeSW1NK6F9pbX1Jq9i7ZDBVi4RZGToAv2L7u5IbRuOWiAdYIhagnP7kJsgZ0/4zROLtOpfnGvmeRQA+tbcuVdD05X8wxhI/B21Hx5KaLpA9HdgRZAUFYzXEBbugF9YzjXRO/qE3zHezxjUPvjnjtrFqyDK3Usj062IQLMSaxebCkzmqoI27PneN1EasDPIjhdhH9kT/uAxp/xSHj9z1+zmuVbZW2THEMk/crdQr8mV9JpxwTyibrLxf8RWL64ERy/8RHrybY8IC3tQFFM3paP8cPmebTfqJkjwRrg== X-YMail-OSG: QV5lBs4VM1nJfi6UOdbDIqhEm6zH1KrArYTz63EdXIFu_gibq5QvzZstZBRFl3Z .HAco1UJtxvXpSE6fuYLsjEzTbpUUse1C_tsR8Z_LgdXhkwUEos8zXGaSWe4AGykSS8nRds_43IT lLTYE_mwDYMLeMZu4m9_b_3s.hXMFi_t.hurxyWPAbEutH84JCiRBZekkSB0xvEAA7KyWc3Uq_nY .Iet5WZb4GjI5H0mH4thj.eNHUXVgb9gCQ0xpm92JKJSvKt3VQ47FUD9hMVHn7E21rJoakKkjbMX AqYuxe8KXszK_nisddTgu7BwCN2Dz5Ib2jOov7m3hPm5pDxSXnIMWVGCa61qc.t0yGMyNx7_ljBt MMdLt6nViOKN_wqIXXNaF6oQF7WB1hwTX9pg0clWcpurpTGATq81ModMo7XePAPmcLypOKtA2r.A GZelvRl1Bf4X.JidcrrWS.zS4UqhUBKbWenScOnOReQUA0NwKxpa7XwXo5dn.mMZO1.KQN24rj.n oZDCCNbabK.bx6PUkjg0.Nc2mUV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LsKge_ig1oIcBgepvULV9GAmf_Vx3jLjhTobcCK6mkzlrkzsW UsKe9bsInwbSJDlDSK1EAU1tBacPWw7wjpDFGL3ROKWcGlVw47_Ts6okM9QLRwGepNd.4XiVLxq2 ROVhMZ9evZoxsr5SO8nRCBzGB1OM40IgZKYyj3_R9bW1TMLV_6m2Jm.OEFUOBp7HJGSOeRb.4nb6 ghtHhs0T66aErBdeQnbBpjbTkf6cX2iIRsA8pe3B.OPZImW2VoepcoHZyMqGmFO.8EJtN1Nl4BBe .l_qYjtlXrAtbPb1lLiwx6giTY3B9VwSPgUECHru7Dj6J5kPM3Kp.Qz1hqKjupJF4iSAsTnkjvXZ 9ozWdE8PXS0QBLKT6.bDeHcQmFWe8t4S9HU00e6aUqDVuJO_h.mkLt9TmAuOcoRzZCSvepD0Jg_J 3I.muJSEob1qBxuTtAp0eKCURvzbGEz6bZQSqBLLHYU8ZC9TQ2rXbxyg01kpnpWTuUOeLsbl5eAk 7D.7Cw5uyWwDWJqv6C9SuDv8QbLO9VNONhNzpE_WQPdJ8fSH4W0OQl30JIrENf5fZtpxPKbP621P EL3qCleHqD1apSFcOWzk_Dl._k4VQ.ydoe3ZGTgpcXXmo1DPi1wiB_qmluq54Nfj2wJGkn8Smq3. P4GkphulfkPEv7_HA3Fbd1114qmrg9RqLtR9lVCpDObXGY0UXAZiYwn53xtJ27YllCIj.4dviiBb 7WSfmBjMQPru6SLVknHJjwVBozKsYgtKZ9w-- X-Sonic-MF: X-Sonic-ID: 3417d888-a1ff-4d54-85a4-c25ee069b0c9 Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Mon, 16 Sep 2024 14:27:37 +0000 Received: by hermes--production-gq1-5d95dc458-5n5gs (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID b8d1a293825d2fbcd146f866ca37c4d0; Mon, 16 Sep 2024 14:27:36 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) Subject: RE: /lib/libcxxrt.so problem with Node.js Message-Id: <52927DF9-B878-48EA-8F50-D57068B55D3C@yahoo.com> Date: Mon, 16 Sep 2024 07:27:25 -0700 To: matthew@matthewphillips.info, FreeBSD Mailing List X-Mailer: Apple Mail (2.3776.700.51) References: <52927DF9-B878-48EA-8F50-D57068B55D3C.ref@yahoo.com> X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.45 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; NEURAL_HAM_SHORT(-0.45)[-0.452]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; APPLE_MAILER_COMMON(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.64.147:from]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.147:from] X-Rspamd-Queue-Id: 4X6nLg6jpDz44Jd Matthew Phillips wrote on Date: Mon, 16 Sep 2024 13:04:51 UTC : > On 14.1, when installing any of the Node.js packages, node22 for > example, I get this error message when attempting to run the `node` > binary: >=20 > ld-elf.so.1: /lib/libcxxrt.so.1: version CXXABI_1.3.11 required by = /lib/libc++.so.1 not found >=20 > Checkings strings: >=20 > # strings /lib/libc++.so.1 | grep CXXABI > CXXABI_1.3 > CXXABI_1.3.11 >=20 > That's ok, but >=20 > # strings /lib/libcxxrt.so.1 | grep CXXABI > CXXABI_1.3 > CXXABI_1.3.1 > CXXABI_1.3.5 > CXXABI_1.3.6 >=20 > So indeed there is a problem. This has been previously reported here: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D280303 but not > resolved. >=20 > Any advice? How/can I just reinstall /lib/cxxrt.so.1 and if so, how? Normal (as seen via stable/14 as I do not have a releng/14.* around): # uname -U 1401501 # ls -lodT /lib/libcxxrt.so.1 -r--r--r-- 1 root wheel - 106848 Jul 15 12:33:03 2024 = /lib/libcxxrt.so.1 # strings /lib/libcxxrt.so.1 | grep CXXABI CXXABI_1.3 CXXABI_1.3.1 CXXABI_1.3.5 CXXABI_1.3.6 CXXABI_1.3.9 CXXABI_1.3.11 So you seem to be missing both CXXABI_1.3.9 and CXXABI_1.3.11 . How old is your /lib/libcxxrt.so.1 ? The addition of CXXABI_1.3.9 dates back to 2017 ( as seen in releng/14.1 --but it is also in releng/14.0 and in releng/13.0 [2021-Apr-09]): diff --git a/lib/libcxxrt/Version.map b/lib/libcxxrt/Version.map index 73ef70748861..5cb186072323 100644 --- a/lib/libcxxrt/Version.map +++ b/lib/libcxxrt/Version.map @@ -254,10 +254,27 @@ CXXABI_1.3.1 { __cxa_get_exception_ptr; } CXXABI_1.3; -CXXABI_1.3.6 { - __cxa_deleted_virtual; +CXXABI_1.3.5 { + "typeinfo for __int128 const*"; + "typeinfo for __int128"; + "typeinfo for __int128*"; + "typeinfo for unsigned __int128 const*"; + "typeinfo for unsigned __int128"; + "typeinfo for unsigned __int128*"; } CXXABI_1.3.1; +CXXABI_1.3.6 { + __cxa_deleted_virtual; +} CXXABI_1.3.5; + +CXXABI_1.3.9 { + "typeinfo name for __int128 const*"; + "typeinfo name for __int128"; + "typeinfo name for __int128*"; + "typeinfo name for unsigned __int128 const*"; + "typeinfo name for unsigned __int128"; + "typeinfo name for unsigned __int128*"; +} CXXABI_1.3.6; CXXRT_1.0 { For reference: author Dimitry Andric 2017-02-21 21:48:45 +0000 committer Dimitry Andric 2017-02-21 21:48:45 +0000 commit 6fc1c2befccc42fe69551bd618e1ddd0ca607025 (patch) tree 494876a6e826258b527de4c3d9da9746aa190fc2 /lib/libcxxrt/Version.map parent 5c65c9998a0ff2b4ca5d397c641ee5d3eaa1de01 (diff) download src-6fc1c2befccc42fe69551bd618e1ddd0ca607025.tar.gz src-6fc1c2befccc42fe69551bd618e1ddd0ca607025.zip Add __int128-related symbols to libcxxrt's version map. Put these into the same CXXABI verions as recent libstdc++. Note that __int128 types are only available on arches where long long is = 128 bit wide. Noticed by: harti MFC after: 2 weeks There was also: author Dimitry Andric 2017-02-22 18:44:57 +0000 committer Dimitry Andric 2017-02-22 18:44:57 +0000 commit e3c42855205e233688c851a0f4ce8fe9a0442866 (patch) tree da543f5afd40a205afe2536af344af07de44c3a6 /lib/libcxxrt/Version.map parent a4806d2a62fb733970b96f438fedb929b564e08c (diff) download src-e3c42855205e233688c851a0f4ce8fe9a0442866.tar.gz src-e3c42855205e233688c851a0f4ce8fe9a0442866.zip Surround any unmangled C++ names in libcxxrt's version map with 'extern "C++"', otherwise ld refuses to make the symbols global in the final = library. This causes the __int128-related symbols to go missing when the = library is stripped during installation. Helpful hints: emaste MFC after: 2 weeks X-MFC-With: r314061 The big questions seem to be: ) How you ended up with /lib/libcxxrt.so.1 being so out of date. ) What else might not be of the proper vintage? =3D=3D=3D Mark Millard marklmi at yahoo.com