[llvm-commits] [PATCH] Missing libraries in cmake build?

Chris Lattner clattner at apple.com
Mon Apr 12 13:44:42 PDT 2010


On Apr 12, 2010, at 11:39 AM, Tobias Grosser wrote:

> Hi,
> 
> I get this error using cmake and BUILD_SHARED_LIBS=1 on a build using LLVM trunk + one additional pass added by me.

Hi Tobias,

IPO depending on scalaropts seems fine, but I don't think scalaropts should depend on instcombine.

-Chris

> 
> Linking CXX executable ../../bin/llvm-extract
> ../../lib/libLLVMipo.so: undefined reference to `llvm::createIPSCCPPass()'
> collect2: ld returned 1 exit status
> gmake[2]: *** [bin/llvm-extract] Error 1
> gmake[1]: *** [tools/llvm-extract/CMakeFiles/llvm-extract.dir/all] Error 2
> gmake: *** [all] Error 2
> 
> For me it seems there are some libraries missing in the CMakeLists.txt
> files. The problem does not appear neither with a clean trunk nor with LLVM + my patches build using the autotools infrastructure.
> 
> However the patch solves the build issues on my side and they seem to be consistent as IPO really uses a function defined in ScalarOpt.
> 
> Therefore I believe this is correct and propose this patch for LLVM trunk.
> 
> OK to commit?
> 
> Thanks
> 
> Tobi
> <llvm_Add-missing-libraries-to-cmake.patch>_______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits





More information about the llvm-commits mailing list