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

compiler-rt & LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON: using "incorrect" triple leads to a cryptic error message #97948

Open
sylvestre opened this issue Jul 7, 2024 · 0 comments
Labels
build-problem cmake Build system in general and CMake in particular compiler-rt

Comments

@sylvestre
Copy link
Collaborator

sylvestre commented Jul 7, 2024

Building llvm 18 on i386 with the option LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=ON & -DLLVM_HOST_TRIPLE=i386-linux-gnu failed with:

Call Stack (most recent call first):
  /<<PKGBUILDDIR>>/compiler-rt/lib/CMakeLists.txt:4 (include)


CMake Error at /<<PKGBUILDDIR>>/compiler-rt/cmake/Modules/AddCompilerRT.cmake:281 (message):
  Cannot find builtins library for the target architecture
Call Stack (most recent call first):
  /<<PKGBUILDDIR>>/compiler-rt/lib/stats/CMakeLists.txt:23 (add_compiler_rt_runtime)

Full log:
https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-18&arch=i386&ver=1%3A18.1.8-2%7Eexp1&stamp=1720099326&raw=0

Changing from
-DLLVM_HOST_TRIPLE=i386-linux-gnu
to
-DLLVM_HOST_TRIPLE=i386-pc-linux-gnu
fixed the problem.
(see https://buildd.debian.org/status/fetch.php?pkg=llvm-toolchain-18&arch=i386&ver=1%3A18.1.8-2%7Eexp2&stamp=1720353987&raw=0 )

Dunno if it is an actual bug or we should just improve the error message.

cc @MaskRay @petrhosek

@sylvestre sylvestre added cmake Build system in general and CMake in particular compiler-rt build-problem labels Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-problem cmake Build system in general and CMake in particular compiler-rt
Projects
None yet
Development

No branches or pull requests

1 participant