Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943743 - =dev-libs/ffcall-2.4-r1 failes with =gcc-15.0.0_pre20241117: gl_list.h:769:40: error: expected identifier or ‘(’ before ‘gl_list_node_t’
Summary: =dev-libs/ffcall-2.4-r1 failes with =gcc-15.0.0_pre20241117: gl_list.h:769:40...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Common Lisp Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-18 09:00 UTC by tdr
Modified: 2024-11-18 09:36 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build failure log (ffcall-2.4-r1:20241118-085306.build.log,46.45 KB, text/plain)
2024-11-18 09:00 UTC, tdr
Details
emerge --info (tdr-emerge--info.txt,6.30 KB, text/plain)
2024-11-18 09:01 UTC, tdr
Details
build fail log (ffcall-2.4-r1:20241118-085306.build.log,46.39 KB, text/plain)
2024-11-18 09:09 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tdr 2024-11-18 09:00:39 UTC
gcc-15.0.0_pre20241117 default to using -std=gnu23 (stricter)


Reproducible: Always

Steps to Reproduce:
emerge =gcc-15.0.0_pre20241117
emerge =dev-libs/ffcall-2.4-r1
Actual Results:  
l_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
      | ^~~~~~~~~~~~~~
gl_list.h:755:40: error: expected identifier or ‘(’ before ‘gl_list_node_t’
  755 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t
      |                                        ^~~~~~~~~~~~~~
gl_list.h:762:1: warning: ‘nodiscard’ attribute ignored [-Wattributes]
  762 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t
      | ^~~~~~~~~~~~~~
gl_list.h:762:40: error: expected identifier or ‘(’ before ‘gl_list_node_t’
  762 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t
      |                                        ^~~~~~~~~~~~~~
gl_list.h:769:1: warning: ‘nodiscard’ attribute ignored [-Wattributes]
  769 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t
      | ^~~~~~~~~~~~~~
gl_list.h:769:40: error: expected identifier or ‘(’ before ‘gl_list_node_t’
  769 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t
      |                                        ^~~~~~~~~~~~~~
gl_list.h:776:1: warning: ‘nodiscard’ attribute ignored [-Wattributes]
  776 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t
      | ^~~~~~~~~~~~~~
gl_list.h:776:40: error: expected identifier or ‘(’ before ‘gl_list_node_t’
  776 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t
      |                                        ^~~~~~~~~~~~~~
gl_list.h:783:1: warning: ‘nodiscard’ attribute ignored [-Wattributes]
  783 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t
      | ^~~~~~~~~~~~~~
gl_list.h:783:40: error: expected identifier or ‘(’ before ‘gl_list_node_t’
  783 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t
      |                                        ^~~~~~~~~~~~~~
gl_list.h:894:1: warning: ‘nodiscard’ attribute ignored [-Wattributes]
  894 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t
      | ^~~~~~~~~~~~~~
gl_list.h:894:40: error: expected identifier or ‘(’ before ‘gl_list_node_t’
  894 | GL_LIST_INLINE _GL_ATTRIBUTE_NODISCARD gl_list_node_t
      |                                        ^~~~~~~~~~~~~~
clean-temp-simple.c: In function ‘register_temporary_file’:
clean-temp-simple.c:348:11: error: implicit declaration of function ‘gl_list_nx_add_first’; did you mean ‘gl_list_remove_first’? [-Wimplicit-function-declaration]
  348 |       if (gl_list_nx_add_first (file_cleanup_list, absolute_file_name_copy)
      |           ^~~~~~~~~~~~~~~~~~~~
      |           gl_list_remove_first
clean-temp-simple.c:349:11: warning: comparison between pointer and integer
  349 |           == NULL)
      |           ^~


builds with -std=gnu17

also works with gcc:15.0.0_pre20241110
Comment 1 tdr 2024-11-18 09:00:53 UTC
Created attachment 908959 [details]
build failure log
Comment 2 tdr 2024-11-18 09:01:14 UTC
Created attachment 908960 [details]
emerge --info
Comment 3 tdr 2024-11-18 09:09:25 UTC
Created attachment 908961 [details]
build fail log
Comment 4 Larry the Git Cow gentoo-dev 2024-11-18 09:36:08 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8dc343529e52550ccca2eb5441cca6dace7a7042

commit 8dc343529e52550ccca2eb5441cca6dace7a7042
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-18 09:34:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-18 09:34:44 +0000

    dev-libs/ffcall: add 2.5
    
    I've dropped the slibtool patch (at least for now) because this release
    fixes building w/ C23 which is more important at the moment.
    
    Bug: https://bugs.gentoo.org/776976
    Bug: https://bugs.gentoo.org/829663
    Closes: https://bugs.gentoo.org/879795
    Closes: https://bugs.gentoo.org/943743
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/ffcall/Manifest          |  1 +
 dev-libs/ffcall/ffcall-2.5.ebuild | 60 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+)