Compare commits
1 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| bd5d20e7be |
35
fix_build_with_32_bits_MMX.patch
Normal file
35
fix_build_with_32_bits_MMX.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
From b7fa865fa6b06d97d424c500fd1c4bc44c096359 Mon Sep 17 00:00:00 2001
|
||||
From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
Date: Sun, 1 Nov 2020 22:46:18 +0100
|
||||
Subject: [PATCH] openpgm/pgm/checksum.c: fix build with 32 bits MMX
|
||||
|
||||
Build with i386-pentium-mmx or i686 is broken since version 5-3-128 and
|
||||
https://github.com/steve-o/openpgm/commit/b276dc15be5d4e6e1143b9de25d09f63f9c85135
|
||||
because _mm_cvtm64_si64 is undefined resulting in the following build
|
||||
failure for example on zeromq:
|
||||
|
||||
/srv/storage/autobuild/run/instance-3/output-1/host/opt/ext-toolchain/bin/../lib/gcc/i586-buildroot-linux-musl/8.3.0/../../../../i586-buildroot-linux-musl/bin/ld: /srv/storage/autobuild/run/instance-3/output-1/host/i586-buildroot-linux-musl/sysroot/usr/lib32/libpgm-5.3.so.0: undefined reference to `_mm_cvtm64_si64'
|
||||
|
||||
So use the fallback if __x86_64__ is not defined
|
||||
|
||||
Fixes:
|
||||
- http://autobuild.buildroot.org/results/01d9be37e8a743307128f53f41785654c9971e1a
|
||||
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
openpgm/pgm/checksum.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/openpgm/pgm/checksum.c b/openpgm/pgm/checksum.c
|
||||
index fef89bce2..8d8dd3f32 100644
|
||||
--- a/checksum.c
|
||||
+++ b/checksum.c
|
||||
@@ -948,7 +948,7 @@ do_csumcpy_mmx (
|
||||
|
||||
sum = _mm_add_pi32 (sum, lo);
|
||||
sum = _mm_add_pi32 (sum, hi);
|
||||
-#if 1
|
||||
+#if defined(__x86_64__)
|
||||
*(int64_t*)dst = _mm_cvtm64_si64 (tmp);
|
||||
#else
|
||||
((int*)dst)[1] = _mm_cvtsi64_si32 (tmp);
|
||||
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 25 12:09:32 UTC 2025 - Giacomo Comes <gcomes.obs@gmail.com>
|
||||
|
||||
- add fix_build_with_32_bits_MMX.patch to fix building packages on
|
||||
i586 that do not define _mm_cvtm64_si64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 18 13:50:39 UTC 2023 - bluca@debian.org
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# spec file for package openpgm
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
@@ -35,6 +35,8 @@ Source: https://github.com/steve-o/openpgm/archive/release-%{tarball_ver
|
||||
Source99: baselibs.conf
|
||||
# PATCH-FIX-UPSTREAM https://github.com/steve-o/openpgm/pull/74
|
||||
Patch0: Mark-pgm_family_string-as-inline.patch
|
||||
# PATCH-FIX-UPSTREAM https://github.com/steve-o/openpgm/commit/b7fa865fa6b06d97d424c500fd1c4bc44c096359
|
||||
Patch1: fix_build_with_32_bits_MMX.patch
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: gcc-c++
|
||||
|
||||
Reference in New Issue
Block a user