Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943712 - =dev-scheme/guile-3.0.10-r102 fails with gcc-15.0.0_pre20241117: control.c:152:23: error: passing argument 5 of 'scm_c_define_gsubr' from incompatible pointer type
Summary: =dev-scheme/guile-3.0.10-r102 fails with gcc-15.0.0_pre20241117: control.c:15...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Scheme Project
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-18 07:23 UTC by tdr
Modified: 2024-12-09 05:18 UTC (History)
2 users (show)

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


Attachments
emerge --info (tdr-emerge--info.txt,6.30 KB, text/plain)
2024-11-18 07:24 UTC, tdr
Details
failed build log (guile-3.0.10-r102:20241118-071824.build.log,285.08 KB, text/plain)
2024-11-18 07:25 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 07:23:50 UTC
gcc-15.0.0_pre20241117 default to using -std=gnu23 (stricter)

multiple incompatible type

Reproducible: Always

Actual Results:  
control.c:152:23: error: passing argument 5 of 'scm_c_define_gsubr' from incompatible pointer type [-Wincompatible-pointer-types]
  152 |                       scm_suspendable_continuation_p);
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                       |
      |                       struct scm_unused_struct * (*)(struct scm_unused_struct *)
In file included from control.c:29:
gsubr.h:72:71: note: expected 'scm_t_subr' {aka 'struct scm_unused_struct * (*)(void)'} but argument is of type 'struct scm_unused_struct * (*)(struct scm_unused_struct *)'
   72 |                                 int req, int opt, int rst, scm_t_subr fcn);
      |                                                            ~~~~~~~~~~~^~~
make[3]: *** [Makefile:3145: libguile_3.0_la-control.lo] Error 1


works with gcc:15.0.0_pre20241110
Comment 1 tdr 2024-11-18 07:24:10 UTC
Created attachment 908923 [details]
emerge --info
Comment 2 tdr 2024-11-18 07:25:38 UTC
Created attachment 908924 [details]
failed build log
Comment 4 Larry the Git Cow gentoo-dev 2024-11-26 02:56:00 UTC
The bug has been closed via the following commit(s):

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

commit f2ce84914c0b4827aeb9693a89950b598ed0fa15
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-26 02:45:39 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-26 02:55:23 +0000

    dev-scheme/guile: fix C23 compat for 3.0.10
    
    Closes: https://bugs.gentoo.org/943712
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-scheme/guile/files/guile-3.0.10-c23.patch | 32 +++++++++++++++++++++++++++
 dev-scheme/guile/guile-3.0.10-r102.ebuild     |  1 +
 2 files changed, 33 insertions(+)
Comment 5 Larry the Git Cow gentoo-dev 2024-12-09 05:18:20 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4be86f0473bac479a77fb238d7259ddded7a5287

commit 4be86f0473bac479a77fb238d7259ddded7a5287
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-12-09 05:17:31 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-09 05:17:31 +0000

    dev-scheme/guile: build 3.0.10-r102 w/ -std=gnu17
    
    The fix from bug #944029 seems insufficient and master has changed
    a fair bit so I've not gone through commits to see if it's fixed there
    yet.
    
    Bug: https://bugs.gentoo.org/943712
    Closes: https://bugs.gentoo.org/944029
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-scheme/guile/guile-3.0.10-r102.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)