On Wed, May 08, 2019 at 10:07:47PM +0100, Ken Moffat via blfs-support wrote: > > 1. ac_add_options --disable-debug-symbols > > This sounds like a no-brainer for those of us who do not intend to > run a debugger on firefox, and it makes the build directory *much* > smaller (about 5 GB instead of more than 9 GB). Unforunately, on my > machine (and with almost everything else closed to free up memory so > that it did not swap), this took significantly longer to build (say, > 35% or more). But even so, maybe helpful if you have memory > constraints. > > 2. Not forcing it to use the gold linker, i.e. just let it use > ld.bfd. > > I left this build running (also with --disable-debug-symbols) and > when I came back to it, expecting that the linker would run within a > few minutes, it had already finished - this was quicker than the > fastest run of the default build using gold. > > So, for the moment, if you are space-constrained, I recommend both > of these options. > Results after further runs:
1. I gave --disable-debug-symbols and ld.bfs another run, but the linkage finished within 5 seconds or less (I was watching top, refreshing every 3 seconds, then tried to use top -p in another term which was ready, but by the time I had read the pid and entered it, it had finished. Fastest build yet, but since the times are unreliable (also the spaces - they all vary by a few KB for both total and install) I'm not going to say it definitely _is_ fastest. 2. Repeat without disabling debug symbols: this took somewhat longer, and as usual the linkage took several seconds. But the maximum sizes for ld were around 3.9 GB total, 3.8 GB resident. I saw other LD options at SuSe : -Wl,--no-keep-memory and -Wl,--reduce-memory-overheads which are both documented in 'info ld' and appear to come with a build-time overhead, probably more for the --no-keep-memory option. But from what I'me seeing on this system (and I repeat: llvm-7 on LFS-8.4) there doesn't seem to be any benefit : unless reverting to gcc makes a change ;) The other options I want to look at are for hardening, and those are definitely reported to slow the startup, so I won't look at those until I'm actually *running* 67. ĸen -- Before the universe began, there was a sound. It went: "One, two, ONE, two, three, four" [...] The cataclysmic power chord that followed was the creation of time and space and matter and it does Not Fade Away. - wiki.lspace.org/mediawiki/Music_With_Rocks_In -- http://lists.linuxfromscratch.org/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
