[1662501 views]

[]

Odi's astoundingly incomplete notes

New entries | Code

Gentoo updating gcc, mpfr, mpc

When Gentoo updates gcc together with mpfr and mpc the normal emerge procedure will cause building of gcc twice. Because mpfr and mpc cause automatic rebuild of the (existing) gcc. But if you are going to update gcc anyway then this is utterly pointless waste of energy.

Instead you can emerge --ignore-built-slot-operator-deps=y -1uav mpfr mpc first without doing the rebuild. This leaves you with a broken gcc maybe (but actually probably not because portage preserves the old library versions), but next you simply emerge -1uav gcc anyway.

After gcc update don't forget to switch to the new compiler with gcc-config and rebuild libtool.


posted on 2019-11-28 09:09 UTC in Code | 0 comments | permalink