Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jun 2019 16:23:57 -0700
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Mark Millard <marklmi@yahoo.com>, 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:  <a435d6ca-1d8f-bc92-99aa-0eea902ee167@FreeBSD.org>
In-Reply-To: <8B36A8AD-49F5-4B2B-856B-CD0162738DB7@yahoo.com>
References:  <8B36A8AD-49F5-4B2B-856B-CD0162738DB7@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--Dp6dc3Rk4vLvKLGEW2jzLuGz1wyDtXlNp
Content-Type: multipart/mixed; boundary="heqQFh21L6JhzQxOf1E0VnKSk9Q7Uo6Dv";
 protected-headers="v1"
From: Bryan Drewery <bdrewery@FreeBSD.org>
To: Mark Millard <marklmi@yahoo.com>,
 FreeBSD Toolchain <freebsd-toolchain@freebsd.org>
Message-ID: <a435d6ca-1d8f-bc92-99aa-0eea902ee167@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
References: <8B36A8AD-49F5-4B2B-856B-CD0162738DB7@yahoo.com>
In-Reply-To: <8B36A8AD-49F5-4B2B-856B-CD0162738DB7@yahoo.com>

--heqQFh21L6JhzQxOf1E0VnKSk9Q7Uo6Dv
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

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_cla=
ng/amd64.amd64/usr/src/amd64.amd64/tmp -B/usr/obj/amd64dbg_clang/amd64.am=
d64/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.a=
md64/stand/libsa -I/usr/src/stand/libsa -D_STANDALONE -I/usr/src/sys -Ddo=
uble=3Djagged-little-pill -Dfloat=3Dfloaty-mcfloatface -DLOADER_GELI_SUPP=
ORT -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. -DE=
FI_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-pointe=
r-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -W=
no-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-=
unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-addre=
ss-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parame=
ter -Wno-parentheses -Oz -Qunused-arguments ERROR-tried-to-rebuild-during=
-make-install  -nostdlib -Wl,-T/usr/src/stand/efi/loader/arch/amd64/ldscr=
ipt.amd64,-Bsymbolic,-znotext -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/libefi.a /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd=
64/stand/libsa/libsa.a
> /tmp/install.JSyxbO0g/sh: cc: not found

cc is purposely not found during install. The problem is that it is
trying to link during install. That's bad. It should have already done
that during the build. Some timestamp is wrong and caused a relink.

> *** 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/stan=
d/efi/boot1/boot1*
> -rw-r--r--  1 root  wheel    6228 Jun 18 14:59:12 2019 /usr/obj/amd64db=
g_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/boot1.o.meta
> -rw-r--r--  1 root  wheel   43344 Jun 18 14:59:12 2019 /usr/obj/amd64db=
g_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/boot1.o
> -rw-r--r--  1 root  wheel    2042 Jun 18 14:59:11 2019 /usr/obj/amd64db=
g_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/boot1.efifat.meta=

> -rw-r--r--  1 root  wheel  819200 Jun 18 14:59:11 2019 /usr/obj/amd64db=
g_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/boot1.efifat
> -rw-r--r--  1 root  wheel    1561 Jun 18 14:59:11 2019 /usr/obj/amd64db=
g_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/boot1.efi.meta
> -rwxr-xr-x  1 root  wheel   81920 Jun 18 14:59:11 2019 /usr/obj/amd64db=
g_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/boot1.efi
> -rw-r--r--  1 root  wheel     841 Jun 18 14:59:11 2019 /usr/obj/amd64db=
g_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/boot1.sym.meta
> -rwxr-xr-x  1 root  wheel  121416 Jun 18 14:59:11 2019 /usr/obj/amd64db=
g_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/boot1.sym
> -rw-r--r--  1 root  wheel     814 Jun 18 14:59:11 2019 /usr/obj/amd64db=
g_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/boot1.sym.debug.m=
eta
> -rwxr-xr-x  1 root  wheel  217408 Jun 18 14:59:11 2019 /usr/obj/amd64db=
g_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/boot1.sym.debug
> -rw-r--r--  1 root  wheel    3024 Jun 18 14:59:11 2019 /usr/obj/amd64db=
g_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/boot1.sym.full.me=
ta
> -rwxr-xr-x  1 root  wheel  325744 Jun 18 14:59:11 2019 /usr/obj/amd64db=
g_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/boot1/boot1.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/ef=
i/boot1/boot1.sym.full.meta
> # Meta data file /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd6=
4/stand/efi/boot1/boot1.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/amd6=
4.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/amd=
64.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_BO=
OT -I/usr/src/stand/common -fPIC -g -std=3Dgnu99 -Wsystem-headers -Wno-po=
inter-sign -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variabl=
e -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -=
Wno-unused-function -Wno-enum-conversion -Wno-unused-local-typedef -Wno-a=
ddress-of-packed-member -Wno-switch -Wno-switch-enum -Wno-knr-promoted-pa=
rameter -Wno-parentheses -Oz -Qunused-arguments  -nostdlib -Wl,-T/usr/src=
/stand/efi/loader/arch/amd64/ldscript.amd64,-Bsymbolic,-znotext -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/amd6=
4.amd64/usr/src/amd64.amd64/stand/efi/libefi/libefi.a /usr/obj/amd64dbg_c=
lang/amd64.amd64/usr/src/amd64.amd64/stand/libsa/libsa.a
> CWD /usr/obj/amd64dbg_clang/amd64.amd64/usr/src/amd64.amd64/stand/efi/b=
oot1
> 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)
>=20


--=20
Regards,
Bryan Drewery


--heqQFh21L6JhzQxOf1E0VnKSk9Q7Uo6Dv--

--Dp6dc3Rk4vLvKLGEW2jzLuGz1wyDtXlNp
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQGTBAEBCgB9FiEE+Rc8ssOq6npcih8JNddxu25Gl88FAl0Jco1fFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEY5
MTczQ0IyQzNBQUVBN0E1QzhBMUYwOTM1RDc3MUJCNkU0Njk3Q0YACgkQNddxu25G
l8+CGQf9H4ivS8anmknCN6joncJ2/+GpRWFqZDcC8m2aFBAyvsNuqnqB77+xhjB/
UrpXAtPnCDl3v+fAYC9jFbWtInTsbH2tU3u5ZE8QXp2CQ23jvXQtkt3CDbrGSJDE
AeciDq6q3l97AMkh8G2xQzi3fMLL4gq3VJZi5RjTvldivaxGN7k0Gi+DSkGGjkKB
7+zOeBQ/qa3kHgz2/6zkwaMN6t5UgEhCiTD0VjDjU8pruWCbSQ6BSz858CKa6Vvm
t7sXVFC84MLbOhZyL770xMQx9zOKI46X1I/2U9GNtjgFcrXyRLJEYvOHtmF3GagZ
mTQ93s7xL6gH95EUKyOrmYMj8zC4pA==
=RgfV
-----END PGP SIGNATURE-----

--Dp6dc3Rk4vLvKLGEW2jzLuGz1wyDtXlNp--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a435d6ca-1d8f-bc92-99aa-0eea902ee167>