From nobody Mon Mar 10 14:38:04 2025 X-Original-To: freebsd-current@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 4ZBKHz5Bjzz5qxJP for ; Mon, 10 Mar 2025 14:38:07 +0000 (UTC) (envelope-from herbert@gojira.at) Received: from mail.bsd4all.net (mail.bsd4all.net [94.130.200.20]) (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 ECDSA (secp384r1) client-digest SHA384) (Client CN "mail.bsd4all.net", Issuer "E6" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZBKHy2tNpz3SP9 for ; Mon, 10 Mar 2025 14:38:06 +0000 (UTC) (envelope-from herbert@gojira.at) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gojira.at header.s=mail202005 header.b="f/5PfMmh"; dmarc=none; spf=pass (mx1.freebsd.org: domain of herbert@gojira.at designates 94.130.200.20 as permitted sender) smtp.mailfrom=herbert@gojira.at Date: Mon, 10 Mar 2025 15:38:04 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=gojira.at; s=mail202005; t=1741617484; bh=Ee1OteabzRt2FVaBbpbBy23Isml2tVz5SpKPNY3rIIA=; h=Date:From:To:Subject:Message-ID:MIME-Version:Content-Type; b=f/5PfMmhHpF2I/1pyRF/apO7GaIug27jMclfa/RfGfQIEEOc2sqipIanfPV3xh91Z sYBVKgxqvZK/e33iCQVK5LCuN7kEgT+2TPcsPk39E0fLgnhjReFOeNbaGeuAR46/Sz 60pxOiY/f6NPZW8Wk2cRXvCHG3jiRW4HSuUIeIScsWZZSRBzls3h2aehfr3mRN7Vni N1CudPTPs5Dajxce0C4NQVhXWVPB6NSqMdzIPuzkJ5FlnDgjkBHqRovC1XspfuElRJ 22RL8kB3k4YCCOJRlzIbKl+ulnfoRaM4sAMRTxrWnZZcuJSAtWITN6a1UTfNsWxzJ8 jAMBMMTALqFFg== From: "Herbert J. Skuhra" To: freebsd-current@freebsd.org Subject: Re: make installworld fails due to missing libmd.so.6 or libmd.so.7 Message-ID: References: List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spamd-Result: default: False [-3.38 / 15.00]; NEURAL_HAM_LONG(-1.00)[-0.996]; NEURAL_HAM_MEDIUM(-0.97)[-0.971]; NEURAL_HAM_SHORT(-0.91)[-0.910]; R_SPF_ALLOW(-0.20)[+ip4:94.130.200.20]; R_DKIM_ALLOW(-0.20)[gojira.at:s=mail202005]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:24940, ipnet:94.130.0.0/16, country:DE]; MISSING_XM_UA(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_ZERO(0.00)[0]; DMARC_NA(0.00)[gojira.at]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; TO_DN_NONE(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gojira.at:+] X-Rspamd-Queue-Id: 4ZBKHy2tNpz3SP9 X-Spamd-Bar: --- On Mon, Mar 10, 2025 at 01:58:14PM +0100, Matthias Apitz wrote: > El día Montag, März 10, 2025 a las 01:14:07 +0100, Herbert J. Skuhra escribió: > > > On Mon, Mar 10, 2025 at 11:14:46AM +0100, Matthias Apitz wrote: > > > This problem first came up a the thread: > > > > > > Creating poudriere jail fails with libmd.so.6 not found > > > > > > but it's unrelated to poudriere jails. With a recent CURRENT (March 1) > > > I can reproduce this fine. I investigated it with an installation into > > > DESTDIR to not damage my running system. > > > > > > Here are my findings: > > > > > > # make installworld DESTDIR=/home/guru/150.root > > > make[1]: "/usr/obj/usr/src/amd64.amd64/toolchain-metadata.mk" line 1: Using cached toolchain metadata from build at jet on Mon Mar 3 09:03:29 CET 2025 > > > -------------------------------------------------------------- > > > >>> Install check world started on Mon Mar 10 08:16:20 CET 2025 > > > -------------------------------------------------------------- > > > mkdir -p /tmp/install.H59PpUrQ1d > > > ... > > > Required library libmd.so.7 not found. > > > *** Error code 1 > > > > > > Stop. > > > > > > I investigated the problem (that's why I used DESTDIR to not > > > damage the system to be installed to). > > > > > > The problem is that two tools, 'sort' and 'mtree' > > > require a shared lib libmd.so.7 which is not there in > > > the moment of make installworld: > > > > > > /usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin/sort > > > libmd.so.7 => not found (0) > > > libc.so.7 => /lib/libc.so.7 (0xe6e08064000) > > > [vdso] (0xe6e06c75000) > > > > > > /usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin/mtree > > > libmd.so.7 => not found (0) > > > libutil.so.9 => /lib/libutil.so.9 (0x10621f601000) > > > libc.so.7 => /lib/libc.so.7 (0x106220ca7000) > > > [vdso] (0x10621d82c000) > > > > > > # find /lib /usr/lib -name libmd.so.7 > > > (nothing) > > > > > > This shared libmd.so.7 lib will perhaps be istalled later by > > > the 'make installworld', at least it is in the tree /usr/obj/... > > > > > > # find /usr/obj -name libmd.so.7 > > > /usr/obj/usr/src/amd64.amd64/tmp/usr/lib32/libmd.so.7 > > > /usr/obj/usr/src/amd64.amd64/tmp/lib/libmd.so.7 > > > /usr/obj/usr/src/amd64.amd64/lib/libmd/libmd.so.7 > > > /usr/obj/usr/src/amd64.amd64/obj-lib32/lib/libmd/libmd.so.7 > > > > > > > > > a workaround is before 'make installworld' to run:: > > > > > > # cp -p /usr/obj/usr/src/amd64.amd64/tmp/lib/libmd.so.7 /lib > > > > > > With this the > > > > > > # make installworld DESTDIR=/home/guru/150.root > > > ... > > > >>> Installing everything completed on Mon Mar 10 08:34:13 CET 2025 > > > >>> Install world completed in 398 seconds, ncpu: 2 > > > -------------------------------------------------------------- > > > 397,72 real 219,14 user 162,06 sys > > > > > > > > > runs fine. > > > > Did you run buildworld and installworld on different versions (e.g: main > > vs. stable, or main vs. main pre e7a629c851d7)? This is is the only way > > I can reproduce this. > > > > main built on stable/14: > > > > $ ldd > > /usr/obj/tmp/home/herbert/source/freebsd/head/src/amd64.amd64/tmp/legacy/bin/sort > > /usr/obj/tmp/home/herbert/source/freebsd/head/src/amd64.amd64/tmp/legacy/bin/sort: > > libmd.so.6 => /lib/libmd.so.6 (0x311068a44000) > > libc.so.7 => /lib/libc.so.7 (0x311068df0000) > > [vdso] (0x3110676f0000) > > > > main built on main: > > > > $ ldd > > /usr/obj/home/herbert/source/freebsd/head/src/amd64.amd64/tmp/legacy/bin/sort > > /usr/obj/home/herbert/source/freebsd/head/src/amd64.amd64/tmp/legacy/bin/sort: > > libmd.so.7 => not found (0) > > libc.so.7 => /lib/libc.so.7 (0x28eb0e6f000) > > [vdso] (0x28eafac0000) > > > > I think these files (sort, mtree, etc.) are copied from /usr/[s]bin. > > They're copied from /usr/sbin of the system where buildworld is done into > the /usr/obj/..../legacy/... tree. > > The exact history of this is: > > - I git cloned /usr/src on March 1 > - I built kernel and world on the running system (an older 14.0-CURRENT) > - I installed kernel and world the usual way without any problem This should install /lib/libmd.so.7 and /usr/bin/sort and /usr/sbin/mtree linked against it. e.g: $ ldd /usr/bin/sort |grep md libmd.so.7 => /lib/libmd.so.7 (0x2b71fa352000) $ ldd /usr/sbin/mtree |grep md libmd.so.7 => /lib/libmd.so.7 (0x352bee83e000) > - Then I went to setup a poudriere jail on this now 15.0-CURRENT; this > ended up with an error about libmd.so.6 missing; see the other thread > about this issue here in this list; one hint was 'rm -f /usr/obj' and > rebuild world again; ofc this rebuild was now done on 15.0-CURRENT > - the result of this buildworld gives now the issue with the missing libmd.so.7 What happens if you remove tmp/legacy in /usr/obj/... and run 'make buildworld' again? Can you show 'ls -l' output for mtree and sort in /usr/[s]bin and ...tmp/legacy?