Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Profile 23 success story
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2015

PostPosted: Mon Apr 29, 2024 8:20 am    Post subject: Profile 23 success story Reply with quote

My system is AMD64, using OpenRC and split /usr. I build in a chroot which creates binpkgs, and then install onto my target machines using those binpkgs.
As the final step of the profile 23 movesinvolves "emerge --emptytree @world", I decided to incorporate other changes I was planning:
  • Move to clang; I've been doing this piecemeal for ages, so I already have a small list of packages that require gcc.
  • Move to LTO everywhere; again I've done this for a few packages, but now I decided to try it as default;
  • Move to the Mold linker. I played with it in the early days, but it broke things so I stopped. But more recently I found it working where the default linker failed, so I thought what the heck? Again, I had a very small list of things that required other linkers.

This is obviously aggressive/optimistic...
It worked fine, taking about 7 hours for my ~1,400 packages, on my 16 core Zen3 processor. A few more packages turned out to need gcc. System up and running. I ran "qlop -r" in a loop while compiling, and the estimated time to completion tended to be about twice the time the various compilations actually took - not sure if the LTO'd gcc and clang were much faster or just my emerge.log contains several years of historical compilations on slower hardware to bias qlop's calculations.

(See the wiki items on Mold, LTO and Clang for details if necessary.)

One minor problem was busybox won't build on kernel 6.8 due to changes in the network stack. It's a known and reported problem, and the bypass is to remove "CONFIG_TC=y", so that was a learning experience on savedconfig and configuring busybox (cd to /var/tmp/portage/sys-apps/busybox/work, edit .config to remove the errant setting, run "make oldconfig" to tidy up the pieces, and copy the resulting .config to /etc/portage/savedconfig/sys-apps/busybox-foo-bah).

I repeated the instructions for the installation using the binpkgs, apart, of course, for deleting /var/cache/binpkgs, which would have been a bit awkward! I suspect there's no need to take the separate steps to rebuild gcc, glibc and libtool, as they were already built correctly, but I did them anyway just in case. Again no problem, apart from finding that something wanted an old copy of something (I forget what) which broke the "emerge -e", and I forgot to add "--resume --keep-going" when I restared, so I reinstalled about 500 packages twice, which was a waste of an hour...
_________________
Greybeard
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum