Description of problem: Package bear fails to build from source in Fedora rawhide on s390x. Version-Release number of selected component (if applicable): 3.0.7-2.fc34 Steps to Reproduce: koji build --scratch f35 bear-3.0.7-2.fc34.src.rpm Additional info: This package is tracked by Koschei. See: https://koschei.fedoraproject.org/package/bear Recent scratch build at https://koji.fedoraproject.org/koji/taskinfo?taskID=67718399. > Test project /builddir/build/BUILD/Bear-3.0.7/s390x-redhat-linux-gnu/subprojects/Build/BearSource > Start 1: bear::result_unit_test > 1/7 Test #1: bear::result_unit_test ........... Passed 0.00 sec > Start 2: bear::flags_unit_test > 2/7 Test #2: bear::flags_unit_test ............ Passed 0.00 sec > Start 3: bear::shell_unit_test > 3/7 Test #3: bear::shell_unit_test ............ Passed 0.01 sec > Start 4: bear::sys_unit_test > 4/7 Test #4: bear::sys_unit_test .............. Passed 0.00 sec > Start 5: bear::exec_unit_test > 5/7 Test #5: bear::exec_unit_test .............***Exception: SegFault 0.45 sec > Start 6: bear::intercept_unit_test > 6/7 Test #6: bear::intercept_unit_test ........ Passed 0.01 sec > Start 7: bear::citnames_unit_test > 7/7 Test #7: bear::citnames_unit_test ......... Passed 0.03 sec > 86% tests passed, 1 tests failed out of 7 > Total Test time (real) = 0.52 sec > The following tests FAILED: > 5 - bear::exec_unit_test (SEGFAULT) > Errors while running CTest > Output from these tests are in: /builddir/build/BUILD/Bear-3.0.7/s390x-redhat-linux-gnu/subprojects/Build/BearSource/Testing/Temporary/LastTest.log > Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely. Probable upstream bug: https://github.com/rizsotto/Bear/issues/309
I ran into this while preparing to submit a PR to rebuild bear in a side-tag for a grpc update in Rawhide. In the absence of an actual fix, the obvious solutions would seem to be: a. Disable the unit tests on s390x, and hope the resulting package is not too broken. Or: b. Add an ExcludeArch: s390x; link this bug, and block F-ExcludeArch-s390x from this bug. What do you think? I can incorporate your preferred fix or workaround into the PR to rebuild for the grpc update.
(Link for the ExcludeArch option: https://docs.fedoraproject.org/en-US/packaging-guidelines/#_architecture_build_failures)
I’ve worked on this some with upstream at https://github.com/rizsotto/Bear/issues/309. I was able to offer a backtrace, and I observed that the problem goes away when LTO is disabled, which is a good workaround for now. I will provide a PR.
https://src.fedoraproject.org/rpms/bear/pull-request/4
FEDORA-2021-53e78675af has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-53e78675af
FEDORA-2021-53e78675af has been pushed to the Fedora 34 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-53e78675af` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-53e78675af See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.
FEDORA-2021-73491747ee has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report.
FEDORA-2021-53e78675af has been pushed to the Fedora 34 stable repository. If problem still persists, please make note of it in this bug report.