glibc 2.41 causes nvcc to fail
Description:
The new glibc causes nvcc to fail with the following errors:
/usr/include/bits/mathcalls.h(79): error: exception specification is incompatible with that of previous function "cospi" (declared at line 2595 of /opt/cuda/bin/../targets/x86_64-linux/include/crt/math_functions.h)
extern double cospi (double __x) noexcept (true); extern double __cospi (double __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(81): error: exception specification is incompatible with that of previous function "sinpi" (declared at line 2550 of /opt/cuda/bin/../targets/x86_64-linux/include/crt/math_functions.h)
extern double sinpi (double __x) noexcept (true); extern double __sinpi (double __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(79): error: exception specification is incompatible with that of previous function "cospif" (declared at line 2617 of /opt/cuda/bin/../targets/x86_64-linux/include/crt/math_functions.h)
extern float cospif (float __x) noexcept (true); extern float __cospif (float __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(81): error: exception specification is incompatible with that of previous function "sinpif" (declared at line 2573 of /opt/cuda/bin/../targets/x86_64-linux/include/crt/math_functions.h)
extern float sinpif (float __x) noexcept (true); extern float __sinpif (float __x) noexcept (true);
^
4 errors detected in the compilation of "s.cu".
Additional info:
- package version(s): 2.41+r2+g0a7c7a3e283a-1
Steps to reproduce:
- install cuda
touch test.cu-
nvcc test.cu, observe failure
Edited by poscat