llvm / llvm/llvm-project

Undefined symbol: llvm::XCoreMCRegisterClassStorage building clang

Open
#211,419 0 comments 0 reactions 0 assignees View on GitHub
build-problem
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Build:
```
cmake -S llvm -B build -G Ninja -DLLVM_ENABLE_PROJECTS="clang" -DCMAKE_BUILD_TYPE=Debug -DLLVM_PARALLEL_LINK_JOBS=1 -DLLVM_PARALLEL_COMPILE_JOBS=6 -DLLVM_ENABLE_LLD=ON -DBUILD_SHARED_LIBS=ON
cd build
ninja clang
```

Error message:
FAILED: lib/libLLVMXCoreDisassembler.so
ld.lld: error: undefined symbol: llvm::XCoreMCRegisterClassStorage

Contributor guide

Open the contributing guide

Research direction

Run the supplied CMake and Ninja commands first to reproduce the failure. Then trace the XCore disassembler target and the definition and use of llvm::XCoreMCRegisterClassStorage; done means lib/libLLVMXCoreDisassembler.so links successfully and ninja clang completes.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake
Domain
build-system, compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.