Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Sep 2023 18:16:47 +0200
From:      Dimitry Andric <dim@FreeBSD.org>
To:        KIRIYAMA Kazuhiko <kiri@truefc.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: make installworld filed with "Required library libdialog.so.9 not found"
Message-ID:  <3800197D-8E4B-4677-8CBF-D8CC4C1143FB@FreeBSD.org>
In-Reply-To: <202309201302.38KD2eTp061072@kx.truefc.org>
References:  <202309200247.38K2lSnT044896@kx.truefc.org> <25BC05CE-8A33-4685-8490-CC4970FB8FDA@FreeBSD.org> <202309201302.38KD2eTp061072@kx.truefc.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--Apple-Mail=_2B15402D-4F95-410C-A0FF-C1B18A956782
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii

On 20 Sep 2023, at 15:02, KIRIYAMA Kazuhiko <kiri@truefc.org> wrote:
>=20
> On Wed, 20 Sep 2023 15:56:28 +0900,
> Dimitry Andric wrote:
...
> Fortunately old binaries exist and `cp
> /past_created/usr/src/amd64.amd64/tmp/usr/lib/libdialog.so.9
> /usr/lib' then go forward but stopped at stand/i386/boot2:
>=20
> =3D=3D=3D> stand/i386/boot2 (install)
> objcopy -S -O binary boot1.out boot1
> objcopy -S -O binary boot2.out boot2.bin
> btxld -v -E 0x2000 -f bin -b =
/usr/obj/usr/src/amd64.amd64/stand/i386/btx/btx/btx -l boot2.ldr  -o =
boot2.ld -P 1 boot2.bin
> make[6]: exec(btxld) failed (No such file or directory)
> *** Error code 1
>=20
> Stop.
> make[6]: stopped in /usr/src/stand/i386/boot2

As far as I remember, this typically happens when some sources are =
touched, and it is attempting to rebuild the boot loader binaries at =
install time. This should normally not happen, as everything has been =
built during buildworld already. But this problem sometimes occurs when =
system clocks are out of sync, or when files in the object tree get =
their dates modified for other reasons.

In this particular case it is trying to re-link btx using btxld, but =
since that tool is only available during buildworld, it cannot find it. =
I don't know of a good way to fix this, except maybe to run a buildworld =
with WITHOUT_CLEAN, e.g.:

make -DWITHOUT_CLEAN -j <num_jobs> buildworld

That should rebuild all things that need rebuilding without doing =
excessive cleaning, and from there you can attempt to installworld =
again.

-Dimitry


--Apple-Mail=_2B15402D-4F95-410C-A0FF-C1B18A956782
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.2

iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCZQsa8AAKCRCwXqMKLiCW
o+zdAKCS9zUffXxVepN2ONTrEVWr86ECVACeLjMXoqGIu0K7Hb0pZaG6onn2gXw=
=IqOz
-----END PGP SIGNATURE-----

--Apple-Mail=_2B15402D-4F95-410C-A0FF-C1B18A956782--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3800197D-8E4B-4677-8CBF-D8CC4C1143FB>