Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 501992 - [x11 overlay] media-libs/mesa-9999 USE=llvm-shared-libs - ?
Summary: [x11 overlay] media-libs/mesa-9999 USE=llvm-shared-libs - ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
: 503516 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-02-21 13:29 UTC by darkbasic
Modified: 2014-04-29 16:14 UTC (History)
2 users (show)

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


Attachments
build log with -llvm-shared-libs (build.log_use_enable-llvm-shared-libs-0.xz,55.29 KB, text/plain)
2014-03-02 13:06 UTC, darkbasic
Details
build log with +llvm-shared-libs (build.log_use_enable-llvm-shared-libs-1.xz,55.30 KB, text/plain)
2014-03-02 13:07 UTC, darkbasic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description darkbasic 2014-02-21 13:29:24 UTC
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.
Comment 1 darkbasic 2014-02-21 13:50:49 UTC
Errata corrige: compiling with -llvm-shared-libs is not enough, I had to remove $(use_enable llvm-shared-libs) in the ebuild.
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-02-21 14:13:35 UTC
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.
Comment 3 Tom Stellard 2014-02-21 14:57:33 UTC
(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.
Comment 4 darkbasic 2014-02-21 15:32:50 UTC
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.
Comment 5 darkbasic 2014-03-02 13:06:48 UTC
Created attachment 371552 [details]
build log with -llvm-shared-libs

This is the build log with USE="llvm-shared-libs"
BUILD FAILED
Comment 6 darkbasic 2014-03-02 13:07:22 UTC
Created attachment 371554 [details]
build log with +llvm-shared-libs

This is the build log with USE="llvm-shared-libs"
BUILD FAILED
Comment 7 darkbasic 2014-03-02 13:07:49 UTC
Sorry comment 5 is the build log with USE="-llvm-shared-libs"
Comment 8 darkbasic 2014-03-05 13:34:40 UTC

*** This bug has been marked as a duplicate of bug 503516 ***
Comment 9 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-03-05 13:42:31 UTC
We don't mark older bugs as duplicates of newer bugs, if it can be avoided.
Comment 10 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-03-05 13:43:50 UTC
*** Bug 503516 has been marked as a duplicate of this bug. ***
Comment 11 darkbasic 2014-03-05 13:52:07 UTC
So please clean the bug report because I can't do it.
Comment 12 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-04-10 17:10:55 UTC
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.
Comment 13 darkbasic 2014-04-10 20:08:14 UTC
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 :(