URL: <https://savannah.gnu.org/support/?111150>
Summary: m4-1.4.19 fails to build with -std=gnu23 (new GCC 15 default) Group: GNU M4 Submitter: thesamesam Submitted: Sat 16 Nov 2024 09:32:58 PM UTC Category: None Priority: 5 - Normal Severity: 3 - Normal Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any Operating System: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Sat 16 Nov 2024 09:32:58 PM UTC By: Sam James <thesamesam> m4-1.4.19 fails to build with GCC 15 trunk which now defaults to -std=gnu23: ``` x86_64-pc-linux-gnu-gcc -I. -O3 -march=native -mtls-dialect=gnu2 -flto=jobserver -fno-semantic-interposition -pipe -fcf-protection=none -fdiagnostics-color=always -fdiagnostics-urls=never -frecord-gcc-switches -fdiagnostics-details -Wa,-O2 -Wa,-mtune=znver2 -Warray-bounds -Wstrict-aliasing -Wfree-nonheap-object -Wuninitialized -Wmaybe-uninitialized -Wreturn-type -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -Warray-bounds -fdiagnostics-details -Wstringop-overread -Wstringop-overflow -Wstringop-truncation -Wbuiltin-declaration-mismatch -ggdb3 -Wformat -Werror=format-security -c -o gl_avltree_oset.o gl_avltree_oset.c In file included from gl_avltree_oset.h:21, from gl_avltree_oset.c:21: gl_oset.h:275:1: warning: 'nodiscard' attribute ignored [-Wattributes] 275 | GL_OSET_INLINE _GL_ATTRIBUTE_NODISCARD int | ^~~~~~~~~~~~~~ gl_oset.h:275:40: error: expected identifier or '(' before 'int' 275 | GL_OSET_INLINE _GL_ATTRIBUTE_NODISCARD int | ^~~ In file included from clean-temp-private.h:22, from clean-temp-simple.c:22: gl_list.h:633:1: warning: 'nodiscard' attribute ignored [-Wattributes] 633 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD int | ^~~~~~~~~~~~~~ gl_list.h:633:40: error: expected identifier or '(' before 'int' 633 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD int | ^~~ gl_list.h:688:1: warning: 'nodiscard' attribute ignored [-Wattributes] 688 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:688:40: error: expected identifier or '(' before 'gl_list_node_t' 688 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:695:1: warning: 'nodiscard' attribute ignored [-Wattributes] 695 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:695:40: error: expected identifier or '(' before 'gl_list_node_t' 695 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:701:1: warning: 'nodiscard' attribute ignored [-Wattributes] 701 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:701:40: error: expected identifier or '(' before 'gl_list_node_t' 701 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ gl_list.h:755:1: warning: 'nodiscard' attribute ignored [-Wattributes] 755 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t | ^~~~~~~~~~~~~~ [...] ```` The issue is redefinition of bool at least. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/support/?111150> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
signature.asc
Description: PGP signature