[LLVMdev] CMake does not work with LLVM anymore?
Aaron Gray
aaronngray.lists at googlemail.com
Wed Jun 17 10:19:21 PDT 2009
> I am just letting you know that I have not been able to build LLVM
> using CMake since I ran svn up yesterday.
> And it would be great if somebody could tell me whether the problem is
> on my end.
>
> What I did was,
>
> ~/llvm$ svn up
>
> ~/llvm$ mkdir cmakebuild
>
> ~/llvm$ cd cmakebuild
>
> ~/llvm/cmakebuild$ cmake -DCMAKE_BUILD_TYPE:STRING="Release"
> -DLLVM_TARGETS_TO_BUILD:STRING="X86" ..
> -- Target triple:
> -- LLVM_HOSTTRIPLE: i686-pc-linux-gnu
> -- Threads enabled.
> -- Targeting X86
> -- Target triple:
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/selee/llvm/cmakebuild
>
> ~/llvm/cmakebuild$ make
>
> After awhile, I got the following error message and couldn't complete the
> build.
>
> ../../lib/libLLVMCore.a(Type.cpp.o): In function
> `llvm::IntegerType::get(unsigned int)':
> Type.cpp:(.text+0x394c): undefined reference to
> `llvm::sys::RWMutex::reader_acquire()'
The CMake files need updating
lib/System/RWMutex.cpp needs adding to lib/System/CMakeLists.txt
> It seems that RWMutex has been added to the source tree yesterday, and
> some source code files have been modified accordingly.
Yep.
Aaron
More information about the llvm-dev
mailing list