[Bug 1222637] New: emacs package does not build with gcc14
https://bugzilla.suse.com/show_bug.cgi?id=1222637 Bug ID: 1222637 Summary: emacs package does not build with gcc14 Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: screening-team-bugs@suse.de Reporter: mjambor@suse.com QA Contact: qa-bugs@suse.de CC: werner@suse.com Blocks: 1220571 Target Milestone: --- Found By: --- Blocker: --- Emacs package does not build with gcc 14, which treats as errors a number of situations which were only warnings before (see bug 1220571 for more details). The error is: xsettings.c: In function 'apply_xft_settings': xsettings.c:846:25: error: implicit declaration of function 'round' [-Wimplicit-function-declaration] 846 | oldsettings.dpi = round(oldsettings.dpi); | ^~~~~ xsettings.c:67:1: note: include '<math.h>' or provide a declaration of 'round' 66 | #include <cairo/cairo-ft.h> +++ |+#include <math.h> 67 | #endif It seems that the problem comes from SUSE specific patch emacs-25.1-custom-fonts.patch. Adding #include <math.h> to it results in a successfully finished build. As of 10th April 2024, this can be conveniently tested locally with: osc build --alternative-project home:rguenther:nextgcc -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222637 https://bugzilla.suse.com/show_bug.cgi?id=1222637#c1 --- Comment #1 from Dr. Werner Fink <werner@suse.com> --- Just moved the #include <math.h> in src/xsettings.c from Xft section into the global section, build is running -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222637 https://bugzilla.suse.com/show_bug.cgi?id=1222637#c2 --- Comment #2 from OBSbugzilla Bot <bwiedemann+obsbugzillabot@suse.com> --- This is an autogenerated message for OBS integration: This bug (1222637) was mentioned in https://build.opensuse.org/request/show/1166776 Factory / emacs -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1222637 https://bugzilla.suse.com/show_bug.cgi?id=1222637#c3 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #3 from Dr. Werner Fink <werner@suse.com> --- (In reply to OBSbugzilla Bot from comment #2)
This is an autogenerated message for OBS integration: This bug (1222637) was mentioned in https://build.opensuse.org/request/show/1166776 Factory / emacs -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com