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

Build failure when setting optimized tablegen #122543

Open
R-Goc opened this issue Jan 10, 2025 · 0 comments
Open

Build failure when setting optimized tablegen #122543

R-Goc opened this issue Jan 10, 2025 · 0 comments

Comments

@R-Goc
Copy link
Contributor

R-Goc commented Jan 10, 2025

When setting optimized tablegen: -DLLVM_OPTIMIZED_TABLEGEN=ON my build fails with this output:

FAILED: include/llvm/TargetParser/ARMTargetParserDef.inc D:/lib/llvm-dev/build/include/llvm/TargetParser/ARMTargetParserDef.inc
C:\Windows\system32\cmd.exe /C "cd /D D:\lib\llvm-dev\build && D:\lib\llvm-dev\build\NATIVE\bin\llvm-min-tblgen.exe -gen-arm-target-def -I D:/lib/llvm-dev/llvm/lib/Target/ARM/ -I D:/lib/llvm-dev/llvm/include/llvm/TargetParser -ID:/lib/llvm-dev/build/include -ID:/lib/llvm-dev/llvm/include D:/lib/llvm-dev/llvm/lib/Target/ARM/ARM.td --write-if-changed -o include/llvm/TargetParser/ARMTargetParserDef.inc -d include/llvm/TargetParser/ARMTargetParserDef.inc.d"

All tablegen jobs tried fail with no output, and %errorlevel% is -1073741819 when they are ran separately. I'm on a windows system building with clang-cl 19.1.6. Full build command:

cmake -B build -GNinja -Sllvm -Wno-dev -DLLVM_ENABLE_PROJECTS="clang;lld" -DLLVM_ENABLE_RUNTIMES="compiler-rt;libcxx" -DCMAKE_BUILD_TYPE=Debug -DLLVM_PARALLEL_LINK_JOBS=3 -DLLVM_PARALLEL_COMPILE_JOBS=16 -DLLVM_TARGETS_TO_BUILD="X86" -DLLVM_ENABLE_RTTI=ON -DLLVM_ENABLE_EH=ON -DCMAKE_CXX_COMPILER=clang-cl.exe -DCMAKE_ASM_COMPILER=clang-cl.exe -DCMAKE_C_COMPILER=clang-cl.exe -DLLVM_ENABLE_LLD=ON -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_EXPORT_COMPILE_COMMANDS=ON  -DLLVM_OPTIMIZED_TABLEGEN=ON 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants