Bug 1227856 - Package MozillaFirefox does not build with gcc14 because of new errors
Summary: Package MozillaFirefox does not build with gcc14 because of new errors
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Firefox (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Factory Mozilla
QA Contact: E-mail List
URL: https://bugzilla.mozilla.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks: modern_C
  Show dependency treegraph
 
Reported: 2024-07-15 15:58 UTC by Martin Jambor
Modified: 2024-07-19 09:31 UTC (History)
1 user (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-15 15:58:51 UTC
GCC 14 newly by default treats as errors a number of situations which
before were only warnings.  For more information see
https://gcc.gnu.org/gcc-14/porting_to.html and meta bug #1220571.

Because of this, package MozillaFirefox fails to compile.  This can be
seen online at:
https://build.opensuse.org/package/live_build_log/openSUSE:Factory:Staging:Gcc7/MozillaFirefox/standard/x86_64

It can be reproduced locally with command: osc build --clean --alternative-project home:rguenther:nextgcc

The (first) error (that halts the build) is:

[  140s]  1:25.51 /home/abuild/rpmbuild/BUILD/firefox-127.0.2/media/ffvpx/libavcodec/av1dec.c: In function ‘av1_decode_i
nit’:
[  140s]  1:25.51 /home/abuild/rpmbuild/BUILD/firefox-127.0.2/media/ffvpx/libavcodec/av1dec.c:890:20: error: assignment
to ‘AVContext *’ {aka ‘struct AVCtx *’} from incompatible pointer type ‘AVCodecContext *’ [-Wincompatible-pointer-types]
[  140s]  1:25.51   890 |     s->dovi.logctx = avctx;
[  140s]  1:25.51       |                    ^
Comment 1 Martin Jambor 2024-07-17 12:36:43 UTC
Upstream bug: https://firefox-source-docs.mozilla.org/setup/linux_build.html
Comment 2 Martin Sirringhaus 2024-07-17 12:52:43 UTC
(In reply to Martin Jambor from comment #1)
> Upstream bug: https://firefox-source-docs.mozilla.org/setup/linux_build.html

You probably meant to link to https://bugzilla.mozilla.org/show_bug.cgi?id=1905018
Comment 3 Martin Jambor 2024-07-17 13:41:17 UTC
Of course, stupid mistake.  Sorry.  I'm correcting the URL field too.
Comment 4 Martin Jambor 2024-07-19 09:31:37 UTC
I have created https://build.opensuse.org/request/show/1188580 to add the upstream fix.