From nobody Wed Sep 20 18:14:02 2023 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 4RrRW93zgjz4v0Fs for ; Wed, 20 Sep 2023 18:14:13 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from www121.sakura.ne.jp (www121.sakura.ne.jp [153.125.133.21]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RrRW84yM2z3MvD; Wed, 20 Sep 2023 18:14:12 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Authentication-Results: mx1.freebsd.org; none Received: from kalamity.joker.local (123-1-80-101.area1b.commufa.jp [123.1.80.101]) (authenticated bits=0) by www121.sakura.ne.jp (8.16.1/8.16.1/[SAKURA-WEB]/20201212) with ESMTPA id 38KIE2cD011049; Thu, 21 Sep 2023 03:14:02 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Thu, 21 Sep 2023 03:14:02 +0900 From: Tomoaki AOKI To: Dimitry Andric Cc: KIRIYAMA Kazuhiko , freebsd-current@freebsd.org Subject: Re: make installworld filed with "Required library libdialog.so.9 not found" Message-Id: <20230921031402.f653de5c1754be4166d1df82@dec.sakura.ne.jp> In-Reply-To: <3800197D-8E4B-4677-8CBF-D8CC4C1143FB@FreeBSD.org> References: <202309200247.38K2lSnT044896@kx.truefc.org> <25BC05CE-8A33-4685-8490-CC4970FB8FDA@FreeBSD.org> <202309201302.38KD2eTp061072@kx.truefc.org> <3800197D-8E4B-4677-8CBF-D8CC4C1143FB@FreeBSD.org> Organization: Junchoon corps X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) 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=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7684, ipnet:153.125.128.0/18, country:JP] X-Rspamd-Queue-Id: 4RrRW84yM2z3MvD On Wed, 20 Sep 2023 18:16:47 +0200 Dimitry Andric wrote: > On 20 Sep 2023, at 15:02, KIRIYAMA Kazuhiko wrote: > > > > 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: > > > > ===> 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 > > > > 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. IIRC, this happenes on the scenario below. buildword buildkernel modify something related with only kernel or kernel modules buildkernel aggain installkernel reboot etcpudate -p installworld, then, bang! start rebuiding boot codes and loaders. > > 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 buildworld > > That should rebuild all things that need rebuilding without doing excessive cleaning, and from there you can attempt to installworld again. > > -Dimitry -- Tomoaki AOKI