From nobody Mon Apr 22 16:28:24 2024 X-Original-To: freebsd-hackers@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 4VNW044khTz5HQV1 for ; Mon, 22 Apr 2024 16:28:36 +0000 (UTC) (envelope-from jeffpc@josefsipek.net) Received: from smtp.jeffnet.31bits.net (josefsipek.net [71.174.62.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4VNW0357C8z4CwS for ; Mon, 22 Apr 2024 16:28:35 +0000 (UTC) (envelope-from jeffpc@josefsipek.net) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of jeffpc@josefsipek.net designates 71.174.62.3 as permitted sender) smtp.mailfrom=jeffpc@josefsipek.net Received: from satis (satis [172.27.0.85]) by smtp.jeffnet.31bits.net (Postfix) with ESMTPSA id 90CFB2C25A; Mon, 22 Apr 2024 16:28:29 +0000 (UTC) Date: Mon, 22 Apr 2024 12:28:24 -0400 From: Josef 'Jeff' Sipek To: Warner Losh Cc: FreeBSD Hackers Subject: Re: Upgrading -RELEASE to -CURRENT Message-ID: References: List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.25 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.65)[-0.646]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; ONCE_RECEIVED(0.10)[]; RCVD_NO_TLS_LAST(0.10)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; ASN(0.00)[asn:701, ipnet:71.174.0.0/16, country:US]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_TWO(0.00)[2]; R_DKIM_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MISSING_XM_UA(0.00)[]; TO_DN_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; DMARC_NA(0.00)[josefsipek.net]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4VNW0357C8z4CwS On Fri, Apr 19, 2024 at 22:05:17 -0400, Josef 'Jeff' Sipek wrote: ... > ld-elf.so.1: /lib/libcxxrt.so.1: version CXXABI_1.3.11 required by /lib/libc++.so.1 not found So, the problem is /lib/libcxxrt.so.1 is *not* getting updated by 'make installworld' because the newly built library ends up in /usr/lib [1]. Therefore, the broken system has: /lib/libcxxrt.so.1 from 14.0-RELEASE /usr/lib/libcxxrt.so.1 from -CURRENT ld-elf.so finds the one in /lib fails to find the required version (CXXABI_1.3.11) and terminates. Workaround: # cp /usr/lib/libcxx.so.1 /lib Even on a working system (i.e., RELEASE -> STABLE -> CURRENT), there are two libs of different vintages: root@odin:~ # ls -lh /lib/libcxxrt* /usr/lib/libcxxrt* -r--r--r-- 1 root wheel 105K Mar 23 08:48 /lib/libcxxrt.so.1 -r--r--r-- 1 root wheel 350K Apr 18 20:31 /usr/lib/libcxxrt.a lrwxr-xr-x 1 root wheel 13B Apr 18 20:31 /usr/lib/libcxxrt.so -> libcxxrt.so.1 -r--r--r-- 1 root wheel 104K Apr 18 20:31 /usr/lib/libcxxrt.so.1 I'm guessing that moving to 14-STABLE first updates the /lib copy to a version that includes CXXABI_1.3.11 which makes the subsequent -CURRENT happy enough. For completeness, a 14.0-RELEASE-p6 has: jeffpc@satis$ ls -lh /lib/libcxxrt.* /usr/lib/libcxxrt.* -r--r--r-- 1 root wheel 105K Jan 18 21:25 /lib/libcxxrt.so.1 -r--r--r-- 1 root wheel 354K Jan 18 21:27 /usr/lib/libcxxrt.a lrwxr-xr-x 1 root wheel 23B Apr 9 2021 /usr/lib/libcxxrt.so -> ../../lib/libcxxrt.so.1 I haven't looked at the makefiles to see where things go wrong - I'll try to take a look today after work (if nobody beats me to it). Jeff. [1] installworld invokes 'install -s -o root -g wheel -m 444 -C -S libcxxrt.so.1 /usr/lib'