yubihsm-shell failed to build from source in Fedora rawhide/f32 https://koji.fedoraproject.org/koji/taskinfo?taskID=41323160 For details on the mass rebuild see: https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Please fix yubihsm-shell at your earliest convenience and set the bug's status to ASSIGNED when you start fixing it. If the bug remains in NEW state for 8 weeks, yubihsm-shell will be orphaned. Before branching of Fedora 33, yubihsm-shell will be retired, if it still fails to build. For more details on the FTBFS policy, please visit: https://fedoraproject.org/wiki/Fails_to_build_from_source
Created attachment 1661484 [details] build.log file build.log too big, will only attach last 32768 bytes
Created attachment 1661485 [details] root.log file root.log too big, will only attach last 32768 bytes
Created attachment 1661486 [details] state.log
Filled https://github.com/Yubico/yubihsm-shell/issues/71 -- The errors are now different than the ones in this bug report, but still not sure whether gcc or this package is wrong.
This bug appears to have been reported against 'rawhide' during the Fedora 32 development cycle. Changing version to 32.
Can you please attach the preprocessed source file that reproduces the -Wstringop-overflow warning?
Created attachment 1664042 [details] preprocessed source file that reproduces the -Wstringop-overflow warning @Martin: here is the preprocessed source file that reproduces the -Wstringop-overflow warning build it like (copied from fedpkg local): cc -O2 -g -pipe -Wall -Werror=format-security -Wno-unused-parameter -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -pedantic -Wall -Wextra -Werror -Wno-format-zero-length -Wno-implicit-fallthrough -Wformat -Wformat-security -flto -fstack-protector-all -Wl,-z,relro,-z,now -fPIE -pie -g -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -rdynamic main.c.i
Thank you! I've reduced it to a small test case, confirmed it's a false positive, and opened GCC bug 93829 to get it fixed.
Martin, do you have some expectation when fix for this will land in Rawhide so I can rebuild the package? Do you have some downstream bug for this so I do not have to check manually if gcc was already updated?
Sorry, I don't know on what schedule Jakub Jelinek brings upstream changes in or if there's a way to get notified when he does.
Rebuilt successfully now: https://koji.fedoraproject.org/koji/taskinfo?taskID=42532800 There was still one issue on s390, which I patched and filled upstream: https://github.com/Yubico/yubihsm-shell/pull/77