Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 300213 - unable to compile libdrm\mesa afterm their unmerge
Summary: unable to compile libdrm\mesa afterm their unmerge
Status: RESOLVED DUPLICATE of bug 299008
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-08 19:40 UTC by mailrupile
Modified: 2010-01-12 12:31 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info -pv mesa (info,9.11 KB, text/plain)
2010-01-09 00:10 UTC, mailrupile
Details
libdrm build_log (build_log,44.39 KB, text/plain)
2010-01-09 00:17 UTC, mailrupile
Details
emerge -O mesa (mesa_build_log,4.37 KB, text/plain)
2010-01-09 00:19 UTC, mailrupile
Details
emerge libdrm after reemerge cairo with -opengl (libdrm_bl_cairo-opengl,66.02 KB, text/plain)
2010-01-09 20:08 UTC, mailrupile
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mailrupile 2010-01-08 19:40:57 UTC
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
Comment 1 mailrupile 2010-01-08 19:44:09 UTC
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   
Comment 2 Viktor S 2010-01-08 20:49:43 UTC
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?).
Comment 3 mailrupile 2010-01-09 00:09:30 UTC
(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
Comment 4 mailrupile 2010-01-09 00:10:19 UTC
Created attachment 215746 [details]
emerge --info -pv mesa
Comment 5 mailrupile 2010-01-09 00:17:16 UTC
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
Comment 6 mailrupile 2010-01-09 00:19:05 UTC
Created attachment 215749 [details]
emerge -O mesa

it jiust demonstrate that mesa needs libdrm
Comment 7 Johannes Hirte 2010-01-09 00:49:50 UTC
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.
Comment 8 Rafał Mużyło 2010-01-09 13:33:37 UTC
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.
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-01-09 13:37:25 UTC
also please set LC_MESSAGES=C before building
Comment 10 mailrupile 2010-01-09 20:07:46 UTC
(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
Comment 11 mailrupile 2010-01-09 20:08:52 UTC
Created attachment 215858 [details]
emerge libdrm after reemerge cairo with -opengl
Comment 12 Rémi Cardona (RETIRED) gentoo-dev 2010-01-12 12:31:37 UTC
Dupe indeed.

Thanks

*** This bug has been marked as a duplicate of bug 299008 ***