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

Same as #2: llvm-build: error: invalid target to enable: 'AArch64' (not in project) #6

Open
kyechou opened this issue Nov 8, 2020 · 0 comments
Assignees

Comments

@kyechou
Copy link

kyechou commented Nov 8, 2020

Steps to reproduce

git clone https://github.com/avast/llvm
cd llvm
mkdir build && cd build
cmake ..

Output

-- Constructing LLVMBuild project information
CMake Error at CMakeLists.txt:679 (message):
  Unexpected failure executing llvm-build: Usage: llvm-build [options]

  

  llvm-build: error: invalid target to enable: 'AArch64' (not in project)


-- Configuring incomplete, errors occurred!
See also "/home/kyc/cs/projects/retdec-llvm/build/CMakeFiles/CMakeOutput.log".
See also "/home/kyc/cs/projects/retdec-llvm/build/CMakeFiles/CMakeError.log".

Notes

  • It seems that the fix 329d350 was somehow reverted while merging at 82632c5.
  • After applying the changes in 329d350, the output becomes:
-- Constructing LLVMBuild project information
-- Linker detection: GNU ld
-- Targeting X86
CMake Error at cmake/modules/LLVM-Config.cmake:175 (message):
  Target X86 is not in the set of libraries.
Call Stack (most recent call first):
  cmake/modules/AddLLVM.cmake:548 (llvm_map_components_to_libnames)
  cmake/modules/AddLLVM.cmake:626 (llvm_add_library)
  tools/lto/CMakeLists.txt:19 (add_llvm_library)


-- Configuring incomplete, errors occurred!
See also "/home/kyc/cs/projects/retdec-llvm/build/CMakeFiles/CMakeOutput.log".
See also "/home/kyc/cs/projects/retdec-llvm/build/CMakeFiles/CMakeError.log".
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

No branches or pull requests

2 participants