Date: Tue, 18 Jun 2019 16:43:18 -0700 From: Mark Millard <marklmi@yahoo.com> To: Bryan Drewery <bdrewery@FreeBSD.org> Cc: FreeBSD Toolchain <freebsd-toolchain@freebsd.org> Subject: Re: head -r347549 installworld targeting amd64 after debug build: "stand/efi/boot1 (install)" tried to cc ... -o boot1.sym.full ... and got cc: not found Message-ID: <078C135A-4FC0-4155-83B2-546C5BEDF155@yahoo.com> In-Reply-To: <a435d6ca-1d8f-bc92-99aa-0eea902ee167@FreeBSD.org> References: <8B36A8AD-49F5-4B2B-856B-CD0162738DB7@yahoo.com> <a435d6ca-1d8f-bc92-99aa-0eea902ee167@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2019-Jun-18, at 16:23, Bryan Drewery <bdrewery at FreeBSD.org> wrote: > On 6/18/2019 3:55 PM, Mark Millard wrote: >> [I'm back at -r347549 because of other on-going investigations >> that started back then.] >>=20 >> I normally do non-debug -jN builds but had a reason to make >> a debug build for amd64 to be installed and booted (head >> -r347549 ). But it is failing with the below. The >> buildworld did not report and issues in its typescript log >> as far as I found when I looked. >>=20 >> =3D=3D=3D> stand/efi/boot1 (install) >> installing DIRS BINDIR >> install -d -m 0755 -o root -g wheel /boot >> cc -target x86_64-unknown-freebsd13.0 = --sysroot=3D/usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/tmp = -B/usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/bin = -O2 -pipe -Wformat -fshort-wchar -mno-red-zone -nostdinc = -I/usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/libsa = -I/usr/src/stand/libsa -D_STANDALONE -I/usr/src/sys = -Ddouble=3Djagged-little-pill -Dfloat=3Dfloaty-mcfloatface = -DLOADER_GELI_SUPPORT -I/usr/src/stand/libsa/geli -DLOADER_DISK_SUPPORT = -ffreestanding -mno-mmx -mno-sse -mno-avx -mno-avx2 -msoft-float -fPIC = -mno-red-zone -I. -DEFI_BOOT1 -DEFI_ZFS_BOOT = -I/usr/src/stand/efi/include -I/usr/src/stand/efi/include/amd64 = -I/usr/src/sys/contrib/dev/acpica/include -DEFI_UFS_BOOT = -I/usr/src/stand/common -fPIC -g -std=3Dgnu99 -Wsystem-headers = -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int = -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value = -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion = -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch = -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -Oz = -Qunused-arguments ERROR-tried-to-rebuild-during-make-install -nostdlib = -Wl,-T/usr/src/stand/efi/loader/arch/amd64/ldscript.amd64,-Bsymbolic,-znot= ext -shared -Wl,-znocombreloc -Wl,--no-threads -o boot1.sym.full boot1.o = self_reloc.o start.o ufs_module.o devpath.o zfs_module.o = /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/libefi/l= ibefi.a = /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/libsa/libsa.= a >> /tmp/install.JSyxbO0g/sh: cc: not found >=20 > cc is purposely not found during install. Yep. I expected that. > The problem is that it is > trying to link during install. That's bad. It should have already done > that during the build. It did. > Some timestamp is wrong and caused a relink. The retry of building from scratch and installing (via DESTDIR back to the messed up partition) did not have the problem. It suggests a race. (The alternate build context happens to have been from the restore of a dump -> restore today of the partition that later had world messed up by the install. Same machine. Both were under Hyper-V, and so on. No likely significant differences.) >> *** Error code 127 >>=20 >> Stop. >> make[6]: stopped in /usr/src/stand/efi/boot1 >> *** Error code 1 >>=20 >> Stop. >> make[5]: stopped in /usr/src/stand/efi >> *** Error code 1 >>=20 >> Stop. >> make[4]: stopped in /usr/src/stand >> *** Error code 1 >>=20 >> Stop. >> make[3]: stopped in /usr/src >> *** Error code 1 >>=20 >> Stop. >> make[2]: stopped in /usr/src >> *** Error code 1 >>=20 >> Stop. >> make[1]: stopped in /usr/src >> *** Error code 1 >>=20 >> Stop. >> make: stopped in /usr/src >>=20 >> Script done, output file is = /root/sys_typescripts/typescript_make_amd64_debug_clang-amd64-host-2019-06= -18:15:16:18 >>=20 >>=20 >> The buildworld produced a stand/efi/boot1/boot1.o that apparently >> finished after stand/efi/boot1/boot1.sym.full and so lead to the >> installation make trying a rebuild, note the 14:59:12 for >> boot1.o.meta vs. the 14:59:11 for boot1.sym.full.meta as >> an example and the list order is via -lTdt : >>=20 >> # ls -lTdt = /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/bo= ot1* >> -rw-r--r-- 1 root wheel 6228 Jun 18 14:59:12 2019 = /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/bo= ot1.o.meta >> -rw-r--r-- 1 root wheel 43344 Jun 18 14:59:12 2019 = /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/bo= ot1.o >> -rw-r--r-- 1 root wheel 2042 Jun 18 14:59:11 2019 = /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/bo= ot1.efifat.meta >> -rw-r--r-- 1 root wheel 819200 Jun 18 14:59:11 2019 = /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/bo= ot1.efifat >> -rw-r--r-- 1 root wheel 1561 Jun 18 14:59:11 2019 = /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/bo= ot1.efi.meta >> -rwxr-xr-x 1 root wheel 81920 Jun 18 14:59:11 2019 = /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/bo= ot1.efi >> -rw-r--r-- 1 root wheel 841 Jun 18 14:59:11 2019 = /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/bo= ot1.sym.meta >> -rwxr-xr-x 1 root wheel 121416 Jun 18 14:59:11 2019 = /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/bo= ot1.sym >> -rw-r--r-- 1 root wheel 814 Jun 18 14:59:11 2019 = /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/bo= ot1.sym.debug.meta >> -rwxr-xr-x 1 root wheel 217408 Jun 18 14:59:11 2019 = /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/bo= ot1.sym.debug >> -rw-r--r-- 1 root wheel 3024 Jun 18 14:59:11 2019 = /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/bo= ot1.sym.full.meta >> -rwxr-xr-x 1 root wheel 325744 Jun 18 14:59:11 2019 = /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/bo= ot1.sym.full >>=20 >> (Hmm. I missed part of a line for that last. Too late >> now.) >>=20 >> The boot1.sym.full.meta shows: >>=20 >> # more = /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/bo= ot1.sym.full.meta >> # Meta data file = /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/bo= ot1.sym.full.meta >> CMD cc -target x86_64-unknown-freebsd13.0 = --sysroot=3D/usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/tmp = -B/usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/tmp/usr/bin = -O2 -pipe -Wformat -fshort-wchar -mno-red-zone -nostdinc = -I/usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/libsa = -I/usr/src/stand/libsa -D_STANDALONE -I/usr/src/sys = -Ddouble=3Djagged-little-pill -Dfloat=3Dfloaty-mcfloatface = -DLOADER_GELI_SUPPORT -I/usr/src/stand/libsa/geli -DLOADER_DISK_SUPPORT = -ffreestanding -mno-mmx -mno-sse -mno-avx -mno-avx2 -msoft-float -fPIC = -mno-red-zone -I. -DEFI_BOOT1 -DEFI_ZFS_BOOT = -I/usr/src/stand/efi/include -I/usr/src/stand/efi/include/amd64 = -I/usr/src/sys/contrib/dev/acpica/include -DEFI_UFS_BOOT = -I/usr/src/stand/common -fPIC -g -std=3Dgnu99 -Wsystem-headers = -Wno-pointer-sign -Wno-empty-body -Wno-string-plus-int = -Wno-unused-const-variable -Wno-tautological-compare -Wno-unused-value = -Wno-parentheses-equality -Wno-unused-function -Wno-enum-conversion = -Wno-unused-local-typedef -Wno-address-of-packed-member -Wno-switch = -Wno-switch-enum -Wno-knr-promoted-parameter -Wno-parentheses -Oz = -Qunused-arguments -nostdlib = -Wl,-T/usr/src/stand/efi/loader/arch/amd64/ldscript.amd64,-Bsymbolic,-znot= ext -shared -Wl,-znocombreloc -Wl,--no-threads -o boot1.sym.full boot1.o = self_reloc.o start.o ufs_module.o devpath.o zfs_module.o = /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/libefi/l= ibefi.a = /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/libsa/libsa.= a >> CWD = /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1 >> TARGET boot1.sym.full >> -- command output -- >>=20 >> -- filemon acquired metadata -- >> . . . >>=20 >>=20 >>=20 >> This bad install hosed the build environment and I'm going to >> build from a different context and then install from there. >> We will see if the other -r347549 context has the same sort >> of problem. >=20 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?078C135A-4FC0-4155-83B2-546C5BEDF155>