Date: Mon, 14 May 2018 17:04:54 -0700 From: Bryan Drewery <bdrewery@FreeBSD.org> To: Mark Millard <marklmi26-fbsd@yahoo.com> Cc: FreeBSD Toolchain <freebsd-toolchain@freebsd.org>, FreeBSD PowerPC ML <freebsd-ppc@freebsd.org> Subject: Re: Still true at -r333575 : head -r320458 (e.g.) amd64 -> powerpc64 cross build's install32 during installworld: /usr/src/share/mk/bsd.linker.mk tried to use "head" when PATH provided no access (head is missing) Message-ID: <9086ff35-009b-c965-4970-3f8ad4fe6e6b@FreeBSD.org> In-Reply-To: <84A73CB0-CBCB-4EE4-A4B7-B8B2F25EECB5@yahoo.com> References: <0E42D991-D350-4DC1-A683-CEA506167520@dsl-only.net> <AF2592BC-2409-4B73-A8A8-50C999957231@dsl-only.net> <d6971b8c-06a3-afdc-a6b0-788dbe0890f2@FreeBSD.org> <8F22B659-90DE-42E5-B4C6-75C9B9626462@dsl-only.net> <8EB87EA5-0ED6-4F46-80FC-1A0DB29CF7D6@dsl-only.net> <84A73CB0-CBCB-4EE4-A4B7-B8B2F25EECB5@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) --xUnsQmDdAaQK1ZcNG661OOtPY8XP2g7nN Content-Type: multipart/mixed; boundary="1ETGVcUMnAsaAkxy3gD8mKaG2yODbb5zi"; protected-headers="v1" From: Bryan Drewery <bdrewery@FreeBSD.org> To: Mark Millard <marklmi26-fbsd@yahoo.com> Cc: FreeBSD Toolchain <freebsd-toolchain@freebsd.org>, FreeBSD PowerPC ML <freebsd-ppc@freebsd.org> Message-ID: <9086ff35-009b-c965-4970-3f8ad4fe6e6b@FreeBSD.org> Subject: Re: Still true at -r333575 : head -r320458 (e.g.) amd64 -> powerpc64 cross build's install32 during installworld: /usr/src/share/mk/bsd.linker.mk tried to use "head" when PATH provided no access (head is missing) References: <0E42D991-D350-4DC1-A683-CEA506167520@dsl-only.net> <AF2592BC-2409-4B73-A8A8-50C999957231@dsl-only.net> <d6971b8c-06a3-afdc-a6b0-788dbe0890f2@FreeBSD.org> <8F22B659-90DE-42E5-B4C6-75C9B9626462@dsl-only.net> <8EB87EA5-0ED6-4F46-80FC-1A0DB29CF7D6@dsl-only.net> <84A73CB0-CBCB-4EE4-A4B7-B8B2F25EECB5@yahoo.com> In-Reply-To: <84A73CB0-CBCB-4EE4-A4B7-B8B2F25EECB5@yahoo.com> --1ETGVcUMnAsaAkxy3gD8mKaG2yODbb5zi Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 5/13/2018 1:13 AM, Mark Millard wrote: > Retrying the amd64 -> powerpc64 cross build via a powerpc64-gcc > this time, combined with WITH_LIB32=3D , got: "sh: head: not found" and= its > later consequences, like before for installworld (to a directory on the= > amd64 host context). This is from the /usr/src/share/mk/bsd.linker.mk l= ine > that results in: >=20 > (/usr/local/powerpc64-freebsd/bin/ld --version || echo none) | head -n = 1 >=20 > but head is not available by default at the time (lib32 context). (I ma= ke > head be available via using LOCAL_ITOOLS=3Dhead in order to work around= the > issue.) >=20 > An example of the messages (without having LOCAL_ITOOLS=3Dhead) is: >=20 > --- _installlinks --- > install -l s ../../libexec/ld-elf32.so.1 /usr/obj/DESTDIRs/xtcgcc-powe= rpc64-installworld/usr/libexec/ld-elf32.so.1 > cd /usr/src/usr.bin/ldd; PROG=3Dldd32 . . . > . . . > . . . MAKEOBJDIRPREFIX=3D MK_MAN=3Dno MK_HTML=3Dno MK_TOOLCHAIN=3Dno = -DLIBRARIES_ONLY install > sh: head: not found > make[4]: "/usr/src/share/mk/bsd.linker.mk" line 47: warning: "(/usr/loc= al/powerpc64-unknown-freebsd12.0/bin/ld --version || echo none) | head -n= 1" returned non-zero status > make[4]: "/usr/src/share/mk/bsd.linker.mk" line 58: warning: Unknown li= nker from XLD=3D/usr/local/powerpc64-unknown-freebsd12.0/bin/ld: , defaul= ting to bfd >=20 >=20 > The two "make[4]" lines are consequences of the prior "sh: head: not fo= und" > issue that leaded to a "non-zero status" independent of the prior "--ve= rsion" > and "echo none" material. It then leads to assuming bfd. >=20 > Using LOCAL_ITOOLS=3Dhead makes head available and so then the status v= alue > check works. >=20 Sure but this command being executed never should be executing during install; Adding 'head' as a tool isn't the right fix. I have never been able to recreate the problem here. I have an idea I'll test. >=20 >=20 > On 2017-Nov-25, at 4:54 PM, Mark Millard <defunct email address> wrote:= >=20 > . . . >=20 > On 2017-Jul-26, at 3:06 AM, Mark Millard <defunct email address> wrote:= >=20 > . . . >=20 > =3D=3D=3D > Mark Millard > marklmi26-fbsd at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) >=20 >=20 >=20 >=20 >=20 >=20 --=20 Regards, Bryan Drewery --1ETGVcUMnAsaAkxy3gD8mKaG2yODbb5zi-- --xUnsQmDdAaQK1ZcNG661OOtPY8XP2g7nN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJa+iQqAAoJEDXXcbtuRpfPFDAH/334+Sv8BYDx1h4oqNyzvlYV qJ2WHfrIPj7kOUD+GP2JnInTcZwJaz3cTGqjw0Ao5zf0hJR942c5nksixcIf6wgn l8hHV6z1g1lENR80WYRE96K0mj8bRlEeZtpvZqLQyZPioG1U5p51rELj/UTIZdtt sColEQBk+xrvh890d5HYtYs4cmKCHfoqg1+XeDsBynDW2DvVJ4Q8tsiy39dl3YBA FR0zqkrUc/3xiHGu6F5rVYtWlrgmkM+A/dbA39G/htPjqoOFSGTTK4uMdkNbN4km 7KGTMYWGM7YWDqVS2Q/W5vq7zPwbF3Gi1ZQd3zATWZJ/ZjRXKqbyKyeLmuPHPOI= =yLqe -----END PGP SIGNATURE----- --xUnsQmDdAaQK1ZcNG661OOtPY8XP2g7nN--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9086ff35-009b-c965-4970-3f8ad4fe6e6b>