Red Hat Bugzilla – Bug 1312339
Test misc_test fails on ppc64 Big Endian architecture for package libtomcrypt
Last modified: 2016-03-09 10:47:22 EST
Description of problem:
Test misc_test fails on ppc64 BE with following error message:
RPM build errors:
Algorithm failed test vectors. (5)
error: Bad exit status from /var/tmp/rpm-tmp.xYmIrH (%check)
Bad exit status from /var/tmp/rpm-tmp.xYmIrH (%check)
Complete build log is available at http://ppc.koji.fedoraproject.org/kojifiles/work/tasks/2547/3172547/build.log from koji build http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=3172546
Version-Release number of selected component (if applicable): libtomcrypt-1.17-28.fc24
Failure happens only when following section in test file testprof/misc_test.c runs :
If we comment this section, remaining tests and build pass successfully.
The lib overrides the distro-wide -O2 into -O3, but even going down to -O0 did not help, same no change with -fno-strict-aliasing or -mno-lra (as the usual tricks), we are still investigating.
There is a chance it's a bug in the code. I reported it upstream .
And same problem on s390x, so it's likely big endian problem. I haven't expected a rebase under the same version ...
i created a fix for this issue and send the patch to upstream. It built fine with the fix.