From owner-freebsd-ppc@freebsd.org Sun May 13 08:14:07 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 69193FCD72D for ; Sun, 13 May 2018 08:14:07 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic306-20.consmr.mail.ne1.yahoo.com (sonic306-20.consmr.mail.ne1.yahoo.com [66.163.189.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EBE746B365 for ; Sun, 13 May 2018 08:14:06 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: Pw0_wp4VM1lkGxGurXv0.uOWGljyz8XyYnm2ayR5DqEhFYwzBORcGhH2AZ7sGZF 743LbM6T.jJeoVFEL.y5DahLoQ1dZ1adub3sU_29wYfb1_aZk9OFbzwSwOx6YWF5r7zZTDftjpZi SKmSqG5E_0V_vXsp4JWxt4Yl6j5AeYjM88NlDK9xYa289ssIRLxVQaNlumcsM2yjeR0E4grCau.O lNSjZLSeDBYjzbQSheTl0wNN2gERHGwannajrgFKV9YBEwO2HgBCiWXwYUQgY_hLlegE.KaTfqrG tWlvv_BwZ5ePTrO6TRe7hyJVutjHAS306j8vgFJYqXRkNp0vu5tzx4asJiZ5andE_OSbM2QDWxE9 IcSJdqmGHyBrbwvOExQtNqK5aXDoi3VY4O6l1jFEATkOngxHGV_HVcn7xLmLTSKFN5WES.5640q2 _rUTi02yhvJMGNYE6Nx6aER2X1PoI9tASFIVXi9xMO2JjT3Chv3wbvEnILDDGZs6KzY89C9CFtIE Elqws63GTA3.MiYfdGFD9OuSYVvIcKCku6izj3WobWvsYxLAx9ntoJcq24yV3DrSrmxvLwRlcVzf csIlve2XZFdP__zq5TNZkPMPVh9kL2O82ukNaAqeRU3S4vw-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Sun, 13 May 2018 08:13:59 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp417.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 5c19a5b6b7aca08a23836d59d003e95a; Sun, 13 May 2018 08:13:56 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: 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) From: Mark Millard In-Reply-To: <8EB87EA5-0ED6-4F46-80FC-1A0DB29CF7D6@dsl-only.net> Date: Sun, 13 May 2018 01:13:55 -0700 Cc: FreeBSD Toolchain , FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: <84A73CB0-CBCB-4EE4-A4B7-B8B2F25EECB5@yahoo.com> References: <0E42D991-D350-4DC1-A683-CEA506167520@dsl-only.net> <8F22B659-90DE-42E5-B4C6-75C9B9626462@dsl-only.net> <8EB87EA5-0ED6-4F46-80FC-1A0DB29CF7D6@dsl-only.net> To: Bryan Drewery X-Mailer: Apple Mail (2.3445.6.18) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 May 2018 08:14:07 -0000 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 = line that results in: (/usr/local/powerpc64-freebsd/bin/ld --version || echo none) | head -n 1 but head is not available by default at the time (lib32 context). (I = make head be available via using LOCAL_ITOOLS=3Dhead in order to work around = the issue.) An example of the messages (without having LOCAL_ITOOLS=3Dhead) is: --- _installlinks --- install -l s ../../libexec/ld-elf32.so.1 = /usr/obj/DESTDIRs/xtcgcc-powerpc64-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/local/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 = linker from XLD=3D/usr/local/powerpc64-unknown-freebsd12.0/bin/ld: , = defaulting to bfd The two "make[4]" lines are consequences of the prior "sh: head: not = found" issue that leaded to a "non-zero status" independent of the prior = "--version" and "echo none" material. It then leads to assuming bfd. Using LOCAL_ITOOLS=3Dhead makes head available and so then the status = value check works. On 2017-Nov-25, at 4:54 PM, Mark Millard wrote: . . . On 2017-Jul-26, at 3:06 AM, Mark Millard wrote: . . . =3D=3D=3D Mark Millard marklmi26-fbsd at yahoo.com ( dsl-only.net went away in early 2018-Mar)