gentooLTO icon indicating copy to clipboard operation
gentooLTO copied to clipboard

How can I return my system to normal?

Open typecasto opened this issue 4 years ago • 2 comments

I'm not really noticing any performance gains, but I am noticing a lot of build failures (including the kernel), gcc segfaulting, and just strange behavior when it comes to packages. I really like the concept, but I want to have a stable system again.

How would I go about removing gentooLTO from my system completely?

typecasto avatar Sep 28 '21 22:09 typecasto

Note: This is assuming you used eselect, not layman but all except step 4 would be the same I think

step 1) emerge --depclean sys-config/ltoize

step 2) emerge --depclean

step 3) Restore your make.config file using a copy you saved from before you did gentoo-lto OR if you didnt make a backup, remove the USE flags "pgo lto graphite" and remove the line where you source from the make.conf.lto file and restore your COMMON_FLAGS to something like "-march=native -O2 -pipe"

step 3.5) you may wish to review your zz-autounmask file if you used autounmask-continue during the upgrade to gentoo-lto

step 4) eselect repository remove mv lto-overlay

step 5) emerge -e --keep-going @world

Now you should be back to normal gentoo gentoo-lto just adds some config files and installs some packages that lets portage run them, so besides needing to do another system upgrade, there isnt much to it

haimeh avatar Sep 29 '21 20:09 haimeh

Along with the above advice, this may help.

# Rebuild toolchain without LTO
root# emerge --ask @system sys-devel/binutils sys-libs/binutils-libs sys-devel/libtool
# Rebuild the entire system without LTO
root# emerge --emptytree --keep-going @world

Alternatively, you can chroot a stage 3 and use its "untainted" toolchain instead if you believe yours is broken beyond repair.

Had you tried running lto-rebuild recently?

jiblime avatar Oct 01 '21 12:10 jiblime