mainGNU M4 - Support: sr #111150, m4-1.4.19 fails to build with...

 
 

sr #111150: m4-1.4.19 fails to build with -std=gnu23 (new GCC 15 default)

Submitter:  Sam James <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
Open/Closed:  Open Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 22 Nov 2024 01:03:54 PM UTC, comment #1: 

A newer m4 snapshot is available from https://gitlab.com/gnu-m4/ci-distcheck . Since it uses the most recent gnulib, I expect it to fix this problem.

Bruno Haible <haible>
Group Member
Sat 16 Nov 2024 09:32:58 PM UTC, original submission:  

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.

Sam James <thesamesam>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by thesamesam (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.14-7003.
    Corresponding source code