Skip to content

Fixed missing dependency to LLVMTransformUtils#117

Open
theirix wants to merge 1 commit intoobfuscator-llvm:llvm-4.0from
theirix:fix-llvmbuild
Open

Fixed missing dependency to LLVMTransformUtils#117
theirix wants to merge 1 commit intoobfuscator-llvm:llvm-4.0from
theirix:fix-llvmbuild

Conversation

@theirix
Copy link
Copy Markdown

@theirix theirix commented Mar 23, 2018

Build fails on RHEL with unsatisfied requirement on TransformUtils.

Build log excrept:

../../lib/libLLVMObfuscation.a(Flattening.cpp.o): In function `(anonymous namespace)::Flattening::runOnFunction(llvm::Function&)':
Flattening.cpp:(.text._ZN12_GLOBAL__N_110Flattening13runOnFunctionERN4llvm8FunctionE+0xd9): undefined reference to `llvm::createLowerSwitchPass()'
collect2: error: ld returned 1 exit status
make[2]: *** [lib/libLTO.so.4.0.1] Error 1
make[1]: *** [tools/lto/CMakeFiles/LTO.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
../../lib/libLLVMObfuscation.a(Flattening.cpp.o): In function `(anonymous namespace)::Flattening::runOnFunction(llvm::Function&)':
Flattening.cpp:(.text._ZN12_GLOBAL__N_110Flattening13runOnFunctionERN4llvm8FunctionE+0xd9): undefined reference to `llvm::createLowerSwitchPass()'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/llvm-lto] Error 1
make[1]: *** [tools/llvm-lto/CMakeFiles/llvm-lto.dir/all] Error 2

Function llvm::createLowerSwitchPass is defined at TransformUtils and it should be added as a dependency after LLVMBuild.txt scan by cmake. PR includes this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant