Bug 1227960 - Package qemu does not build with GCC 14
Summary: Package qemu does not build with GCC 14
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Virtualization:Other (show other bugs)
Version: Current
Hardware: Other Other
: P3 - Medium : Normal (vote)
Target Milestone: ---
Assignee: Fabiano Rosas
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc14
  Show dependency treegraph
 
Reported: 2024-07-16 15:46 UTC by Martin Jambor
Modified: 2024-07-19 09:19 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Jambor 2024-07-16 15:46:18 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.
Comment 1 Fabiano Rosas 2024-07-16 17:33:13 UTC
> 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.
Comment 2 Martin Jambor 2024-07-18 09:19:41 UTC
Just inserting the contents of common.inc instead of the line that attempts to include it works.  Thanks.
Comment 3 Martin Jambor 2024-07-19 09:19:38 UTC
I have created https://build.opensuse.org/request/show/1188571