Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Sep 2018 10:36:14 -0400
From:      Ed Maste <emaste@freebsd.org>
To:        soralx@cydem.org
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Buildowrld tries to use old ld, and fails
Message-ID:  <CAPyFy2CSSN8TO3ym22F5cu4pV40ai9-9rnxeKSPq2jo%2B=PE_fA@mail.gmail.com>
In-Reply-To: <20180923181818.7f3cb925@mscad14>
References:  <20180923181818.7f3cb925@mscad14>

next in thread | previous in thread | raw e-mail | index | archive | help
On 23 September 2018 at 21:18,  <soralx@cydem.org> wrote:
>
> Howdy!
>
>  Since a couple months ago, the world on -CURRENT cannot be built using
>  the normal procedure:
>    time env LD=ld.lld make -j6 buildworld buildkernel

The normal procedure shouldn't need any LD= overrides; is there
something unique in your build? Any src.conf settings?

>  Here's the result:
>    [late in buildowrld process]
>    --- all_subdir_stand ---
>    /usr/obj/usr/src/amd64.amd64/tmp/usr/bin/ld: unrecognized option '--no-rosegment'
>    /usr/obj/usr/src/amd64.amd64/tmp/usr/bin/ld: use the --help option for usage information
>    cc: error: linker command failed with exit code 1 (use -v to see invocation)
>    make[5]: stopped in /usr/src/stand/i386/mbr
>
>  Workaround is to use linker from binutils:
>    env LD=/usr/local/bin/ld make buildworld

Just overriding LD isn't sufficient to choose a linker, because most
linking is performed by the compiler driver (i.e., cc) which does not
use the LD variable.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAPyFy2CSSN8TO3ym22F5cu4pV40ai9-9rnxeKSPq2jo%2B=PE_fA>