With this recent fix https://git.overlays.gentoo.org/gitweb/?p=proj/x11.git;a=blobdiff;f=media-libs/mesa/mesa-9999.ebuild;h=d9a16aa66e91d624f4028544b52117ddefe5d372;hp=81a8ee26aa07eaf21190b80941a14eddb7c571d6;hb=04fc682adbe05991fc96da1d4d6fddd839f79ecc;hpb=f166e0e421f46574cd6131cf1a89a63f9f3d150c I noticed mesa doesn't work with the llvm-shared-libs use flag (at least on radeonsi). Someone on #radeon (not a developer) told me I need to recompile llvm with --enable-shared but I didn't test it, if this is true llvm-shared-libs should depend on sys-devel/llvm shared use flag (which doesn't even exist afaik). I'm using radeonsi (HD7950) and I get "(EE) RADEON(0): glamor detected, failed to initialize EGL." in Xorg.0.log with +llvm-shared-libs.
Errata corrige: compiling with -llvm-shared-libs is not enough, I had to remove $(use_enable llvm-shared-libs) in the ebuild.
There seems to be some confusion between --with-llvm-shared-libs and --enable-llvm-shared-libs in mesa configure.ac, I will look into it.
(In reply to Chí-Thanh Christopher Nguyễn from comment #2) > There seems to be some confusion between --with-llvm-shared-libs and > --enable-llvm-shared-libs in mesa configure.ac, I will look into it. The --with-llvm-shared-libs option has been replaced by --enable-llvm-shared-libs, and the default is now to enable LLVM shared libs.
So why with the llvm-shared-libs USE it doesn't work (I get "(EE) RADEON(0): glamor detected, failed to initialize EGL." + software fallback) if it's the default now? Even with -llvm-shared-libs USE it doesn't work, I had to strip out $(use_enable llvm-shared-libs) \ in the ebuild.
Created attachment 371552 [details] build log with -llvm-shared-libs This is the build log with USE="llvm-shared-libs" BUILD FAILED
Created attachment 371554 [details] build log with +llvm-shared-libs This is the build log with USE="llvm-shared-libs" BUILD FAILED
Sorry comment 5 is the build log with USE="-llvm-shared-libs"
*** This bug has been marked as a duplicate of bug 503516 ***
We don't mark older bugs as duplicates of newer bugs, if it can be avoided.
*** Bug 503516 has been marked as a duplicate of this bug. ***
So please clean the bug report because I can't do it.
LLVM is always built with shared libs. Do you have /usr/lib*/libLLVM*.so ? Also, please mark .xz attachments as such. text/plain is no good for them.
Yes, I have /usr/lib*/libLLVM*, however the only way to avoid getting "glamor detected, failed to initialize EGL" is to revert https://git.overlays.gentoo.org/gitweb/?p=proj/x11.git;a=blobdiff;f=media-libs/mesa/mesa-9999.ebuild;h=d9a16aa66e91d624f4028544b52117ddefe5d372;hp=81a8ee26aa07eaf21190b80941a14eddb7c571d6;hb=04fc682adbe05991fc96da1d4d6fddd839f79ecc;hpb=f166e0e421f46574cd6131cf1a89a63f9f3d150c Even USE=-llvm-shared-libs isn't enough, I have to compile with $(use_with llvm-shared-libs) to make it work. If I revert it even complains about non-existent option, I am fully aware of it. However for some strange reason it does the magic. It's a pain having to maintain my own copy of the mesa-9999 ebuild just because of this commit, but my system really doesn't like it :(
Finally fixed by https://git.overlays.gentoo.org/gitweb/?p=proj/x11.git;a=blobdiff;f=media-libs/mesa/mesa-9999.ebuild;h=0095919dd4675f73ce88ef02fbe4e11ab58c6e1a;hp=d9f27a309c60c1a50060145a17e3ab01c4b0a94f;hb=f22a1a83ef83e70582340e16dfc2c484c08280da;hpb=b8c63f93d545f945e66c2bebdc285c0b5982cb9a