Re: install error during installworld

From: Gordon Bergling <gbe_at_FreeBSD.org>
Date: Thu, 26 Sep 2024 10:41:12 UTC
Hi Dimitry,

On Wed, Sep 25, 2024 at 12:54:55PM +0200, Dimitry Andric wrote:
> 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?

/usr/bin/ld points to ld.lld and can be invoked.

> > 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 ?

Contents as follows:
-------------------------------------------------------------------------------
.info Using cached toolchain metadata from build at bastion.ttyv0.de on Thu Sep 26 12:32:16 CEST 2024
_LOADED_TOOLCHAIN_METADATA=t
COMPILER_VERSION=180106
X_COMPILER_VERSION=180106
COMPILER_TYPE=clang
X_COMPILER_TYPE=clang
COMPILER_FEATURES=c++11 c++14 c++17 c++20 init-all retpoline compressed-debug fileprefixmap aarch64-sha512
X_COMPILER_FEATURES=c++11 c++14 c++17 c++20 init-all retpoline compressed-debug fileprefixmap aarch64-sha512
COMPILER_FREEBSD_VERSION=1500000
X_COMPILER_FREEBSD_VERSION=1500000
COMPILER_RESOURCE_DIR=/build/storage/freebsd/src/current/amd64.amd64/tmp/usr/lib/clang/18
X_COMPILER_RESOURCE_DIR=/build/storage/freebsd/src/current/amd64.amd64/tmp/usr/lib/clang/18
LINKER_VERSION=180106
X_LINKER_VERSION=180106
LINKER_FEATURES= build-id ifunc retpoline ifunc-noplt bti-report
X_LINKER_FEATURES= build-id ifunc retpoline ifunc-noplt bti-report
LINKER_TYPE=lld
X_LINKER_TYPE=lld
LINKER_FREEBSD_VERSION=1500001
X_LINKER_FREEBSD_VERSION=1500001
.export COMPILER_VERSION  COMPILER_TYPE  COMPILER_FEATURES  COMPILER_FREEBSD_VERSION  COMPILER_RESOURCE_DIR  LINKER_VERSION  LINKER_FEATURES  LINKER_TYPE  LINKER_FREEBSD_VERSION
.export X_COMPILER_VERSION X_COMPILER_TYPE X_COMPILER_FEATURES X_COMPILER_FREEBSD_VERSION X_COMPILER_RESOURCE_DIR X_LINKER_VERSION X_LINKER_FEATURES X_LINKER_TYPE X_LINKER_FREEBSD_VERSION
-------------------------------------------------------------------------------

I try a local build for now and hopes that this fixes lates remote builds.

--Gordon