[gentoo-user] emerge update gcc downgrade
Hi, I run in a virtual machine a gentoo (~x86) system. I synced the portage tree at the weekend an run emerge --update The update runs without errors, but emerge installed the gcc 4.3.4, but on the system is the 4.4.3 installed [ebuild NS ] sys-devel/gcc-4.3.4 [4.4.3] USE=hardened mudflap nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -fortran - gcj -gtk (-libffi) (-multilib) -multislot (-n32) (-n64) -nocxx -nopie - objc -objc++ -objc-gc -test -vanilla After the update I run emerge --depclean and the 4.3.4 is unmerged and now I run emerge --update the gcc should installed again gcc-config -l shows only i686-pc-linux-gnu-4.4.3 whitch is set gcc-version: gcc (Gentoo 4.4.3 p1.0) 4.4.3 and I mask only 2 packages =net-fs/netatalk-2.0.3 app-emulation/open-vm-tools-0.0.20090824.187411 I run the kernel (kernel.org) 2.6.33.2 and I don't use distcc at the machine Can anybody help me to fix the gcc problem? I only need the 4.4.3 gcc Thanks Phil
Re: [gentoo-user] emerge update gcc downgrade
Kraus Philipp writes: I run in a virtual machine a gentoo (~x86) system. I synced the portage tree at the weekend an run emerge --update The update runs without errors, but emerge installed the gcc 4.3.4, but on the system is the 4.4.3 installed [ebuild NS ] sys-devel/gcc-4.3.4 [4.4.3] USE=hardened mudflap nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -fortran - gcj -gtk (-libffi) (-multilib) -multislot (-n32) (-n64) -nocxx -nopie - objc -objc++ -objc-gc -test -vanilla After the update I run emerge --depclean and the 4.3.4 is unmerged and now I run emerge --update the gcc should installed again [...] Can anybody help me to fix the gcc problem? I only need the 4.4.3 gcc I do not understand this, but anyway: Add the -t / --tree option you your emerge command, I guess then you can see which package pulls in the old gcc. I assume that something needs the old gcc for building, but when it is built, the old gcc is no longer needed, so emerge --depclean will remove it. Do you have --with-bdeps y in your EMERGE_DEFAULT_OPTS in make.conf? Otherwise this should not happen. And if it is set like this, depclean should not remove it. Hmm. You could also emerge -n sys-devel/gcc:4.3 in order to add it to your world file. Depclean would not remove it then. No real solution, but it would spare you the emerges. Or you build a binary package with quickpkg, and use the -k option to emerge, so it will emerge the binary instead of building from scratch every time. Wonko
Re: [gentoo-user] emerge update gcc downgrade
On Tue, Apr 06, 2010 at 12:40:02PM +0200, Kraus Philipp wrote: Hi, I run in a virtual machine a gentoo (~x86) system. I synced the portage tree at the weekend an run emerge --update The update runs without errors, but emerge installed the gcc 4.3.4, but on the system is the 4.4.3 installed [ebuild NS ] sys-devel/gcc-4.3.4 [4.4.3] USE=hardened mudflap nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -fortran - gcj -gtk (-libffi) (-multilib) -multislot (-n32) (-n64) -nocxx -nopie - objc -objc++ -objc-gc -test -vanilla After the update I run emerge --depclean and the 4.3.4 is unmerged and now I run emerge --update the gcc should installed again gcc-config -l shows only i686-pc-linux-gnu-4.4.3 whitch is set gcc-version: gcc (Gentoo 4.4.3 p1.0) 4.4.3 and I mask only 2 packages =net-fs/netatalk-2.0.3 app-emulation/open-vm-tools-0.0.20090824.187411 I run the kernel (kernel.org) 2.6.33.2 and I don't use distcc at the machine Can anybody help me to fix the gcc problem? I only need the 4.4.3 gcc Thanks Phil What's the output of 'emerge -pt world'? That should show you what package is pulling gcc-4.3.4 :-) -- Zeerak Waseem pgpH0zZXLSXR7.pgp Description: PGP signature
Re: [gentoo-user] emerge update gcc downgrade
On 4/6/2010 6:40 AM, Kraus Philipp wrote: Hi, I run in a virtual machine a gentoo (~x86) system. I synced the portage tree at the weekend an run emerge --update The update runs without errors, but emerge installed the gcc 4.3.4, but on the system is the 4.4.3 installed [ebuild NS ] sys-devel/gcc-4.3.4 [4.4.3] USE=hardened mudflap nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -fortran -gcj -gtk (-libffi) (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -objc -objc++ -objc-gc -test -vanilla You have the +hardened USE flag set. Did you just recently switch to the hardened profile? If so, make sure you followed the upgrade guide for hardened profiles, which should have warned you what was going to happen here. In the base system, gcc-4.4 is still masked off for hardened users because it's not quite ready for production use. If you want to use gcc 4.4 and all it's hardened features, you need to do two things: 1. Add the hardened-development overlay, for example using layman: basement ~ # layman -a hardened-development 2. Unmask gcc-4.4: basement ~ # mkdir /etc/portage/package.unmask basement ~ # echo '=sys-devel/gcc-4.4*' /etc/portage/package.unmask/hardened After that, you should get gcc 4.4.3 back.