On 05/10/18 19:14, Ed Maste wrote:
On 10 May 2018 at 18:24, Andrew Gallatin <galla...@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
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"