Bug 2125295

Summary: Can't build Rawhide ppc64le packages on Power8 builder using Mock
Product: [Fedora] Fedora Reporter: Pavel Raiskup <praiskup>
Component: libdnfAssignee: rpm-software-management
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dan, daniel.mach, fsumsal, jmracek, jrohel, mblaha, pkratoch, rpm-software-management
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-08 15:00:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pavel Raiskup 2022-09-08 14:20:11 UTC
Mock uses the "bootstrap" chroot mechanism by default nowadays,
so simply any command like this fails:

    $ mock --chroot fedora-rawhide-ppc64le <src.rpm>
    ... SIGILL ...

But reproducer without Mock, on up2date F35 machine:

# rpm -q kernel-core glibc dnf libdnf
kernel-core-5.19.6-100.fc35.ppc64le
glibc-2.34-40.fc35.ppc64le
dnf-4.13.0-1.fc35.noarch
libdnf-0.68.0-1.fc35.ppc64le
# dnf -y --installroot /tmp/chroot --releasever 38 install dnf

# rm -f /tmp/chroot/etc/resolv.conf && cp /etc/resolv.conf /tmp/chroot/etc/resolv.conf
# chroot /tmp/chroot
bash-5.1# dnf update
Illegal instruction (core dumped)                                                                                                                                                                     

An strace snippet, not sure if helpful:
socket(AF_INET6, SOCK_STREAM, IPPROTO_TCP) = 12
... snip ...
read(12, "N\341\nt\347\212\350j\304E\32\343l\376\365\220\246\377\223c\200\241\242\344Z\v\17\225\312\306\35\254"..., 161) = 161
--- SIGILL {si_signo=SIGILL, si_code=ILL_ILLOPC, si_addr=0x7fff8fd6738c} --

I can provide this testing machine if anyhow helpful, still running
root@2620:52:3:1:dead:beef:cafe:c213

Comment 1 Dan HorĂ¡k 2022-09-08 14:55:26 UTC
I believe this is a duplicate of #2124845

Comment 2 Pavel Raiskup 2022-09-08 14:57:44 UTC
For us, the work-around is to enforce Power9 machines for fedora-rawhide-ppc64le chroot (https://pagure.io/copr/copr/issue/2310).

Comment 3 Pavel Raiskup 2022-09-08 15:00:32 UTC
Per Dan's instruction, journal has errors like:
kernel: dnf[7698]: illegal instruction (4) at 7fff993a738c nip 7fff993a738c lr 7fff99302968 code 1 in libcrypto.so.3.0.5[7fff990c0000+300000]
So this appears to be a duplicate.  Thanks!

*** This bug has been marked as a duplicate of bug 2124845 ***