yubihsm-shell failed to build from source in Fedora rawhide/f30
For details on the mass rebuild see:
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 31,
yubihsm-shell will be retired, if it still fails to build.
For more details on the FTBFS policy, please visit:
Created attachment 1533709 [details]
file build.log too big, will only attach last 1024 bytes
Created attachment 1533710 [details]
file root.log too big, will only attach last 1024 bytes
Created attachment 1533711 [details]
The error is the following:
/builddir/build/BUILD/yubihsm-shell-2.0.0/pkcs11/tests/ecdh_derive_test.c: In function 'main':
/builddir/build/BUILD/yubihsm-shell-2.0.0/pkcs11/tests/ecdh_derive_test.c:368:17: error: variable-length array bound is unknown [-Werror=vla-larger-than=]
368 | unsigned char ecdh1_bytes[ecdh1_len]; // public key in DER
/builddir/build/BUILD/yubihsm-shell-2.0.0/pkcs11/tests/ecdh_derive_test.c:419:41: error: variable-length array bound is unknown [-Werror=vla-larger-than=]
419 | unsigned char ecdh1_value[ecdh1_len], ecdh2_value[ecdh2_len];
lto1: all warnings being treated as errors
lto-wrapper: fatal error: /usr/bin/cc returned 1 exit status
This is caused a new warning (being treated as an error?), but I do not see this as an error at all. It is variable length array so indeed the bound is unknown. But the same construction is used in many other places, where it is not a problem for gcc.
Fixed in rawhide, filled upstream bug.