Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 503086

Summary: media-libs/mesa-9.2.5-r1 build failed with use flags +llvm -llvm-shared-libs and sys-devel/llvm-3.4
Product: Gentoo Linux Reporter: Denis Sokolovsky <ganellon>
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: alex_y_xu
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log

Description Denis Sokolovsky 2014-03-01 01:24:32 UTC
With use flags combination "+llvm -llvm-shared-libs", mesa build failed with error
/usr/lib64/libLLVMSupport.a(Process.o): In function `llvm::sys::Process::FileDescriptorHasColors(int)':
(.text+0x5f7): undefined reference to `setupterm'
/usr/lib64/libLLVMSupport.a(Process.o): In function `llvm::sys::Process::FileDescriptorHasColors(int)':
(.text+0x620): undefined reference to `tigetnum'
/usr/lib64/libLLVMSupport.a(Process.o): In function `llvm::sys::Process::FileDescriptorHasColors(int)':
(.text+0x629): undefined reference to `set_curterm'
/usr/lib64/libLLVMSupport.a(Process.o): In function `llvm::sys::Process::FileDescriptorHasColors(int)':
(.text+0x631): undefined reference to `del_curterm'
collect2: error: ld returned 1 exit status

I believe that this is connected to llvm-3.4 upgrade, here are part of "genlop" output:
     Tue Dec 31 23:57:04 2013 >>> media-libs/mesa-9.2.5
     Thu Feb 27 22:30:39 2014 >>> media-libs/mesa-9.2.5-r1

     Tue Dec 31 23:15:20 2013 >>> sys-devel/llvm-3.3-r2
     Mon Jan 13 23:03:21 2014 >>> sys-devel/llvm-3.3-r3
     Mon Feb 10 23:31:51 2014 >>> sys-devel/llvm-3.4

mesa build succeed if both flags are either turned on or off (didn't tried "-llvm +llvm-shared-libs")
Comment 1 Denis Sokolovsky 2014-03-01 01:25:12 UTC
Created attachment 371466 [details]
emerge --info
Comment 2 Denis Sokolovsky 2014-03-01 01:32:33 UTC
Created attachment 371468 [details]
build.log

3.4MB uncompressed
Comment 3 Alex Xu (Hello71) 2014-03-01 02:13:58 UTC

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