Bug 40471

Summary: libsratom FTBFS on aarch64 and ppc64le
Product: Sisyphus Reporter: Dmitry V. Levin <ldv>
Component: libsordAssignee: viy <viy>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: aen, glebfm, viy
Version: unstable   
Hardware: aarch64   
OS: Linux   
URL: https://lists.altlinux.org/pipermail/sisyphus-incominger/2021-July/620936.html
Bug Depends on:    
Bug Blocks: 27222    

Description Dmitry V. Levin 2021-07-12 21:33:59 MSK
http://git.altlinux.org/tasks/278547/logs/events.1.1.log:
#100 build libsratom-0.6.6-alt1_1.src.rpm from sisyphus
...
[aarch64] /usr/src/tmp/rpm-tmp.61171: line 128: 1980236 Segmentation fault ./build/sratom_test
2021-Jul-12 17:44:33 :: [aarch64] libsratom-0.6.6-alt1_1.src.rpm: remote: build failed
[ppc64le] /usr/src/tmp/rpm-tmp.19163: line 128: 3250372 Segmentation fault	./build/sratom_test
2021-Jul-12 17:44:39 :: [ppc64le] libsratom-0.6.6-alt1_1.src.rpm: remote: build failed

proscriptions$ git grep -Fwn libsratom
alt-education-x86_64.bnames:2439:libsratom
alt-sp8-server-i586.bnames:787:libsratom
alt-sp8-server-x86_64.bnames:1044:libsratom
alt-sp8-workstation-i586.bnames:1410:libsratom
alt-sp8-workstation-x86_64.bnames:1455:libsratom
alt-workstation-k-install-x86_64.bnames:2011:libsratom
alt-workstation-x86_64.bnames:1711:libsratom
slinux-install-x86_64.bnames:1349:libsratom
dist.src_all:2367:libsratom
Comment 1 Gleb F-Malinovskiy 2021-07-13 14:03:30 MSK
Проблема на стороне пакета libsord.  Вот эта логика:

http://git.altlinux.org/srpms/l/libsord.git?p=libsord.git;a=blob;f=sord.spec;h=d76b5c4fff14dfa3cf7ba3043253d8c57f1afc72;hb=0e4d8a92adba8e2bdd2ec5187dacef7d12fb3de5#l63

# Work around a possible GCC 10.1 bug
# GCC 10.1 crashes on these arches in for loop with ZixBTreeIter
%ifarch %{power64} %{arm} aarch64 s390 s390x
CFLAGS+=" -O1"
CXXFLAGS+=" -O1"
%endif

Не работает у нас.  Подозреваю, в fedora переменная CFLAGS в этом месте уже экспортирована.
Comment 2 Repository Robot 2021-07-13 14:53:01 MSK
libsord-0.16.6-alt2_1 -> sisyphus:

 Tue Jul 13 2021 Gleb F-Malinovskiy <glebfm@altlinux> 0.16.6-alt2_1
 - Fixed gcc >= 10 optimization workaround (ALT#40471).
Comment 3 viy 2021-07-13 18:24:28 MSK
Спасибо! добавил в скрипт импорта.