diff --git a/_scmsync.obsinfo b/_scmsync.obsinfo index 686f9cf..57e51d8 100644 --- a/_scmsync.obsinfo +++ b/_scmsync.obsinfo @@ -1,4 +1,4 @@ -mtime: 1725329284 -commit: 5fba8255783f21fed155cf8b2a5eadc0feedaff330f82ec91cb603b6ce3dc96f +mtime: 1725329549 +commit: 3bd4644eb4cc039acf4f003e2eaa821572bfe79d2d6408c91cf4538abf89deb1 url: https://src.opensuse.org/jengelh/xxhash revision: master diff --git a/build.specials.obscpio b/build.specials.obscpio index e257e94..7bb4423 100644 --- a/build.specials.obscpio +++ b/build.specials.obscpio @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:7ea3f22a197a086da848aea17613e1956657118eda79ea8b0dceef14e80608d3 +oid sha256:e1aa69055d3a58061819bcf39eb25d811d4ac371f93e530f18be5a4da4a1d279 size 256 diff --git a/inline.patch b/inline.patch new file mode 100644 index 0000000..4f927ae --- /dev/null +++ b/inline.patch @@ -0,0 +1,30 @@ +From: Jan Engelhardt +Date: + +Ditch forced inlining, gcc-14 does not like it on at least some arches (like riscv64): + +In function 'void XXH3_hashLong_internal_loop(xxh_u64*, const xxh_u8*, size_t, const xxh_u8*, size_t, XXH3_f_accumulate, XXH3_f_scrambleAcc)', + inlined from 'XXH_NAMESPACEXXH128_hash_t XXH3_hashLong_128b_internal(const void*, size_t, const xxh_u8*, size_t, XXH3_f_accumulate, XXH3_f_scrambleAcc)' at /usr/include/xxhash.h:6416:32, + inlined from 'XXH_NAMESPACEXXH128_hash_t XXH3_hashLong_128b_default(const void*, size_t, XXH64_hash_t, const void*, size_t)' at /usr/include/xxhash.h:6442:39: +/usr/include/xxhash.h:5364:18: error: inlining failed in call to 'always_inline' 'void XXH3_accumulate_scalar(xxh_u64*, const xxh_u8*, const xxh_u8*, size_t)': function not considered for inlining + 5364 | XXH_FORCE_INLINE XXH3_ACCUMULATE_TEMPLATE(scalar) +/usr/include/xxhash.h:5544:14: note: called from here + 5544 | f_acc(acc, input + n*block_len, secret, nbStripesPerBlock); + +--- + xxhash.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: xxHash-0.8.2/xxhash.h +=================================================================== +--- xxHash-0.8.2.orig/xxhash.h ++++ xxHash-0.8.2/xxhash.h +@@ -2107,7 +2107,7 @@ static void* XXH_memcpy(void* dest, cons + # define XXH_NO_INLINE static + /* enable inlining hints */ + #elif defined(__GNUC__) || defined(__clang__) +-# define XXH_FORCE_INLINE static __inline__ __attribute__((always_inline, unused)) ++# define XXH_FORCE_INLINE static __inline__ __attribute__((unused)) + # define XXH_NO_INLINE static __attribute__((noinline)) + #elif defined(_MSC_VER) /* Visual Studio */ + # define XXH_FORCE_INLINE static __forceinline diff --git a/xxhash.changes b/xxhash.changes index 6ad13f8..69540f6 100644 --- a/xxhash.changes +++ b/xxhash.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Sep 3 02:11:09 UTC 2024 - Jan Engelhardt + +- Add inline.patch to resolve FTBFS on gcc14-riscv64 + ------------------------------------------------------------------- Sun May 5 19:35:03 UTC 2024 - Bruno Pitrus diff --git a/xxhash.spec b/xxhash.spec index 09142bf..a1bf827 100644 --- a/xxhash.spec +++ b/xxhash.spec @@ -25,6 +25,7 @@ Group: Productivity/Security URL: https://github.com/Cyan4973/xxHash Source0: https://github.com/Cyan4973/xxHash/archive/v%{version}.tar.gz#/xxHash-%{version}.tar.gz Patch1: test-tools-do-not-override-cflags.patch +Patch2: inline.patch BuildRequires: gcc-c++ BuildRequires: pkg-config %{?suse_build_hwcaps_libs}