The package rpms/sems.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/sems.git/commit/?id=beef747b4641429….
Change:
+%ifarch s390x
Thanks.
Full change:
============
commit beef747b4641429459065bd39dbea447405f33e9
Author: Zbigniew Jędrzejewski-Szmek <zbyszek(a)in.waw.pl>
Date: Wed Sep 30 13:23:16 2020 +0200
Disable lto on s390x
In function 'strncpy',
inlined from 'fctstr_safe_cpy' at /builddir/build/BUILD/sems-baad4717fdb3c02a63eb4869f31ec33ff8ec1fed/core/tests/fct.h:267:12,
inlined from 'fct_ts_new' at /builddir/build/BUILD/sems-baad4717fdb3c02a63eb4869f31ec33ff8ec1fed/core/tests/fct.h:1157:20:
/usr/include/bits/string_fortified.h:106:34: error: '__builtin_strncpy' specified bound 256 equals destination size [-Werror=stringop-truncation]
106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
| ^
lto1: some warnings being treated as errors
diff --git a/sems.spec b/sems.spec
index b1bba28..18afa89 100644
--- a/sems.spec
+++ b/sems.spec
@@ -23,6 +23,10 @@ Patch8: sems-0008-cmake-fix-symbol-visibility.patch
# Workaround for bug in GCC 10 on s390x (test again in the next builds)
Patch9: sems-0009-Don-t-copy-byte-which-will-be-replaced-with-NULL-any.patch
+%ifarch s390x
+%define _lto_cflags %{nil}
+%endif
+
BuildRequires: cmake >= 3.0
BuildRequires: flite-devel
BuildRequires: gcc-c++