release.sh: sh: head: not found \n Unable to determine linker type from LD=ld

Bryan Drewery bdrewery at FreeBSD.org
Fri Jun 23 15:50:16 UTC 2017


On 6/23/2017 8:14 AM, Alastair Hogge wrote:
> On Fri, Jun 23, 2017, at 21:00, Guy Yur wrote:
>> On 23 June 2017 at 15:36, Alastair Hogge <agh at fastmail.fm> wrote:
>>> Hi,
>>>
>>> My 12.0-CURRENT r320259 host is unable to complete a release.sh build of
>>> a generic world:
>>>
>>> [...]
>>> =/tmp/install.hb5C6cay  PATH_LOCALE=/tmp/install.hb5C6cay/locale rm -rf
>>> /tmp/install.hb5C6cay
>>> sh: head: not found
>>> make[4]: "/usr/src/share/mk/bsd.linker.mk" line 42: Unable to determine
>>> linker type from LD=ld
>>> *** Error code 1
>>>
>>> ...
>>>
>>> To good health,
>>> Alastair
>>> _______________________________________________
>>> freebsd-current at freebsd.org mailing list
>>> https://lists.freebsd.org/mailman/listinfo/freebsd-current
>>> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
>>
>> Hi,
>>
>> I got the same error with r320258.
>> Is it because "head" is not part of the bootstrap tools?
>>
>> I was able to continue by replacing "| head 1" with "| sed -n 1p" in
>> _ld_version!=   ${${ld}} --version 2>/dev/null | head -n 1 || echo none
>>
>> head is not in /tmp/install.RANDOMVALUES but sed is.
> 
> Great, that worked, thanks :-)
> 

I'll look into it.  While replacing head with sed here would fix it, I
think it should not be needed.  A value should already be known.

-- 
Regards,
Bryan Drewery

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-current/attachments/20170623/529d9ca9/attachment.sig>


More information about the freebsd-current mailing list