If `emerge --unmerge mesa libdrm`; libGL.so* removing from system. >=x11-libs/libdrm-2.4.15 cant be merged, because it wants libGL.so, which is a part of media-libs/mesa. But mesa can't compile without libdrm. Thus, this is a vicious circle of dependencies. Reproducible: Always Steps to Reproduce: 1.emerge --unmerge mesa libdrm 2.emerge libdrm OR emerge mesa Actual Results: /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lGL collect2: ld returned 1 exit status make[3]: *** [modetest] Ошибка 1 Expected Results: >>> Source compiled. After `emerge --unmerge mesa libdrm`: << eselect opengl list >> Available OpenGL implementations: [1] xorg-x11 * << ls /usr/lib/opengl/xorg-x11/lib/ >> libGL.la
solving tip: I just copy '/usr/lib/opengl/xorg-x11/lib/' from Gentoo LiveDVD to my system. Then `emerge libdrm emerge mesa`. But this is not right, IMHO
This bug contains a lot of information crammed down very tightly. I understand what you mean in this bug, but you really should provide logs (esp build.log of failed mesa/libdrm after you removed them), emerge --info etc. Also, the fact that you have libGL.la installed tells me you're probably running a quite old version of mesa since that file is stripped nowadays (at least in ~arch, in stable too?).
(In reply to comment #2) >This bug contains a lot of information crammed down very tightly. I understand >what you mean in this bug, but you really should provide logs (esp build.log >of failed mesa/libdrm after you removed them), emerge --info etc. sorry, my first bug. I'll provide emerge --info and >Also, the fact >that you have libGL.la installed tells me you're probably running a quite old >version of mesa since that file is stripped nowadays (at least in ~arch, in >stable too?). =media-libs/mesa-7.7-r1
Created attachment 215746 [details] emerge --info -pv mesa
Created attachment 215748 [details] libdrm build_log [ebuild N ] x11-libs/libdrm-2.4.17 USE="-debug" [ebuild N ] media-libs/mesa-7.7-r1 USE="nptl xcb -debug (-gallium) -motif -pic (-selinux)" VIDEO_CARDS="radeon -intel -mach64 -mga -none -nouveau -r128 -radeonhd -savage -sis (-sunffb) -svga -tdfx -via" ruthless # emerge mesa Calculating dependencies... done! >>> Verifying ebuild manifests >>> Starting parallel fetch >>> Emerging (1 of 2) x11-libs/libdrm-2.4.17
Created attachment 215749 [details] emerge -O mesa it jiust demonstrate that mesa needs libdrm
1. recompile x11-libs/cairo without opengl useflag 2. emerge libdrm 3. emerge mesa 4. you can recompile cairo with opengl again Don't know why libdrm depends on cairo.
libdrm does not depend on cairo - some of the tests do. At the same time, this libGL pseudo-dependency seems to be simply an effect of la file pollution - if libcairo.la was removed, it would probably went fine.
also please set LC_MESSAGES=C before building
(In reply to comment #8) >if libcairo.la was removed, it would probably went fine. nope. I removed it and libdrm make was failed again. (In reply to comment #7) Yes, it worked X) (In reply to comment #9) Next time I will
Created attachment 215858 [details] emerge libdrm after reemerge cairo with -opengl
Dupe indeed. Thanks *** This bug has been marked as a duplicate of bug 299008 ***