Description of problem: Test misc_test fails on ppc64 BE with following error message: misc_test..... RPM build errors: Algorithm failed test vectors. (5) misc_test.c:18:crc32_test() 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 Additional info: Failure happens only when following section in test file testprof/misc_test.c runs : #ifdef LTC_CRC32 DO(crc32_test()); #endif 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 [1]. [1] https://github.com/libtom/libtomcrypt/issues/109
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. http://s390.koji.fedoraproject.org/koji/taskinfo?taskID=2146729 http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=3210976