Bug 1540954

Summary: strace-4.12-5.el7 rpm FTBFS on aarch64 [rhel-alt-7.5]
Product: Red Hat Enterprise Linux 7 Reporter: Edjunior Barbosa Machado <emachado>
Component: straceAssignee: DJ Delorie <dj>
Status: CLOSED ERRATA QA Contact: Edjunior Barbosa Machado <emachado>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.5-AltCC: jreznik, law, mcermak, ohudlick
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: strace-4.12-6.el7 Doc Type: Bug Fix
Doc Text:
Cause: Enables compatibility with Red Hat Enterprise Linux for AARCH64. Consequence: AARCH64 kernel features were causing mismatches in strace's test suite. Fix: strace and its test suite were updated. Result: strace builds on AARCH64
Story Points: ---
Clone Of:
: 1540992 (view as bug list) Environment:
Last Closed: 2018-04-10 11:55:30 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:
Bug Depends On:    
Bug Blocks: 1540992    
Attachments:
Description Flags
strace-4.12-5.el7 rpmbuild output in rhel-alt-7.5 aarch64 none

Description Edjunior Barbosa Machado 2018-02-01 12:05:17 UTC
Created attachment 1389463 [details]
strace-4.12-5.el7 rpmbuild output in rhel-alt-7.5 aarch64

Description of problem:
strace-4.12-5.el7 fails to build on aarch64 running RHEL-ALT-7.5-20180125.0 due to failure in the 'make check' (membarrier.test).

Noticed that this testcase also fails on ppc64le running rhel-alt-7.5, however as rpmbuild does not run 'make check' for this architecture (and ppc64 and s390x either), the rpm package is built successfully.

In rhel-7.5 x86_64, the testcase itself is skipped in the testrun. The same happens when 'make check' is manually run in rhel-7.5 ppc64 and ppc64le.

Version-Release number of selected component (if applicable):
strace-4.12-5.el7

Steps to Reproduce:
1.rpmbuild --rebuild strace-4.12-5.el7.src.rpm

Actual results:
...
SKIP: lstat.test
SKIP: lstat64.test
PASS: mbind.test
FAIL: membarrier.test
PASS: memfd_create.test
PASS: migrate_pages.test
PASS: mincore.test
...
============================================================================
Testsuite summary for strace 4.12
============================================================================
# TOTAL: 253
# PASS:  185
# SKIP:  67
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See tests/test-suite.log
Please report to strace-devel.net
============================================================================
make[5]: *** [test-suite.log] Error 1
make[5]: Leaving directory `/root/rpmbuild/BUILD/strace-4.12/tests'
make[4]: *** [check-TESTS] Error 2
make[4]: Leaving directory `/root/rpmbuild/BUILD/strace-4.12/tests'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/root/rpmbuild/BUILD/strace-4.12/tests'
make[2]: *** [check] Error 2
make[2]: Leaving directory `/root/rpmbuild/BUILD/strace-4.12/tests'
make[2]: Entering directory `/root/rpmbuild/BUILD/strace-4.12'
make[2]: Nothing to be done for `check-am'.
make[2]: Leaving directory `/root/rpmbuild/BUILD/strace-4.12'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/strace-4.12'
make: *** [check] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.GKe2oI (%check)


RPM build errors:
    strace-4.12-5.el7.src.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
(full rebuild log attached)

Additional info:
Using glibc-2.17-221.el7.aarch64.
Linux hp-moonshot-03-c12.lab.eng.rdu.redhat.com 4.14.0-29.el7a.aarch64 #1 SMP Mon Jan 22 16:28:57 EST 2018 aarch64 aarch64 aarch64 GNU/Linux

Comment 2 Edjunior Barbosa Machado 2018-02-01 13:49:41 UTC
The membarrier.test testcase also fails when manually run in rhel-alt-7.5 s390x.

Comment 3 Edjunior Barbosa Machado 2018-02-01 16:07:52 UTC
FWIW, from tests with upstream strace in rhel-alt-7.5 aarch64, commit 73354c seems to fix membarrier.test failure.

Comment 5 Edjunior Barbosa Machado 2018-02-12 15:37:35 UTC
Verified that now membarrier testcase is no longer failing and strace-4.12-6.el7 rpm package builds successfully in RHEL-ALT-7.5-20180211.1 aarch64:
...
SKIP: lstat64.test
PASS: mbind.test
PASS: membarrier.test
PASS: memfd_create.test
PASS: migrate_pages.test
...

Comment 8 errata-xmlrpc 2018-04-10 11:55:30 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0739