[llvm-commits] [PATCH] Missing libraries in cmake build?
clattner at apple.com
Mon Apr 12 13:44:42 PDT 2010
On Apr 12, 2010, at 11:39 AM, Tobias Grosser wrote:
> I get this error using cmake and BUILD_SHARED_LIBS=1 on a build using LLVM trunk + one additional pass added by me.
IPO depending on scalaropts seems fine, but I don't think scalaropts should depend on instcombine.
> Linking CXX executable ../../bin/llvm-extract
> ../../lib/libLLVMipo.so: undefined reference to `llvm::createIPSCCPPass()'
> collect2: ld returned 1 exit status
> gmake: *** [bin/llvm-extract] Error 1
> gmake: *** [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?
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
More information about the llvm-commits