From 033208480e107bfccde5f17dc58ec33368a4d903 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Sun, 7 Jul 2024 00:39:39 +0200 Subject: [PATCH] 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 --- debian/changelog | 10 ++++++++++ debian/rules | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index b9080b0f..8795aca9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Sun, 07 Jul 2024 00:38:27 +0200 + llvm-toolchain-18 (1:18.1.8-2~exp1) experimental; urgency=medium [ Sylvestre Ledru ] diff --git a/debian/rules b/debian/rules index 4e84fc2f..485b2f42 100755 --- a/debian/rules +++ b/debian/rules @@ -197,7 +197,7 @@ ifneq (,$(findstring $(DEB_HOST_ARCH),armel)) endif 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 # https://wiki.debian.org/ArmHardFloatPort#Minimum_CPU_.26_FPU CFLAGS_EXTRA += -march=armv7-a -mfpu=vfpv3-d16 @@ -206,8 +206,8 @@ endif ifneq (,$(filter $(DEB_HOST_ARCH),i386)) # Sometimes, i386 needs help with the triple - STAGE_ALL_CMAKE_EXTRA += -DLLVM_HOST_TRIPLE=i386-linux-gnu - 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-pc-linux-gnu endif ifneq (,$(filter $(DEB_HOST_ARCH),mips64el))