The package rpms/libcxx.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/libcxx.git/commit/?id=204afe54ffc....
Change:
-%ifarch s390 s390x
Thanks.
Full change:
============
commit 204afe54ffc459321b5d768566a00ab959cfe352
Author: Tom Stellard <tstellar(a)redhat.com>
Date: Thu Jan 16 02:22:48 2020 +0000
Build with gcc on all arches
The ppc64le builds work now that
https://bugzilla.redhat.com/show_bug.cgi?id=1538817
has been fixed.
diff --git a/libcxx.spec b/libcxx.spec
index 9925195..9468c71 100644
--- a/libcxx.spec
+++ b/libcxx.spec
@@ -2,7 +2,7 @@
# Otherwise, you have a loop with libcxxabi
%global bootstrap 0
#%%global rc_ver 4
-%global baserelease 1
+%global baserelease 2
%global libcxx_srcdir libcxx-%{version}%{?rc_ver:rc%{rc_ver}}.src
@@ -13,7 +13,7 @@ Summary: C++ standard library targeting C++11
License: MIT or NCSA
URL:
http://libcxx.llvm.org/
Source0: http://%{?rc_ver:pre}releases.llvm.org/%{version}/%{?rc_ver:rc%{rc_ver}}/%{libcxx_srcdir}.tar.xz
-BuildRequires: clang llvm-devel cmake llvm-static
+BuildRequires: gcc-c++ llvm-devel cmake llvm-static
%if %{bootstrap} < 1
BuildRequires: libcxxabi-devel
BuildRequires: python3
@@ -50,32 +50,8 @@ Summary: Static libraries for libcxx
%build
mkdir _build
cd _build
-%ifarch s390 s390x
-%if 0%{?fedora} < 26
-# clang requires z10 at minimum
-# workaround until we change the defaults for Fedora
-%global optflags %(echo %{optflags} | sed 's/-march=z9-109 /-march=z10 /')
-%endif
-%endif
-
-# Filter out cflags not supported by clang.
-%global optflags %(echo %{optflags} | sed -e 's/-mcet//g' -e
's/-fcf-protection//g' -e 's/-fstack-clash-protection//g')
-# Clang in older releases than f24 can't build this code without crashing.
-# So, we use gcc there. But the really old version in RHEL 6 works. Huh.
%cmake .. \
-%if 0%{?rhel} == 6
- -DCMAKE_C_COMPILER=/usr/bin/clang \
- -DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
-%else
-%if 0%{?fedora} >= 24
- -DCMAKE_C_COMPILER=/usr/bin/clang \
- -DCMAKE_CXX_COMPILER=/usr/bin/clang++ \
-%else
- -DCMAKE_C_COMPILER=/usr/bin/gcc \
- -DCMAKE_CXX_COMPILER=/usr/bin/g++ \
-%endif
-%endif
-DLLVM_CONFIG=%{_bindir}/llvm-config \
%if %{bootstrap} < 1
-DLIBCXX_CXX_ABI=libcxxabi \
@@ -113,6 +89,9 @@ make install DESTDIR=%{buildroot}
%changelog
+* Thu Jan 16 2020 Tom Stellard <tstellar(a)redhat.com> - 9.0.0-2
+- Build with gcc on all arches
+
* Mon Sep 23 2019 Tom Stellard <tstellar(a)redhat.com> - 9.0.0-1
- 9.0.0 Release