The package rpms/xsimd.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/xsimd.git/commit/?id=d8bd0b6c0b9e....
Change:
-ExcludeArch: ppc64le s390x
Thanks.
Full change:
============
commit d8bd0b6c0b9ee13ac1bd4e66a9bab3864fa8b269
Author: Miro Hronok <miro(a)hroncok.cz>
Date: Thu Jul 4 16:38:27 2019 +0200
Allow all architectures
diff --git a/296.patch b/296.patch
new file mode 100644
index 0000000..34ebe16
--- /dev/null
+++ b/296.patch
@@ -0,0 +1,22 @@
+From e98a72f68cb68f388d3c509b4ced69318194b575 Mon Sep 17 00:00:00 2001
+From: Johan Mabille <johan.mabille(a)gmail.com>
+Date: Thu, 4 Jul 2019 15:50:03 +0200
+Subject: [PATCH] Fixed flags for ppc architecture
+
+---
+ test/CMakeLists.txt | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
+index b14a588..52c5a08 100644
+--- a/test/CMakeLists.txt
++++ b/test/CMakeLists.txt
+@@ -45,6 +45,8 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang" OR
CMAKE_CXX_COMPILER_ID MATCHES "GNU"
+ include_directories(/usr/${ARM_ARCH_DIRECTORY}/include/c++/${ARM_GCC_VER}/)
+ include_directories(/usr/${ARM_ARCH_DIRECTORY}/include/)
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=${TARGET_ARCH}
-Wunused-parameter -Wextra -Wreorder -std=c++11")
++ elseif(${CMAKE_SYSTEM_PROCESSOR} MATCHES "^ppc64")
++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fPIC -mcpu=${TARGET_ARCH}
-mtune=${TARGET_ARCH} -Wunused-parameter -Wextra -Wreorder -std=c++11")
+ elseif(NOT WIN32)
+ CHECK_CXX_COMPILER_FLAG("-std=c++11" HAS_CPP11_FLAG)
+ if (ENABLE_XTL_COMPLEX)
diff --git a/xsimd.spec b/xsimd.spec
index b7a1b06..2a01949 100644
--- a/xsimd.spec
+++ b/xsimd.spec
@@ -1,6 +1,6 @@
Name: xsimd
Version: 7.2.3
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: C++ wrappers for SIMD intrinsics
License: BSD
URL:
https://xsimd.readthedocs.io/
@@ -10,6 +10,8 @@ Source0: %{github}/archive/%{version}/%{name}-%{version}.tar.gz
# Workaround for armv7hl build failures
#
https://github.com/QuantStack/xsimd/pull/292 rebased
Patch1: 292.patch
+# Workaround for ppc64le build failures
+Patch2: %{github}/pull/296.patch
BuildRequires: cmake
BuildRequires: gcc-c++
@@ -18,9 +20,6 @@ BuildRequires: gtest-devel
# there is no actual arched content - this is a header only library
%global debug_package %{nil}
-#
https://github.com/QuantStack/xsimd/issues/289
-ExcludeArch: ppc64le s390x
-
%global _description \
SIMD (Single Instruction, Multiple Data) is a feature of microprocessors that \
has been available for many years. SIMD instructions perform a single operation \
@@ -66,6 +65,9 @@ Provides: %{name}-static = %{version}-%{release}
%{_libdir}/cmake/%{name}/
%changelog
+* Thu Jul 04 2019 Miro Hronok <mhroncok(a)redhat.com> - 7.2.3-3
+- Allow all architectures
+
* Wed Jul 03 2019 Miro Hronok <mhroncok(a)redhat.com> - 7.2.3-2
- Apply upstream workaround for armv7
- Reenable tests (commented out by mistake)