On 12/31/2016 08:37 AM, John Frankish wrote:
I've followed LFS to build a toolchain several times, except that I
built gold and used isl as a dep.

With all of the toolchains, wherever other packages automatically use
gold (libreoffice and others) compilation fails for different
non-obvious (to me at least) reasons until gold is disabled.

Just pinging back, I was unable to verify this using the default configuration with binutils-2.27. Chromium, and all three WebKitGTK+ installations build without modification to the book's instructions. Keep in mind that I'm using the default configuration where ld is a hard link to ld.bfd:

dj [ ~/LFS/BOOK-fulltoolchain ]$ ls -li /usr/bin/ld{,.bfd,.gold}
3443258 -rwxr-xr-x 2 root root  2774216 Jan  2 13:28 /usr/bin/ld
3443258 -rwxr-xr-x 2 root root  2774216 Jan  2 13:28 /usr/bin/ld.bfd
3410298 -rwxr-xr-x 1 root root 92467824 Jan  2 13:28 /usr/bin/ld.gold

In fact, I've built all of Gnome on systemd without issues related to the linker and intend to continue through Plasma, LXQT, and LXDE. I did not yet build the QT version of WebKit, though it will be in the queue for timing comparisons later.

On that note, however, my single timing test of gold on Chromium resulted in a 4 minute *increase* with gold (~4.5 hours for the testing machine). This also using -fuse-ld=gold. Honestly, with the hype for gold, I expected to get a significant enough difference that I didn't bother with any control of the environment (system was being used for other tasks at build time for both). The only thing I did was reboot between builds. This 'test' was almost useless. Future tests will be actual tests, performed in a clean environment, immediately after boot, without GUI.


I'll be able to check it out soon. How are you using gold? -B?

As mentioned, some apps (webkitgtk, not libreoffice as I originally stated) look for gold 
themselves and will only compile if it is disabled) but I've also used 
"-fuse-ld=gold" or made a symlink ld -> ld.gold

I just tested with something simple - sed - and in fact "-fuse-ld=gold" works, 
albeit the resulting sed binary is smaller if gold is not used.


--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to