FS#78362 - [cuda] gcc 13 incompatible with cuda 12.1.1

Attached to Project: Community Packages
Opened by Gustavo Alvarez (sl1pkn07) - Tuesday, 02 May 2023, 00:20 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Saturday, 06 May 2023, 14:20 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Hi. gcc 13 is incompatible with cuda 12.1.1

when try to build cuda things with gcc13 get

/usr/include/stdlib.h(141): error: identifier "_Float32" is undefined
extern _Float32 strtof32 (const char *__restrict __nptr,
^

/usr/include/stdlib.h(147): error: identifier "_Float64" is undefined
extern _Float64 strtof64 (const char *__restrict __nptr,
^

/usr/include/stdlib.h(153): error: identifier "_Float128" is undefined
extern _Float128 strtof128 (const char *__restrict __nptr,
^

/usr/include/stdlib.h(159): error: identifier "_Float32x" is undefined
extern _Float32x strtof32x (const char *__restrict __nptr,
^

/usr/include/stdlib.h(165): error: identifier "_Float64x" is undefined
extern _Float64x strtof64x (const char *__restrict __nptr,


seems need add a gcc-12 package and the symlinks in the cuda package points to gcc-12

greetings
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Saturday, 06 May 2023, 14:20 GMT
Reason for closing:  Fixed
Comment by Gustavo Alvarez (sl1pkn07) - Tuesday, 02 May 2023, 00:21 GMT
typo in the first line: cuda -> gcc 13

sorry. greetings
Comment by Toolybird (Toolybird) - Tuesday, 02 May 2023, 00:31 GMT
Yes, it happens with every GCC major version upgrade. @Svenstaro knows the routine..
Comment by Sven-Hendrik Haase (Svenstaro) - Thursday, 04 May 2023, 10:44 GMT
Yeah.... building gcc12 as we speak.
Comment by q rty (q234rty) - Friday, 05 May 2023, 20:46 GMT
Haven't got time to test but the PKGBUILD for 12.1.1-2 doesn't look correct(the symlink looks wrong)
Comment by Sven-Hendrik Haase (Svenstaro) - Friday, 05 May 2023, 22:10 GMT
Fuck that's what I get for multitasking too much :D
Comment by Sven-Hendrik Haase (Svenstaro) - Saturday, 06 May 2023, 00:30 GMT
So fixed package is pushed, please give it a go.
Comment by Jakub Klinkovský (lahwaacz) - Saturday, 06 May 2023, 06:00 GMT
cuda-12.1.1-3 works, thanks!

Loading...