Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Feb 2023 09:23:57 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        Mark Millard <marklmi@yahoo.com>
Cc:        freebsd-current <freebsd-current@freebsd.org>
Subject:   Re: devel/freebsd-gcc12 based aarch64 nono-debug buildworld buildkernel: a Failure notice at/for stand/kboot/loader.kboot
Message-ID:  <CANCZdfoWRXDedZcv1cqdkHTT8m3sZjT=pfhJ-usizjekQnAjPw@mail.gmail.com>
In-Reply-To: <FDE03895-DAFC-4EDA-901D-CCB90D192548@yahoo.com>
References:  <D14D0F97-ECBA-4964-8702-F58670872458@yahoo.com> <FDE03895-DAFC-4EDA-901D-CCB90D192548@yahoo.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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
>
>
>

[-- Attachment #2 --]
<div dir="ltr">I&#39;ve never built kboot with binutils, just clang. Looks like the names of the targets are annoyingly different.<div><br></div><div>I have 0 time to look at this, however, since gcc12 isn&#39;t officially supported. Best I can do is not build loader.kboot for gcc.</div><div><br></div><div>Warner</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 10, 2023 at 8:42 PM Mark Millard &lt;<a href="mailto:marklmi@yahoo.com">marklmi@yahoo.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">self hosted aarch64 Non-debug buildworld Failure notice (from the .meta file):<br>
<br>
. . .<br>
/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<br>
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.<br>
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<br>
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<br>
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<br>
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<br>
in-CA72-nodbg-gccxtc/usr/main-src/arm64.aarch64/stand/libsa/libsa.a -T /usr/main-src/stand/kboot/arch/aarch64/ldscript.aarch64<br>
GNU ld (GNU Binutils) 2.39<br>
  Supported emulations:<br>
   aarch64fbsd<br>
   aarch64fbsdb<br>
   aarch64elf<br>
/usr/local/bin/aarch64-unknown-freebsd14.0-ld: target elf64-aarch64 not found<br>
collect2: error: ld returned 1 exit status<br>
. . .<br>
*** [loader.kboot] Error code 1<br>
<br>
make[4]: stopped in /usr/main-src/stand/kboot<br>
.ERROR_TARGET=&#39;loader.kboot&#39;<br>
.ERROR_META_FILE=&#39;/usr/obj/BUILDs/main-CA72-nodbg-gccxtc/usr/main-src/arm64.aarch64/stand/kboot/loader.kboot.meta&#39;<br>
.MAKE.LEVEL=&#39;4&#39;<br>
MAKEFILE=&#39;&#39;<br>
. . .<br>
<br>
<br>
(It will be some time before the debug build would get as far<br>
as the above.)<br>
<br>
<br>
===<br>
Mark Millard<br>
marklmi at <a href="http://yahoo.com" rel="noreferrer" target="_blank">yahoo.com</a><br>
<br>
<br>
</blockquote></div>
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfoWRXDedZcv1cqdkHTT8m3sZjT=pfhJ-usizjekQnAjPw>