Bugzilla – Bug 1227856
Package MozillaFirefox does not build with gcc14 because of new errors
Last modified: 2024-07-19 09:31:37 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 | ^
Upstream bug: https://firefox-source-docs.mozilla.org/setup/linux_build.html
(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
Of course, stupid mistake. Sorry. I'm correcting the URL field too.
I have created https://build.opensuse.org/request/show/1188580 to add the upstream fix.