Am Dienstag, 23. April 2019, 14:02:20 CEST schrieb Martin Liška:
Hi.
We as toolchain team are working on enablement of LTO in Factory:
Here's another fallout: https://build.opensuse.org/package/show/home:frispete:telephony:asterisk/ dahdi-tools Fails with: [ 14s] make[3]: Entering directory '/home/abuild/rpmbuild/BUILD/dahdi- tools-3.0.0/xpp/xtalk' [ 14s] CC xlist_test-xlist_test.o [ 14s] CC libxtalk_la-xtalk_sync.lo [ 14s] CC libxtalk_la-xtalk_raw.lo [ 14s] CC libxtalk_la-xtalk_base.lo [ 14s] CC libxtalk_la-debug.lo [ 14s] CC libxtalk_la-xlist.lo [ 14s] CC libxtalk_la-xtalk-xusb.lo [ 14s] CC libxtalk_la-xusb_common.lo [ 14s] CC libxtalk_la-xusb_libusbx.lo [ 14s] CC xusb_test-xusb_test.o [ 14s] CC xusb_test_bypath-xusb_test_bypath.o [ 14s] CC xtalk_test-xtalk_test.o [ 14s] CC xtalk_raw_test-xtalk_raw_test.o [ 14s] CC xtalk_send-xtalk_send.o [ 14s] CCLD libxtalk.la [ 14s] CCLD xusb_test [ 14s] CCLD xlist_test [ 14s] CCLD xusb_test_bypath [ 14s] CCLD xtalk_test [ 14s] CCLD xtalk_raw_test [ 14s] CCLD xtalk_send [ 14s] xtalk_sync.c:63:10: error: type of 'members' does not match original declaration [-Werror=lto-type-mismatch] [ 14s] 63 | } PACKED members; [ 14s] | ^ [ 14s] xtalk_raw.c:51:10: note: 'members' was previously declared here [ 14s] 51 | } PACKED members; [ 14s] | ^ [ 14s] xtalk_raw.c:51:10: note: code may be misoptimized unless '-fno- strict-aliasing' is used [ 14s] lto1: all warnings being treated as errors [ 14s] lto-wrapper: fatal error: gcc returned 1 exit status [ 14s] compilation terminated. Without lto, it compiles fine. It throws a couple of "interesting" warnings, but since this is rarely used test code, it's probably not worth it to dig into.. Cheers, Pete -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org