Re: devel/freebsd-gcc12 based aarch64 nono-debug buildworld buildkernel: a Failure notice at/for stand/kboot/loader.kboot

From: Warner Losh <imp_at_bsdimp.com>
Date: Sat, 11 Feb 2023 16:23:57 UTC
I've never built kboot with binutils, just clang. Looks like the names of
the targets are annoyingly different.

I have 0 time to look at this, however, since gcc12 isn't officially
supported. Best I can do is not build loader.kboot for gcc.

Warner

On Fri, Feb 10, 2023 at 8:42 PM Mark Millard <marklmi@yahoo.com> wrote:

> self hosted aarch64 Non-debug buildworld Failure notice (from the .meta
> file):
>
> . . .
> /usr/local/libexec/gcc/aarch64-unknown-freebsd14.0/12.1.0/collect2 -plugin
> /usr/local/libexec/gcc/aarch64-unknown-freebsd14.0/12.1.0/liblto_plugin.so
> -plugin-opt=/usr/local/libexec/gcc/aarch64-unknow
> n-freebsd14.0/12.1.0/lto-wrapper
> -plugin-opt=-fresolution=/tmp//cc75dLgJ.res
> --sysroot=/usr/obj/BUILDs/main-CA72-nodbg-gccxtc/usr/main-src/arm64.aarch64/tmp
> -V -Bstatic -X -maarch64fbsd -EL -o loader.
> kboot -L/usr/local/aarch64-unknown-freebsd14.0/bin
> -L/usr/local/lib/gcc/aarch64-unknown-freebsd14.0/12.1.0
> -L/usr/obj/BUILDs/main-CA72-nodbg-gccxtc/usr/main-src/arm64.aarch64/tmp/usr/lib
> -zrelro booti
> nfo.o conf.o crt1.o gfx_fb_stub.o host_syscalls.o hostcons.o hostdisk.o
> hostfs.o init.o kbootfdt.o main.o seg.o termios.o util.o vers.o
> host_syscall.o tramp.o exec.o load_addr.o fdt_arch.o cache.o boo
> t.o commands.o console.o devopen.o interp.o interp_backslash.o
> interp_parse.o ls.o misc.o modinfo.o module.o nvstore.o pnglite.o tslog.o
> load_elf64.o reloc_elf64.o disk.o part.o vdisk.o interp_lua.o z
> fs_cmd.o
> /usr/obj/BUILDs/main-CA72-nodbg-gccxtc/usr/main-src/arm64.aarch64/stand/liblua/liblua.a
> /usr/obj/BUILDs/main-CA72-nodbg-gccxtc/usr/main-src/arm64.aarch64/stand/fdt/libfdt.a
> /usr/obj/BUILDs/ma
> in-CA72-nodbg-gccxtc/usr/main-src/arm64.aarch64/stand/libsa/libsa.a -T
> /usr/main-src/stand/kboot/arch/aarch64/ldscript.aarch64
> GNU ld (GNU Binutils) 2.39
>   Supported emulations:
>    aarch64fbsd
>    aarch64fbsdb
>    aarch64elf
> /usr/local/bin/aarch64-unknown-freebsd14.0-ld: target elf64-aarch64 not
> found
> collect2: error: ld returned 1 exit status
> . . .
> *** [loader.kboot] Error code 1
>
> make[4]: stopped in /usr/main-src/stand/kboot
> .ERROR_TARGET='loader.kboot'
>
> .ERROR_META_FILE='/usr/obj/BUILDs/main-CA72-nodbg-gccxtc/usr/main-src/arm64.aarch64/stand/kboot/loader.kboot.meta'
> .MAKE.LEVEL='4'
> MAKEFILE=''
> . . .
>
>
> (It will be some time before the debug build would get as far
> as the above.)
>
>
> ===
> Mark Millard
> marklmi at yahoo.com
>
>
>