Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 May 2018 20:00:33 -0400
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        Ed Maste <emaste@freebsd.org>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org, Konstantin Belousov <kib@freebsd.org>
Subject:   Re: svn commit: r333470 - in head: share/mk sys/conf
Message-ID:  <31075786-70ed-10b9-fbc5-127996f87b1b@cs.duke.edu>
In-Reply-To: <CAPyFy2Bpm4pcfHGMbSyL8yroBACtgsxc2wJi9jxWbq%2BNEE2wsQ@mail.gmail.com>
References:  <201805102010.w4AKA3Ww094768@repo.freebsd.org> <788634f4-7a63-36c9-2ebd-5842d464f324@cs.duke.edu> <CAPyFy2Bpm4pcfHGMbSyL8yroBACtgsxc2wJi9jxWbq%2BNEE2wsQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 05/10/18 19:14, Ed Maste wrote:
> On 10 May 2018 at 18:24, Andrew Gallatin <gallatin@cs.duke.edu> wrote:
>> Rather than erroring out, we please just use the appropriate linker?
> 
> That's my goal, but it's a bit of an involved change and will take
> some time to make sure we don't introduce new corner cases. I'm sorry
> that I didn't catch this before the first ifunc use went in -- lld has
> been the default bootstrap linker (via buildworld or kernel-toolchain)
> since mid-Jan and this problem slipped my mind. I added the error in
> the meantime to avoid the silently broken kernel case that you
> unfortunately encountered.
> 
> The low-friction method of getting past this in the interim is to just
> use ld.lld as the system linker:
> # ln -fs ld.lld /usr/bin/ld
> I'm just waiting on an update to the lang/ghc port and another exp-run
> before that becomes the default.
> 

Thanks!

Unfortunately, it looks like this method will get blown away by an 
installworld:


<7:57pm>thing1/gallatin:src>ls -li /usr/bin/ld*
12038400 lrwxr-xr-x  1 root  wheel        15 May 10 19:21 /usr/bin/ld@ 
-> /usr/bin/ld.lld
32386537 -r-xr-xr-x  1 root  wheel   1911384 May 10 09:13 /usr/bin/ld.bfd*
32387059 -r-xr-xr-x  1 root  wheel  40449288 May 10 09:13 /usr/bin/ld.lld*
32386878 -r-xr-xr-x  1 root  wheel     19352 May 10 09:13 /usr/bin/ldd*
32387816 -r-xr-xr-x  1 root  wheel     26872 May 10 09:14 /usr/bin/ldd32*
<7:57pm>thing1/gallatin:src>sudo make -j32 installworld >& log
<7:58pm>thing1/gallatin:src>!ls
ls -li /usr/bin/ld*
32347218 -r-xr-xr-x  2 root  wheel   1911384 May 10 19:58 /usr/bin/ld*
32347218 -r-xr-xr-x  2 root  wheel   1911384 May 10 19:58 /usr/bin/ld.bfd*
32348085 -r-xr-xr-x  1 root  wheel  40449288 May 10 19:58 /usr/bin/ld.lld*
32347538 -r-xr-xr-x  1 root  wheel     19352 May 10 19:58 /usr/bin/ldd*
32348365 -r-xr-xr-x  1 root  wheel     26872 May 10 19:58 /usr/bin/ldd32*



Would it make sense to just set LD=ld.lld in my and root's .cshrc?

Thanks,

Drew



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?31075786-70ed-10b9-fbc5-127996f87b1b>