Summary: | media-libs/mesa-7.11: should depend on =sys-devel/llvm-2.9* | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Helmut Jarausch <jarausch> |
Component: | [OLD] Library | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alecm_88, anton.kochkov, candrews, daniel, grozin, kdvgent, pesa |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | mesa-7.11-gallivm-llvm-3.0.patch |
Description
Helmut Jarausch
2011-07-21 09:24:31 UTC
Which version of llvm did you build mesa-7.11_rc1-r1 against, and which version of llvm do you build mesa-7.11_rc2 against? check "qlop -lu mesa llvm" output if in doubt. Created attachment 280511 [details, diff] mesa-7.11-gallivm-llvm-3.0.patch Possible fix for llvm-3.0 compatibility, taken from http://cgit.freedesktop.org/mesa/mesa/commit/?id=e4189f2e2e310276136dc06af20062986920e8e2 Unfortunately, that doesn't suffice. Now I get draw/draw_llvm.c:287:4: warning: implicit declaration of function 'LLVMAddTypeName' [-Wimplicit-function-declaration] ... x86_64-pc-linux-gnu-g++ -c -I. -I../../../src/gallium/include -I../../../src/gallium/auxiliary -I../../../src/gallium/drivers -mtune=native -O2 -msse3 -pipe -ffast-math -Wall -fno-strict-aliasing -fPIC -D_GNU_SOURCE -DPTHREADS -DTEXTURE_FLOAT_ENABLED -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DGLX_USE_TLS -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_LIBUDEV -DHAVE_XCB_DRI2 -DXCB_DRI2_CONNECT_DEVICE_NAME_BROKEN -DGALLIUM_LLVMPIPE -D__STDC_CONSTANT_MACROS -DHAVE_LLVM=0x0300 -fvisibility=hidden -I/usr/include -DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS -D__STDC_CONSTANT_MACROS gallivm/lp_bld_misc.cpp -o gallivm/lp_bld_misc.o gallivm/lp_bld_debug.cpp: In function 'void lp_disassemble(const void*)': gallivm/lp_bld_debug.cpp:292:13: error: 'TargetInstrDesc' does not name a type gallivm/lp_bld_debug.cpp:298:11: error: 'TID' was not declared in this scope gallivm/lp_bld_debug.cpp:350:11: error: 'TID' was not declared in this scope That doesn't answer the question from comment 1. (In reply to comment #4) > That doesn't answer the question from comment 1. OK, mesa-7.11_rc1-r1 was built against llvm-2.9-r2, currently I have llvm-9999 installed and builing mesa-7.11_rc2 against this fails. Helmut. At least the following llvm-3.0 patches in mesa git master have not been committed to the 7.11 branch: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b61e56756c2d61a94a8dd90abb4dc83e0c0349ae http://cgit.freedesktop.org/mesa/mesa/commit/?id=f8fcaf0215f0434baf13bb5c45545c58f97846b6 http://cgit.freedesktop.org/mesa/mesa/commit/?id=e4189f2e2e310276136dc06af20062986920e8e2 http://cgit.freedesktop.org/mesa/mesa/commit/?id=9228bfb37519e4a03183ec89e82a80f39addeeeb I am not fully convinced that it makes sense to track the moving target of llvm-9999, it appears to break the mesa build regularly. *** Bug 377403 has been marked as a duplicate of this bug. *** The tentative conclusion at XDC was that each Mesa branch (ie, 7.10, 7.11, 7.12) should only track one version of LLVM. LLVM ships its libraries as static binaries and doesn't really offer any guarantees of API stability, so this seems to be what they want as well. As such, I think we should change the dependency on LLVM to =sys-devel/llvm-2.9* for Mesa 7.11. Comments? As LLVM is not slotted, this might cause downgrades, which are an inconvenience for users. Also the patches mentioned in this bug preserve compatibility for older versions. You are probably correct that for future mesa versions there is probably no way around it. FYI: sys-devel/llvm-3.0 was marked ~amd64 and ~x86 today, so this issue is about to hit many more users (it just hit me) (In reply to comment #10) > FYI: sys-devel/llvm-3.0 was marked ~amd64 and ~x86 today, so this issue is > about to hit many more users (it just hit me) +1, and mesa-7.11.2 fails too. (In reply to comment #11) > +1, and mesa-7.11.2 fails too. +1, mesa-7.11.2[gallium,llvm,video_cards_intel] fails with llvm-3.0 There are a small number of patches that need to be applied to Mesa-7.11.x in order to work with llvm-3.0, see bug 393013. I've emailed the mesa mailing list and hope to have those patches included in the 7.11 branch. *** Bug 393013 has been marked as a duplicate of this bug. *** The patches mentioned in bug 393013 (minus 1844ae7e7e2285f52dc0ecd42194ccc47e3137ef) have been applied in 7.11.2, and older versions now depend on <llvm-3. |