Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed missing dependency to LLVMTransformUtils #117

Open
wants to merge 1 commit into
base: llvm-4.0
Choose a base branch
from

Conversation

theirix
Copy link

@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