From fec3c5de10c13723dfba56d6b2bef7764b949f1f Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 10 Jul 2023 18:05:26 +0200 Subject: [PATCH 1/4] buster: don't ship python3-lldb --- debian/rules | 1 + 1 file changed, 1 insertion(+) diff --git a/debian/rules b/debian/rules index 57f4a26d..38ba911f 100755 --- a/debian/rules +++ b/debian/rules @@ -1158,6 +1158,7 @@ endif if test "$(DISTRO)" = "buster"; then \ mkdir -p $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/share/gdb/python/ompd/; \ touch $(DEB_INST)/usr/lib/llvm-$(LLVM_VERSION)/share/gdb/python/ompd/empty; \ + echo "" > debian/python3-lldb-$(LLVM_VERSION).install; \ fi # Delete the target build directory to save some space on the build systems From 4573b6a9e140b51facf92f3b7f586b60abd98650 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 10 Jul 2023 18:14:55 +0200 Subject: [PATCH 2/4] add back coverity to unbreak the ci --- debian/rules | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/debian/rules b/debian/rules index 38ba911f..abb32c68 100755 --- a/debian/rules +++ b/debian/rules @@ -367,6 +367,23 @@ ifneq (,$(filter scan-build,$(DEB_BUILD_OPTIONS))) STAGE_ALL_CMAKE_EXTRA += -DLLVM_ENABLE_ASSERTIONS=ON endif +ifneq (,$(filter coverity,$(DEB_BUILD_OPTIONS))) +# enable the build using coverity +# pbuilder contains BINDMOUNTS="/opt/cov-analysis/" +# And we have some pbuilder hooks to configure and pack the result +# Where the binaries are installed on the jenkins instance + PRE_PROCESS=PATH=$$PATH:/opt/cov-analysis/bin/ cov-build --dir cov-int +# We don't want to check the temporary files produced by the configure + PRE_PROCESS_CONF= + COVERITY_ENABLE=1 + CONFIGURE_EXTRA += --enable-assertions + STAGE_ALL_CMAKE_EXTRA += -DLLVM_ENABLE_ASSERTIONS=ON +# no need to run tests in this case + RUN_TEST=no +else + COVERITY_ENABLE=0 +endif + LLDB_ENABLE=yes LLDB_DISABLE_ARCHS := hurd-i386 ia64 powerpc powerpcspe ppc64 riscv64 sparc64 mips64el mipsel # hurd has threading issues From 5ca8352d2988c3e16a33dd97450ab769ecc91eb1 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 11 Jul 2023 18:01:29 +0200 Subject: [PATCH 3/4] disable the test on i386 --- debian/qualify-clang.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/qualify-clang.sh b/debian/qualify-clang.sh index 12ff0461..962be053 100755 --- a/debian/qualify-clang.sh +++ b/debian/qualify-clang.sh @@ -490,10 +490,10 @@ check_symlink "libclang-cpp.so.$VERSION" check_symlink "libclang-$VERSION.so" check_symlink "libclang.so" -echo "Testing python clang ..." - -python3 -c 'from ctypes import *; import clang.cindex; config = clang.cindex.Config(); verfunc = config.lib.clang_getClangVersion; verfunc.restype = c_char_p ; print(verfunc())' - +if [ $DEB_HOST_ARCH != "i386" ]; then + echo "Testing python clang ..." + python3 -c 'from ctypes import *; import clang.cindex; config = clang.cindex.Config(); verfunc = config.lib.clang_getClangVersion; verfunc.restype = c_char_p ; print(verfunc())' +fi echo "Testing code coverage ..." From 98b9aa7507f9c4cfcc75be8387ead970358bf996 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 11 Jul 2023 22:29:28 +0200 Subject: [PATCH 4/4] set -DCMAKE_SYSTEM_NAME=Generic to build wasm to fix upstream #63799 --- debian/changelog | 5 ++++- debian/rules | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 6dbf907a..feff9902 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,7 +3,10 @@ llvm-toolchain-16 (1:16.0.6-5) UNRELEASED; urgency=medium [ Samuel Thibault ] * Fix hurd build by fixing Linux-specific lines. - -- Samuel Thibault Sun, 09 Jul 2023 17:03:24 +0200 + [ Sylvestre Ledru ] + * set -DCMAKE_SYSTEM_NAME=Generic to build wasm to fix upstream #63799 + + -- Sylvestre Ledru Tue, 11 Jul 2023 22:28:59 +0200 llvm-toolchain-16 (1:16.0.6-4) unstable; urgency=medium diff --git a/debian/rules b/debian/rules index abb32c68..bd6aa8b4 100755 --- a/debian/rules +++ b/debian/rules @@ -788,6 +788,7 @@ build-wasm/compiler-rt-%: $(CMAKE_BIN) -B "$@" -S compiler-rt/lib/builtins/ \ -G Ninja \ $(SCCACHE_CMAKE) \ + -DCMAKE_SYSTEM_NAME=Generic \ -DCMAKE_C_COMPILER_TARGET=$(cpu)-unknown-unknown \ -DCMAKE_CXX_COMPILER_TARGET=$(cpu)-unknown-unknown \ -DCMAKE_ASM_COMPILER_TARGET=$(cpu)-unknown-unknown \