Problems building on Ubuntu 13.10 with LLVM 3.3

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Mon Aug 19 15:04:32 PDT 2013


Hi all,

I've just made a new install of Ubuntu 13.10 and have tried to 
carry out a fresh build of from-git LDC.  I've installed 
llvm-3.3-dev, but the compilation process falls over with the 
following error:

---------------------------------------------
[ 11%] Building CXX object 
CMakeFiles/gen_gccbuiltins.dir/utils/gen_gccbuiltins.cpp.o
Linking CXX executable bin/gen_gccbuiltins
/usr/lib/llvm-3.3/lib/libLLVMSupport.a(Threading.o): In function 
`llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned 
int)':
(.text+0x13c): undefined reference to `pthread_create'
/usr/lib/llvm-3.3/lib/libLLVMSupport.a(Threading.o): In function 
`llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned 
int)':
(.text+0x14c): undefined reference to `pthread_join'
/usr/lib/llvm-3.3/lib/libLLVMSupport.a(Threading.o): In function 
`llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned 
int)':
(.text+0x176): undefined reference to `pthread_attr_setstacksize'
/usr/lib/llvm-3.3/lib/libLLVMSupport.a(Mutex.o): In function 
`llvm::sys::MutexImpl::MutexImpl(bool)':
(.text+0x38): undefined reference to `pthread_mutexattr_init'
/usr/lib/llvm-3.3/lib/libLLVMSupport.a(Mutex.o): In function 
`llvm::sys::MutexImpl::MutexImpl(bool)':
(.text+0x44): undefined reference to `pthread_mutexattr_settype'
/usr/lib/llvm-3.3/lib/libLLVMSupport.a(Mutex.o): In function 
`llvm::sys::MutexImpl::MutexImpl(bool)':
(.text+0x4e): undefined reference to 
`pthread_mutexattr_setpshared'
/usr/lib/llvm-3.3/lib/libLLVMSupport.a(Mutex.o): In function 
`llvm::sys::MutexImpl::MutexImpl(bool)':
(.text+0x61): undefined reference to `pthread_mutexattr_destroy'
/usr/lib/llvm-3.3/lib/libLLVMSupport.a(Mutex.o): In function 
`llvm::sys::MutexImpl::tryacquire()':
(.text+0xf8): undefined reference to `pthread_mutex_trylock'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/gen_gccbuiltins] Error 1
make[1]: *** [CMakeFiles/gen_gccbuiltins.dir/all] Error 2
---------------------------------------------

Is this a known bug/issue when building against LLVM 3.3 or is 
something else the problem?

Thanks & best wishes,

     -- Joe


More information about the digitalmars-d-ldc mailing list