From nobody Sat Feb 11 16:23:57 2023 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PDbXC0tmmz3pJmw for ; Sat, 11 Feb 2023 16:24:11 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PDbXB62Lcz49bP for ; Sat, 11 Feb 2023 16:24:10 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x52f.google.com with SMTP id r3so7805257edq.13 for ; Sat, 11 Feb 2023 08:24:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=IKBVV3l7NkOPe6+BI+x3JMArWxwsQmfpReg0GM3QUYk=; b=kUrKAeZG/RW1UJoPZYe4NHSsQKlaBn82/BeZYWwvynS721DUwjHRV7G19Vo45GETYh 9Tqm5yxYVWxjSEaH0Y8YeacnnM2gC6m8+QD4xV8v3/dmuRuYconXqS2QyH2oy5831SiG qrmTWa0QDgqFlQacHWcPgF7+XKU7GmVzqqXMF3JfWoH1GbriObsitYy3QKpKCtJiMXEp 2SgOfz5mJtXyQcH340k58wwQKGEkMptejsGjzQNXel3KEeeRC2PG5y9taR+dRbNQ/iD0 WznWYbtbohk75genWRAOFlE5yfa7S4UKsphzlOoS7oYLUj5QBP+PVXfluOSfs7MbsF7j xSSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IKBVV3l7NkOPe6+BI+x3JMArWxwsQmfpReg0GM3QUYk=; b=SquWlR3te4sVlOFKh7MokWys3c96KuLTlarJo2inT3ZZWCERd5lwWe8zKEcgue9fqc zIq6AaRPeIIuVKgsybSoqKM3NgU+tpz3Wbf2npbII6fvCW12TMlD+ABYgUlJbQQkx/40 C5S0gAuZsbQ+nuVdUUm7E0qYdb4LgFTKpDzKn9rtnzLoDp3SEP2qNmE1QfqaTzPb158j 8lUl8JBjB/vnlkvcxlnBe0gBCnnKwEEP/ipXye8i/5395zW1TQ9h33KMf/NKlES/Gmwk demPs6u2WficN6Upt3uzI1QRlqqT6el1ejz5AxKjIouyn6gVmjLTmpi1qcbqz5qm1IMw AbNQ== X-Gm-Message-State: AO0yUKXTotqikhz5Dfw1KZd5fk/gITTg7OC886eVtOXJ3HjLpjOhkUlQ QSxFTB1tC7OtUpk+s2z8gwmcjfV8PmS/ZPRPwnAEku7Gy6flPA== X-Google-Smtp-Source: AK7set+8QjExoHbmI5se7RhQWISkvLNB4rOH7jFGIg46EagIQOF2OqZbB/A5+WsALxG7bZegJNqMHiwsMY0LfrhHVu0= X-Received: by 2002:a05:6402:2420:b0:4ab:1f1b:95a1 with SMTP id t32-20020a056402242000b004ab1f1b95a1mr2911243eda.0.1676132648927; Sat, 11 Feb 2023 08:24:08 -0800 (PST) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Warner Losh Date: Sat, 11 Feb 2023 09:23:57 -0700 Message-ID: Subject: Re: devel/freebsd-gcc12 based aarch64 nono-debug buildworld buildkernel: a Failure notice at/for stand/kboot/loader.kboot To: Mark Millard Cc: freebsd-current Content-Type: multipart/alternative; boundary="00000000000022d3ee05f46f0b90" X-Rspamd-Queue-Id: 4PDbXB62Lcz49bP X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --00000000000022d3ee05f46f0b90 Content-Type: text/plain; charset="UTF-8" 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 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 > > > --00000000000022d3ee05f46f0b90 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've never built kboot with binutils, just clang. Look= s 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.

<= /div>
Warner

On Fri, Feb 10, 2023 at 8:42 PM Mark Millard <marklmi@yahoo.com> wrote:
=
self hosted aarch64 Non-d= ebug 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=3D/usr/local/libexec/gcc/aarch64-unknow
n-freebsd14.0/12.1.0/lto-wrapper -plugin-opt=3D-fresolution=3D/tmp//cc75dLg= J.res --sysroot=3D/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/aar= ch64-unknown-freebsd14.0/12.1.0 -L/usr/obj/BUILDs/main-CA72-nodbg-gccxtc/us= r/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 hos= tfs.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/a= rm64.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
=C2=A0 Supported emulations:
=C2=A0 =C2=A0aarch64fbsd
=C2=A0 =C2=A0aarch64fbsdb
=C2=A0 =C2=A0aarch64elf
/usr/local/bin/aarch64-unknown-freebsd14.0-ld: target elf64-aarch64 not fou= nd
collect2: error: ld returned 1 exit status
. . .
*** [loader.kboot] Error code 1

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= /arm64.aarch64/stand/kboot/loader.kboot.meta'
.MAKE.LEVEL=3D'4'
MAKEFILE=3D''
. . .


(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


--00000000000022d3ee05f46f0b90--