Date: Sat, 11 Feb 2023 10:09:40 -0800 From: Mark Millard <marklmi@yahoo.com> To: Warner Losh <imp@bsdimp.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: <8377D797-D453-4D90-89B4-5853DF0AF3E8@yahoo.com> In-Reply-To: <CANCZdfoWRXDedZcv1cqdkHTT8m3sZjT=pfhJ-usizjekQnAjPw@mail.gmail.com> References: <D14D0F97-ECBA-4964-8702-F58670872458@yahoo.com> <FDE03895-DAFC-4EDA-901D-CCB90D192548@yahoo.com> <CANCZdfoWRXDedZcv1cqdkHTT8m3sZjT=pfhJ-usizjekQnAjPw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Feb 11, 2023, at 08:23, Warner Losh <imp@bsdimp.com> wrote: > I've never built kboot with binutils, just clang. Looks like the names = of the targets are annoyingly different. >=20 > 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. >=20 > Warner Given that ci.freebsd.org <http://ci.freebsd.org/> was having some = recent "manages to build via gcc12" success for amd64, I was just exploring. (I'm not aware of any operational testing by anyone/anything.) I expect disabling various things for devel/gcc* based builds is reasonable. Last I managed to build and use FreeBSD based on a gcc* not part of FreeBSD's own materials was when I had access to old PowerMacs and clang was more of a problem for that context at the time. (I did clang experiments and machine code analysis at the time as well.) I was not really expecting to find that I could build and operate FreeBSD via my recent activity. But, some build issues can point to something unintended that someone might want to adjust for more general reasons, such as less likely to break in the future. I assume that this is part of why devel/gcc* ports exist. Otherwise: why have them? > 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): >=20 > . . . > /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=3D/usr/local/libexec/gcc/aarch64-unknow > n-freebsd14.0/12.1.0/lto-wrapper = -plugin-opt=3D-fresolution=3D/tmp//cc75dLgJ.res = --sysroot=3D/usr/obj/BUILDs/main-CA72-nodbg-gccxtc/usr/main-src/arm64.aarc= h64/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/us= r/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/li= blua/liblua.a = /usr/obj/BUILDs/main-CA72-nodbg-gccxtc/usr/main-src/arm64.aarch64/stand/fd= t/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 >=20 > make[4]: stopped in /usr/main-src/stand/kboot > .ERROR_TARGET=3D'loader.kboot' > = .ERROR_META_FILE=3D'/usr/obj/BUILDs/main-CA72-nodbg-gccxtc/usr/main-src/ar= m64.aarch64/stand/kboot/loader.kboot.meta' > .MAKE.LEVEL=3D'4' > MAKEFILE=3D'' > . . . >=20 >=20 > (It will be some time before the debug build would get as far > as the above.) =3D=3D=3D Mark Millard marklmi at yahoo.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8377D797-D453-4D90-89B4-5853DF0AF3E8>