Bugzilla – Bug 1227960
Package qemu does not build with GCC 14
Last modified: 2024-07-19 09:19:38 UTC
Package libyui does not build with gcc14, as can be seen here: https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/qemu/standard/x86_64 The error that stops the build is (a warning promoted to an error): [ 1014s] In file included from drivers/net/etherfabric.c:36: [ 1014s] In function ‘falcon_xaui_link_ok’, [ 1014s] inlined from ‘falcon_init_xmac’ at drivers/net/etherfabric.c:2355:14, [ 1014s] inlined from ‘falcon_init_xmac’ at drivers/net/etherfabric.c:2314:1: [ 1014s] drivers/net/etherfabric.h:524:28: error: ‘reg.u32[0]’ may be used uninitialized [-Werror=maybe-uninitialized] [ 1014s] 522 | (dword).u32[0] = ( ( (dword).u32[0] \ [ 1014s] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 1014s] 523 | & ~EFAB_INPLACE_MASK32 ( 0, 31, field ) ) \ [ 1014s] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 1014s] 524 | | EFAB_INSERT_FIELD32 ( 0, 31, field, value ) ); \ [ 1014s] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Normally, one is able to reproduce such failures locally with osc build --clean --noservice --alternative-project home:rguenther:nextgcc but for some reason obs always fails with " error: Failed build dependencies" when building qemu locally for me.
> Normally, one is able to reproduce such failures locally with > osc build --clean --noservice --alternative-project home:rguenther:nextgcc > but for some reason obs always fails with " error: Failed build > dependencies" when building qemu locally for me. About the local build: Does it complain about xen and spice? It seems the local osc has an issue with the way qemu.spec does `%include common.inc`. A workaround is to edit the spec to hardcode the common.inc contents, or use `osc build --without <dep>` to exclude the dependencies.
Just inserting the contents of common.inc instead of the line that attempts to include it works. Thanks.
I have created https://build.opensuse.org/request/show/1188571