Re: Cross compiling Kernel with all options enabled and compiler wrapper

RVP <[email protected]> Fri, 29 Aug 2025 06:33:16 +0000 (UTC)
Newsgroups gmane.os.netbsd.devel.toolchain
Message-ID <[email protected]>
On Mon, 25 Aug 2025, Nando Schenk wrote:

> I ran the command manually with -v to see the linker error:
> /home/nando/Documents/Schule/Maturitaetsarbeit/neu/netbsd-src-ftp/src/obj/tooldir.Linux-6.16.3-arch1-1-x86_64/bin/x86_64--netbsd-ld: 
> cannot find 
> /home/nando/Documents/Schule/Maturitaetsarbeit/neu/netbsd-src-ftp/src/obj/tooldir.Linux-6.16.3-arch1-1-x86_64/lib/clang/13.0.0/lib/netbsd/libclang_rt.ubsan_standalone-x86_64.a: 
> No such file or directory
>
> I can't figure out how to configure the build system to compile this file, 
>

Build userspace first, _then_ the kernel as the Guide recommends.

> and copying a precompiled one (from the Arch Linux package manager) didn't 
> work either.
>

It should be there in the LLVM-built sets:

https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD-llvm/latest/amd64/binary/

-RVP