From nobody Mon Apr 22 18:58:34 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 4VNZK86MW5z5HgHD for ; Mon, 22 Apr 2024 18:58:36 +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 4VNZK85JW2z4bwl; Mon, 22 Apr 2024 18:58:36 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713812316; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oJO0U/OqsMDe0SGhD/zz06pK7qNTonJ3cRpF2zjtXTg=; b=yPi44ZZ15sMXBOeDtKPc7V3Fg/tz/4yvWXCaiv4jQ7+4uX9yLEFgnd0Qu3XiyPF0bP3FVD onQeInwzURTmHxL4gvog35ZQeU0XQeXKCS+UwE9BadLzTCI+Hd8bdT2+qPOCAIu9HCN0ma rMbDqr91mNVUmf3n6/Ne2SbykzOaBY688xqIAYUPsoeYXYKL1u8y015ZfnWX4O7YBeENGM txPbXafKPCFkiWBwqh4Ba6MJHkLNKv6AIhr8GGLubCaVl856Y3prJkmK6oXuZd43oAvzR2 tTtL44GQjCGis0floTr1FHK1g+m2PANIRG0/dHE6kYT3uv4z1WLq5NpbqWOcQQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713812316; a=rsa-sha256; cv=none; b=So/NWjOI+e6pU+v2RYikEFsC0NqVI7DlKCpJxJVs2bg1IQbsAuxlLoLI80lDKdOFimkfvp jeHVxCn5diLSngo4ruNvMgvBMyJDKHZpQMp6m+ZqmVUAE99JNAkWT8C8Z0fy3RF1GLmHwW 9Sc0NInFOt+cSTklMmakmd8ZV4Be2lyLBhntfSF7fWz8k1uy8hiCA/RAhaP6tQB9GedzNT kO764apCF+IoiQk12QAtSz/dFedyo3Nai2jvPGIQB6b+oI52oisqe33Ks+5CEDgZ6xlJtC GucRnd2bNUQEAefI/CkHxEgBdkYwWbbunYubW+urg9FpFxnYJJJISkM0Hm4ObQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713812316; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oJO0U/OqsMDe0SGhD/zz06pK7qNTonJ3cRpF2zjtXTg=; b=OEwwKzV/pZR5LhW6XvBxyX/CmWzlqNzFdCXbYn8sZiRphdeSfcgVeHIqDqt47dQh2Lcd+7 nbLT0fY1DgAC3sWw3qSjtz1F3VOPMFZzcZeCX1N5OBsg6UuWTuuEbSumhKKSDfKiEOqEPf 9MGkz2RYXnz83IaFwzI/RA3juAGz3+acvXoCfqmQ1oVQmoRlXshG7SjkkkPa8XF1KKeUWw oz3hTLsuDT23ABcJTG+pR+KEkDPp+AE5QZb1AOUHvc8bkHBM7shSngR0uSZmXQgm3ZAz8F 5xhr7j9zc7usBK058gcSvvGxpri0uOl12fAsEroWty5mmKB6eC0eYNKx7WEwrQ== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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 (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R3" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4VNZK84BN7z1RFn; Mon, 22 Apr 2024 18:58:36 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (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 1802A10E77; Mon, 22 Apr 2024 20:58:35 +0200 (CEST) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3731.700.6.1.1\)) Subject: Re: Upgrading -RELEASE to -CURRENT From: Dimitry Andric In-Reply-To: Date: Mon, 22 Apr 2024 20:58:34 +0200 Cc: Warner Losh , FreeBSD Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <849819B4-9EE6-4776-8079-B0E12ED457D0@FreeBSD.org> References: <9C0C7B9F-9780-4B7D-9B46-CD83B516BD2A@FreeBSD.org> To: Josef 'Jeff' Sipek X-Mailer: Apple Mail (2.3731.700.6.1.1) On 22 Apr 2024, at 19:21, Josef 'Jeff' Sipek = wrote: >=20 > On Mon, Apr 22, 2024 at 19:19:27 +0200, Dimitry Andric wrote: >> On 22 Apr 2024, at 19:17, Josef 'Jeff' Sipek = wrote: >>>=20 >>> On Mon, Apr 22, 2024 at 19:11:46 +0200, Dimitry Andric wrote: >>>> On 22 Apr 2024, at 18:28, Josef 'Jeff' Sipek = wrote: >>>>>=20 >>>>> 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 >>>>>=20 >>>>> 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: >>>>>=20 >>>>> /lib/libcxxrt.so.1 from 14.0-RELEASE >>>>> /usr/lib/libcxxrt.so.1 from -CURRENT >>>>>=20 >>>>> ld-elf.so finds the one in /lib fails to find the required version >>>>> (CXXABI_1.3.11) and terminates. >>>>=20 >>>> This is very strange, and should not happen. >>>=20 >>> Agreed :) >>>=20 >>>> The Makefile for libcxxrt >>>> specifies SHLIBDIR?=3D/lib, so have you somehow overridden SHLIBDIR >>>> somewhere in your environment? >>>=20 >>> Nope! This is a fresh 14.0-RELEASE install (updated to -p6 via >>> freebsd-update), then I log in as root, install git, get the source, = and >>> build. >>=20 >> How, exactly, are you building? >=20 > See my earlier email from 19 Apr 2024 22:05:17 -0400 for details. But = in > short, 'make buildworld' 'make buildkernel' 'make installkernel' 'make = installworld'. To properly finish up this thread, Jeff was right, and https://cgit.freebsd.org/src/commit/?id=3Dda77a1b4f0dff was the cause. That commit added a .include at the top of libcxxrt's Makefile, which is normally fine, but not if you use SHLIBDIR?=3D/lib. That sort of assignment should always be done before including any of the bsd.*.mk files. I have committed https://cgit.freebsd.org/src/commit/?id=3D911a6479e18bc for now, which should fix the problem. It also adds an ObsoleteFiles.inc entry for /usr/lib/libcxxrt.so.1, so the file should be removed when you run "make delete-old-libs". -Dimitry