Re: install error during installworld

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Wed, 25 Sep 2024 10:54:55 UTC
On 25 Sep 2024, at 12:32, Gordon Bergling <gbe@freebsd.org> wrote:
> 
> I have a few Hyper-V based virtual machines, one acts as a build machine
> and one as -CURRENT development machine / environment.
> 
> The host crashed while I was executing an installworld installkernel make
> target.
> 
> When trying to resume the installworld part I get the following error
> message since then:
> -------------------------------------------------------------------------------
> make: "/storage/freebsd/src/current/share/mk/bsd.linker.mk" line 95: warning:
> Unknown linker from LD=ld: , defaulting to bfd
> find: : No such file or directory

This is not good, my guess is that your linker was not found, therefore
it printed something like "ld: not found" which then ended up being set
in the LD make variable. Then bsd.linker.mk concludes that "ld:" is not
a valid linker.

Does /usr/bin/ld exist? Or /usr/local/bin/ld?



> make[1]: warning: /storage/freebsd/src/current/: Read-only file system.
> make[1]: "/build/storage/freebsd/src/current/amd64.amd64/toolchain-metadata.mk"
> line 1: Using cached toolchain metadata from build at bastion.ttyv0.de on Wed Sep 25 12:20:39 CEST 2024

What is the contents of
/build/storage/freebsd/src/current/amd64.amd64/toolchain-metadata.mk ?

-Dimitry