Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 944066

Summary: =dev-lang/R-4.4.2 fails with c23/gcc-15.0.0_pre20241117-r2: sys-std.c:1189:1: error: expected identifier or ‘(’ before ‘void’
Product: Gentoo Linux Reporter: tdr <ted.d.rodgers>
Component: Current packagesAssignee: Gentoo Science Mathematics related packages <sci-mathematics>
Status: RESOLVED FIXED    
Severity: normal CC: ted.d.rodgers
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=946876
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 880545    
Attachments: build failure logs
build fail log
emerge --info

Description tdr 2024-11-20 02:00:08 UTC
c23 is more strict than previous standards

Reproducible: Always

Steps to Reproduce:
emerge -v1 =gcc-15.0.0_pre20241117-r2
USE="X cairo icu jpeg libdeflate lto nls openmp perl png profile readline tiff -doc -java -minimal" emerge -v1 =dev-lang/R-4.4.2::gentoo
Actual Results:  
sys-std.c:1189:1: warning: ‘noreturn’ attribute ignored [-Wattributes]
 1189 | void Rstd_CleanUp(SA_TYPE saveact, int status, int runLast)
      | ^~~~
sys-std.c:1189:1: error: expected identifier or ‘(’ before ‘void’
make[3]: *** [../../Makeconf:129: sys-std.o] Error 1


builds successfully with c17 std
Comment 1 tdr 2024-11-20 02:00:58 UTC
Created attachment 910421 [details]
build failure logs
Comment 2 tdr 2024-11-20 02:02:39 UTC
Created attachment 910422 [details]
build fail log
Comment 3 tdr 2024-11-20 02:03:25 UTC
Created attachment 910423 [details]
emerge --info
Comment 5 Larry the Git Cow gentoo-dev 2024-12-24 07:06:59 UTC
The bug has been closed via the following commit(s):

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

commit fa8d718c34a56b6122d73e21dd92b3956b3ff5f6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-12-24 07:06:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-12-24 07:06:24 +0000

    dev-lang/R: build w/ -std=gnu17
    
    The next release of R should be OK.
    
    Closes: https://bugs.gentoo.org/944066
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-lang/R/R-4.4.2.ebuild | 3 +++
 1 file changed, 3 insertions(+)