Emerge dependencia circular sys-libs/glibc-2.13-r4 y sys-devel/gcc-4.5.3-r1

From Luniwiki
Jump to: navigation, search


Cuando intentamos actualizar gcc nos da un error de dependencia circular

emerge -av gcc sys-libs/glibc
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild     U  ] sys-libs/glibc-2.13-r4 [2.6.1] USE="gd -debug -glibc-omitfp (-hardened) (-multilib) -profile (-selinux) -vanilla (-nls%*)" 16,081 kB
[ebuild  NS    ]  sys-devel/gcc-4.5.3-r1 [4.1.2] USE="cxx fortran mudflap nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite -gtk (-hardened) (-libffi) (-libssp) -lto (-multilib) -multislot -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla" 64,858 kB
Total: 2 packages (1 upgrade, 1 in new slot), Size of downloads: 80,938 kB
* Error: circular dependencies:
(sys-libs/glibc-2.13-r4::gentoo, ebuild scheduled for merge) depends on
 (sys-devel/gcc-4.5.3-r1::gentoo, ebuild scheduled for merge) (buildtime)
  (sys-libs/glibc-2.13-r4::gentoo, ebuild scheduled for merge) (buildtime)
* Note that circular dependencies can often be avoided by temporarily
* disabling USE flags that trigger optional dependencies.


Gcc tiene un slot propio, es seguro compilar primero gcc, y luego glibc

emerge -av --nodeps gcc

Pero nos da un error:

checking for the correct version of mpc.h... no

configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.

emerge -av dev-libs/mpfr
revdep-rebuild --library 'libmpfr.so.1'
rm '/usr/lib/libmpfr.so.1'
revdep-rebuild --library '/usr/lib/libgmp.so.3'
# rm '/usr/lib/libgmp.so.3'
emerge -av dev-libs/mpc
emerge -av --nodeps gcc


gcc-config -l
[1] i686-pc-linux-gnu-4.1.2 *
[2] i686-pc-linux-gnu-4.5.3
gcc-config i686-pc-linux-gnu-4.5.3
emerge -av sys-devel/patch
emerge glibc && emerge gcc
* If you have issues with packages unable to locate libstdc++.la,
* then try running 'fix_libtool_files.sh' on the old gcc versions.
* You might want to review the GCC upgrade guide when moving between
* major versions (like 4.2 to 4.3):
* http://www.gentoo.org/doc/en/gcc-upgrading.xml


--Daniel Simao 19:49 1 feb 2012 (UTC)