Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943710 - dev-libs/gmp-6.3.0-r1 fails configure with gcc-15.0.0_pre20241117: conftest.c:12:48: error: too many arguments to function 'g'
Summary: dev-libs/gmp-6.3.0-r1 fails configure with gcc-15.0.0_pre20241117: conftest....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-18 07:08 UTC by tdr
Modified: 2024-11-18 14:28 UTC (History)
1 user (show)

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


Attachments
configure log (config.log,13.35 KB, text/plain)
2024-11-18 07:09 UTC, tdr
Details
emerge --info (tdr-emerge--info.txt,6.30 KB, text/plain)
2024-11-18 07:10 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:08:48 UTC
dev-libs/gmp-6.3.0-r1  fails configure phase


Reproducible: Always

Steps to Reproduce:
emerge =gcc-15.0.0_pre20241117
emerge =gmp-6.3.0
Actual Results:  
conftest.c:12:48: error: too many arguments to function 'g'
   12 | for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();}}
      |                                                ^
conftest.c:7:6: note: declared here
    7 | void g(){}
      |      ^
configure.wrapped:6588: $? = 1
failed program was:
/* The following provokes a segfault in the compiler on powerpc-apple-darwin.
   Extracted from tests/mpn/t-iord_u.c.  Causes Apple's gcc 3.3 build 1640 and
   1666 to segfault with e.g., -O2 -mpowerpc64.  */

#if defined (__GNUC__) && ! defined (__cplusplus)
typedef unsigned long long t1;typedef t1*t2;


works with =gcc-15.0.0_pre20241110
Comment 1 tdr 2024-11-18 07:09:24 UTC
Created attachment 908920 [details]
configure log
Comment 2 tdr 2024-11-18 07:10:24 UTC
Created attachment 908921 [details]
emerge --info
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-11-18 07:11:05 UTC
This is another C23 issue, as void g() now means "accepts no arguments".
Comment 5 Larry the Git Cow gentoo-dev 2024-11-18 14:28:06 UTC
The bug has been closed via the following commit(s):

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

commit 8017296671ac17c48f70c888413b648b7b00400d
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-11-18 14:26:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-11-18 14:27:48 +0000

    dev-libs/gmp: build w/ -std=gnu17
    
    Bug: https://gmplib.org/list-archives/gmp-bugs/2024-November/005550.html
    Closes: https://bugs.gentoo.org/943710
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/gmp/gmp-6.3.0-r1.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)