From bbdeb8c37a5d9ce5778ddf5a90b35b03dbc8355b Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 2 Sep 2022 11:49:12 +0200 Subject: [PATCH] syscall-mips64el-def.diff: fix the call to undeclared function 'syscall'; on mips --- debian/changelog | 7 +++++++ debian/patches/mips/syscall-mips64el-def.diff | 16 ++++++++++++++++ debian/patches/series | 1 + 3 files changed, 24 insertions(+) create mode 100644 debian/patches/mips/syscall-mips64el-def.diff diff --git a/debian/changelog b/debian/changelog index 7ec9404e..c8d193fb 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +llvm-toolchain-15 (1:15.0.0~+rc3-1~exp3) UNRELEASED; urgency=medium + + * syscall-mips64el-def.diff: fix the call to undeclared function 'syscall'; + on mips + + -- Sylvestre Ledru Fri, 02 Sep 2022 11:43:11 +0200 + llvm-toolchain-15 (1:15.0.0~+rc3-1~exp2) experimental; urgency=medium * Update of the build dep from llvm-spirv => llvm-spirv-14 diff --git a/debian/patches/mips/syscall-mips64el-def.diff b/debian/patches/mips/syscall-mips64el-def.diff new file mode 100644 index 00000000..9348bac0 --- /dev/null +++ b/debian/patches/mips/syscall-mips64el-def.diff @@ -0,0 +1,16 @@ +Index: llvm-toolchain-15-15.0.0~+rc3/compiler-rt/lib/builtins/clear_cache.c +=================================================================== +--- llvm-toolchain-15-15.0.0~+rc3.orig/compiler-rt/lib/builtins/clear_cache.c ++++ llvm-toolchain-15-15.0.0~+rc3/compiler-rt/lib/builtins/clear_cache.c +@@ -6,6 +6,11 @@ + // + //===----------------------------------------------------------------------===// + ++#if defined(__linux__) && defined(__mips__) ++// Otherwise, the build fails as it cannot find syscall ++#define _GNU_SOURCE ++#endif ++ + #include "int_lib.h" + #if defined(__linux__) + #include diff --git a/debian/patches/series b/debian/patches/series index 183dfe1e..3be5b3ab 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -77,6 +77,7 @@ libcxx/libcxx-silent-failure-arm64.diff mips/mips-fpxx-enable.diff mips/mips-force-nomadd4.patch mips/mips-D101773-reloc.patch +mips/syscall-mips64el-def.diff 26-set-correct-float-abi.diff clang-baseline-fix-i386.patch