Change the LLVM_HOST_TRIPLE option from i386-linux-gnu to i386-pc-linux-gnu and arm-linux-gnueabihf to arm-pc-linux-gnueabihf Otherwise, it will fail with: Cannot find builtins library for the target architecture

This commit is contained in:
Sylvestre Ledru 2024-07-07 00:39:39 +02:00
parent 090d6c3486
commit 033208480e
2 changed files with 13 additions and 3 deletions

10
debian/changelog vendored
View File

@ -1,3 +1,13 @@
llvm-toolchain-18 (1:18.1.8-2~exp2) experimental; urgency=medium
* Change the LLVM_HOST_TRIPLE option from i386-linux-gnu to
i386-pc-linux-gnu
and arm-linux-gnueabihf to arm-pc-linux-gnueabihf
Otherwise, it will fail with:
Cannot find builtins library for the target architecture
-- Sylvestre Ledru <sylvestre@debian.org> Sun, 07 Jul 2024 00:38:27 +0200
llvm-toolchain-18 (1:18.1.8-2~exp1) experimental; urgency=medium llvm-toolchain-18 (1:18.1.8-2~exp1) experimental; urgency=medium
[ Sylvestre Ledru ] [ Sylvestre Ledru ]

6
debian/rules vendored
View File

@ -197,7 +197,7 @@ ifneq (,$(findstring $(DEB_HOST_ARCH),armel))
endif endif
ifneq (,$(findstring $(DEB_HOST_ARCH),armhf)) ifneq (,$(findstring $(DEB_HOST_ARCH),armhf))
STAGE_ALL_CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=arm-linux-gnueabihf STAGE_ALL_CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=arm-pc-linux-gnueabihf
# align arch profile with debian baseline # align arch profile with debian baseline
# https://wiki.debian.org/ArmHardFloatPort#Minimum_CPU_.26_FPU # https://wiki.debian.org/ArmHardFloatPort#Minimum_CPU_.26_FPU
CFLAGS_EXTRA += -march=armv7-a -mfpu=vfpv3-d16 CFLAGS_EXTRA += -march=armv7-a -mfpu=vfpv3-d16
@ -206,8 +206,8 @@ endif
ifneq (,$(filter $(DEB_HOST_ARCH),i386)) ifneq (,$(filter $(DEB_HOST_ARCH),i386))
# Sometimes, i386 needs help with the triple # Sometimes, i386 needs help with the triple
STAGE_ALL_CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=i386-linux-gnu STAGE_ALL_CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=i386-pc-linux-gnu
CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=i386-linux-gnu CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=i386-pc-linux-gnu
endif endif
ifneq (,$(filter $(DEB_HOST_ARCH),mips64el)) ifneq (,$(filter $(DEB_HOST_ARCH),mips64el))