Can't build using CMAKE on Manjaro Linux
Description
CMake Error at /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:751 (message):
Compiling the CUDA compiler identification source file
"CMakeCUDACompilerId.cu" failed.
Compiler: /opt/cuda/bin/nvcc
Build flags:
Id flags: --keep;--keep-dir;tmp;-ccbin=/usr/bin/c++ -v
The output was:
4
#$ _NVVM_BRANCH_=nvvm
#$ _SPACE_=
#$ _CUDART_=cudart
#$ _HERE_=/opt/cuda/bin
#$ _THERE_=/opt/cuda/bin
#$ _TARGET_SIZE_=
#$ _TARGET_DIR_=
#$ _TARGET_DIR_=targets/x86_64-linux
#$ TOP=/opt/cuda/bin/..
#$ NVVMIR_LIBRARY_DIR=/opt/cuda/bin/../nvvm/libdevice
#$ LD_LIBRARY_PATH=/opt/cuda/bin/../lib:
#$
PATH=/opt/cuda/bin/../nvvm/bin:/opt/cuda/bin:/home/mayeul/anaconda3/bin:/home/mayeul/anaconda3/condabin:/home/mayeul/.local/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
#$ INCLUDES="-I/opt/cuda/bin/../targets/x86_64-linux/include"
#$ LIBRARIES= "-L/opt/cuda/bin/../targets/x86_64-linux/lib/stubs"
"-L/opt/cuda/bin/../targets/x86_64-linux/lib"
#$ CUDAFE_FLAGS=
#$ PTXAS_FLAGS=
#$ rm tmp/a_dlink.reg.c
#$ "/usr/bin"/c++ -D__CUDA_ARCH_LIST__=520 -E -x c++ -D__CUDACC__
-D__NVCC__ "-I/opt/cuda/bin/../targets/x86_64-linux/include"
-D__CUDACC_VER_MAJOR__=12 -D__CUDACC_VER_MINOR__=1
-D__CUDACC_VER_BUILD__=105 -D__CUDA_API_VER_MAJOR__=12
-D__CUDA_API_VER_MINOR__=1 -D__NVCC_DIAG_PRAGMA_SUPPORT__=1 -include
"cuda_runtime.h" -m64 "CMakeCUDACompilerId.cu" -o
"tmp/CMakeCUDACompilerId.cpp4.ii"
#$ cudafe++ --c++17 --gnu_version=130101 --display_error_number
--orig_src_file_name "CMakeCUDACompilerId.cu" --orig_src_path_name
"/home/mayeul/Documents/LightGBM/build/CMakeFiles/3.26.4/CompilerIdCUDA/CMakeCUDACompilerId.cu"
--allow_managed --m64 --parse_templates --gen_c_file_name
"tmp/CMakeCUDACompilerId.cudafe1.cpp" --stub_file_name
"CMakeCUDACompilerId.cudafe1.stub.c" --gen_module_id_file
--module_id_file_name "tmp/CMakeCUDACompilerId.module_id"
"tmp/CMakeCUDACompilerId.cpp4.ii"
/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,
^
/usr/include/stdlib.h(234): error: identifier "_Float32" is undefined
_Float32 __f)
^
/usr/include/stdlib.h(240): error: identifier "_Float64" is undefined
_Float64 __f)
^
/usr/include/stdlib.h(246): error: identifier "_Float128" is undefined
_Float128 __f)
^
/usr/include/stdlib.h(252): error: identifier "_Float32x" is undefined
_Float32x __f)
^
/usr/include/stdlib.h(258): error: identifier "_Float64x" is undefined
_Float64x __f)
^
/usr/include/stdlib.h(317): error: identifier "_Float32" is undefined
extern _Float32 strtof32_l (const char *__restrict __nptr,
^
/usr/include/stdlib.h(324): error: identifier "_Float64" is undefined
extern _Float64 strtof64_l (const char *__restrict __nptr,
^
/usr/include/stdlib.h(331): error: identifier "_Float128" is undefined
extern _Float128 strtof128_l (const char *__restrict __nptr,
^
/usr/include/stdlib.h(338): error: identifier "_Float32x" is undefined
extern _Float32x strtof32x_l (const char *__restrict __nptr,
^
/usr/include/stdlib.h(345): error: identifier "_Float64x" is undefined
extern _Float64x strtof64x_l (const char *__restrict __nptr,
^
/usr/include/bits/mathcalls.h(53): error: identifier "_Float32" is
undefined
extern _Float32 acosf32 (_Float32 __x) noexcept (true); extern _Float32 __acosf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(53): error: identifier "_Float32" is
undefined
extern _Float32 acosf32 (_Float32 __x) noexcept (true); extern _Float32 __acosf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(53): error: identifier "_Float32" is
undefined
extern _Float32 acosf32 (_Float32 __x) noexcept (true); extern _Float32 __acosf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(53): error: identifier "_Float32" is
undefined
extern _Float32 acosf32 (_Float32 __x) noexcept (true); extern _Float32 __acosf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(55): error: identifier "_Float32" is
undefined
extern _Float32 asinf32 (_Float32 __x) noexcept (true); extern _Float32 __asinf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(55): error: identifier "_Float32" is
undefined
extern _Float32 asinf32 (_Float32 __x) noexcept (true); extern _Float32 __asinf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(55): error: identifier "_Float32" is
undefined
extern _Float32 asinf32 (_Float32 __x) noexcept (true); extern _Float32 __asinf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(55): error: identifier "_Float32" is
undefined
extern _Float32 asinf32 (_Float32 __x) noexcept (true); extern _Float32 __asinf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(57): error: identifier "_Float32" is
undefined
extern _Float32 atanf32 (_Float32 __x) noexcept (true); extern _Float32 __atanf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(57): error: identifier "_Float32" is
undefined
extern _Float32 atanf32 (_Float32 __x) noexcept (true); extern _Float32 __atanf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(57): error: identifier "_Float32" is
undefined
extern _Float32 atanf32 (_Float32 __x) noexcept (true); extern _Float32 __atanf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(57): error: identifier "_Float32" is
undefined
extern _Float32 atanf32 (_Float32 __x) noexcept (true); extern _Float32 __atanf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(59): error: identifier "_Float32" is
undefined
extern _Float32 atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2f32 (_Float32 __y, _Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(59): error: identifier "_Float32" is
undefined
extern _Float32 atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2f32 (_Float32 __y, _Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(59): error: identifier "_Float32" is
undefined
extern _Float32 atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2f32 (_Float32 __y, _Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(59): error: identifier "_Float32" is
undefined
extern _Float32 atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2f32 (_Float32 __y, _Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(59): error: identifier "_Float32" is
undefined
extern _Float32 atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2f32 (_Float32 __y, _Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(59): error: identifier "_Float32" is
undefined
extern _Float32 atan2f32 (_Float32 __y, _Float32 __x) noexcept (true); extern _Float32 __atan2f32 (_Float32 __y, _Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(62): error: identifier "_Float32" is
undefined
extern _Float32 cosf32 (_Float32 __x) noexcept (true); extern _Float32 __cosf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(62): error: identifier "_Float32" is
undefined
extern _Float32 cosf32 (_Float32 __x) noexcept (true); extern _Float32 __cosf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(62): error: identifier "_Float32" is
undefined
extern _Float32 cosf32 (_Float32 __x) noexcept (true); extern _Float32 __cosf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(62): error: identifier "_Float32" is
undefined
extern _Float32 cosf32 (_Float32 __x) noexcept (true); extern _Float32 __cosf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(64): error: identifier "_Float32" is
undefined
extern _Float32 sinf32 (_Float32 __x) noexcept (true); extern _Float32 __sinf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(64): error: identifier "_Float32" is
undefined
extern _Float32 sinf32 (_Float32 __x) noexcept (true); extern _Float32 __sinf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(64): error: identifier "_Float32" is
undefined
extern _Float32 sinf32 (_Float32 __x) noexcept (true); extern _Float32 __sinf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(64): error: identifier "_Float32" is
undefined
extern _Float32 sinf32 (_Float32 __x) noexcept (true); extern _Float32 __sinf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(66): error: identifier "_Float32" is
undefined
extern _Float32 tanf32 (_Float32 __x) noexcept (true); extern _Float32 __tanf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(66): error: identifier "_Float32" is
undefined
extern _Float32 tanf32 (_Float32 __x) noexcept (true); extern _Float32 __tanf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(66): error: identifier "_Float32" is
undefined
extern _Float32 tanf32 (_Float32 __x) noexcept (true); extern _Float32 __tanf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(66): error: identifier "_Float32" is
undefined
extern _Float32 tanf32 (_Float32 __x) noexcept (true); extern _Float32 __tanf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(71): error: identifier "_Float32" is
undefined
extern _Float32 coshf32 (_Float32 __x) noexcept (true); extern _Float32 __coshf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(71): error: identifier "_Float32" is
undefined
extern _Float32 coshf32 (_Float32 __x) noexcept (true); extern _Float32 __coshf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(71): error: identifier "_Float32" is
undefined
extern _Float32 coshf32 (_Float32 __x) noexcept (true); extern _Float32 __coshf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(71): error: identifier "_Float32" is
undefined
extern _Float32 coshf32 (_Float32 __x) noexcept (true); extern _Float32 __coshf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(73): error: identifier "_Float32" is
undefined
extern _Float32 sinhf32 (_Float32 __x) noexcept (true); extern _Float32 __sinhf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(73): error: identifier "_Float32" is
undefined
extern _Float32 sinhf32 (_Float32 __x) noexcept (true); extern _Float32 __sinhf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(73): error: identifier "_Float32" is
undefined
extern _Float32 sinhf32 (_Float32 __x) noexcept (true); extern _Float32 __sinhf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(73): error: identifier "_Float32" is
undefined
extern _Float32 sinhf32 (_Float32 __x) noexcept (true); extern _Float32 __sinhf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(75): error: identifier "_Float32" is
undefined
extern _Float32 tanhf32 (_Float32 __x) noexcept (true); extern _Float32 __tanhf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(75): error: identifier "_Float32" is
undefined
extern _Float32 tanhf32 (_Float32 __x) noexcept (true); extern _Float32 __tanhf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(75): error: identifier "_Float32" is
undefined
extern _Float32 tanhf32 (_Float32 __x) noexcept (true); extern _Float32 __tanhf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(75): error: identifier "_Float32" is
undefined
extern _Float32 tanhf32 (_Float32 __x) noexcept (true); extern _Float32 __tanhf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(79): error: identifier "_Float32" is
undefined
extern void sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true); extern void __sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true)
^
/usr/include/bits/mathcalls.h(79): error: identifier "_Float32" is
undefined
extern void sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true); extern void __sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true)
^
/usr/include/bits/mathcalls.h(79): error: identifier "_Float32" is
undefined
extern void sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true); extern void __sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true)
^
/usr/include/bits/mathcalls.h(79): error: identifier "_Float32" is
undefined
extern void sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true); extern void __sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true)
^
/usr/include/bits/mathcalls.h(79): error: identifier "_Float32" is
undefined
extern void sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true); extern void __sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true)
^
/usr/include/bits/mathcalls.h(79): error: identifier "_Float32" is
undefined
extern void sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true); extern void __sincosf32 (_Float32 __x, _Float32 *__sinx, _Float32 *__cosx) noexcept (true)
^
/usr/include/bits/mathcalls.h(85): error: identifier "_Float32" is
undefined
extern _Float32 acoshf32 (_Float32 __x) noexcept (true); extern _Float32 __acoshf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(85): error: identifier "_Float32" is
undefined
extern _Float32 acoshf32 (_Float32 __x) noexcept (true); extern _Float32 __acoshf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(85): error: identifier "_Float32" is
undefined
extern _Float32 acoshf32 (_Float32 __x) noexcept (true); extern _Float32 __acoshf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(85): error: identifier "_Float32" is
undefined
extern _Float32 acoshf32 (_Float32 __x) noexcept (true); extern _Float32 __acoshf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(87): error: identifier "_Float32" is
undefined
extern _Float32 asinhf32 (_Float32 __x) noexcept (true); extern _Float32 __asinhf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(87): error: identifier "_Float32" is
undefined
extern _Float32 asinhf32 (_Float32 __x) noexcept (true); extern _Float32 __asinhf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(87): error: identifier "_Float32" is
undefined
extern _Float32 asinhf32 (_Float32 __x) noexcept (true); extern _Float32 __asinhf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(87): error: identifier "_Float32" is
undefined
extern _Float32 asinhf32 (_Float32 __x) noexcept (true); extern _Float32 __asinhf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(89): error: identifier "_Float32" is
undefined
extern _Float32 atanhf32 (_Float32 __x) noexcept (true); extern _Float32 __atanhf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(89): error: identifier "_Float32" is
undefined
extern _Float32 atanhf32 (_Float32 __x) noexcept (true); extern _Float32 __atanhf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(89): error: identifier "_Float32" is
undefined
extern _Float32 atanhf32 (_Float32 __x) noexcept (true); extern _Float32 __atanhf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(89): error: identifier "_Float32" is
undefined
extern _Float32 atanhf32 (_Float32 __x) noexcept (true); extern _Float32 __atanhf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(95): error: identifier "_Float32" is
undefined
extern _Float32 expf32 (_Float32 __x) noexcept (true); extern _Float32 __expf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(95): error: identifier "_Float32" is
undefined
extern _Float32 expf32 (_Float32 __x) noexcept (true); extern _Float32 __expf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(95): error: identifier "_Float32" is
undefined
extern _Float32 expf32 (_Float32 __x) noexcept (true); extern _Float32 __expf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(95): error: identifier "_Float32" is
undefined
extern _Float32 expf32 (_Float32 __x) noexcept (true); extern _Float32 __expf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(98): error: identifier "_Float32" is
undefined
extern _Float32 frexpf32 (_Float32 __x, int *__exponent) noexcept (true); extern _Float32 __frexpf32 (_Float32 __x, int *__exponent) noexcept (true);
^
/usr/include/bits/mathcalls.h(98): error: identifier "_Float32" is
undefined
extern _Float32 frexpf32 (_Float32 __x, int *__exponent) noexcept (true); extern _Float32 __frexpf32 (_Float32 __x, int *__exponent) noexcept (true);
^
/usr/include/bits/mathcalls.h(98): error: identifier "_Float32" is
undefined
extern _Float32 frexpf32 (_Float32 __x, int *__exponent) noexcept (true); extern _Float32 __frexpf32 (_Float32 __x, int *__exponent) noexcept (true);
^
/usr/include/bits/mathcalls.h(98): error: identifier "_Float32" is
undefined
extern _Float32 frexpf32 (_Float32 __x, int *__exponent) noexcept (true); extern _Float32 __frexpf32 (_Float32 __x, int *__exponent) noexcept (true);
^
/usr/include/bits/mathcalls.h(101): error: identifier "_Float32" is
undefined
extern _Float32 ldexpf32 (_Float32 __x, int __exponent) noexcept (true); extern _Float32 __ldexpf32 (_Float32 __x, int __exponent) noexcept (true);
^
/usr/include/bits/mathcalls.h(101): error: identifier "_Float32" is
undefined
extern _Float32 ldexpf32 (_Float32 __x, int __exponent) noexcept (true); extern _Float32 __ldexpf32 (_Float32 __x, int __exponent) noexcept (true);
^
/usr/include/bits/mathcalls.h(101): error: identifier "_Float32" is
undefined
extern _Float32 ldexpf32 (_Float32 __x, int __exponent) noexcept (true); extern _Float32 __ldexpf32 (_Float32 __x, int __exponent) noexcept (true);
^
/usr/include/bits/mathcalls.h(101): error: identifier "_Float32" is
undefined
extern _Float32 ldexpf32 (_Float32 __x, int __exponent) noexcept (true); extern _Float32 __ldexpf32 (_Float32 __x, int __exponent) noexcept (true);
^
/usr/include/bits/mathcalls.h(104): error: identifier "_Float32" is
undefined
extern _Float32 logf32 (_Float32 __x) noexcept (true); extern _Float32 __logf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(104): error: identifier "_Float32" is
undefined
extern _Float32 logf32 (_Float32 __x) noexcept (true); extern _Float32 __logf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(104): error: identifier "_Float32" is
undefined
extern _Float32 logf32 (_Float32 __x) noexcept (true); extern _Float32 __logf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(104): error: identifier "_Float32" is
undefined
extern _Float32 logf32 (_Float32 __x) noexcept (true); extern _Float32 __logf32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(107): error: identifier "_Float32" is
undefined
extern _Float32 log10f32 (_Float32 __x) noexcept (true); extern _Float32 __log10f32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(107): error: identifier "_Float32" is
undefined
extern _Float32 log10f32 (_Float32 __x) noexcept (true); extern _Float32 __log10f32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(107): error: identifier "_Float32" is
undefined
extern _Float32 log10f32 (_Float32 __x) noexcept (true); extern _Float32 __log10f32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(107): error: identifier "_Float32" is
undefined
extern _Float32 log10f32 (_Float32 __x) noexcept (true); extern _Float32 __log10f32 (_Float32 __x) noexcept (true);
^
/usr/include/bits/mathcalls.h(110): error: identifier "_Float32" is
undefined
extern _Float32 modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true); extern _Float32 __modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2)));
^
/usr/include/bits/mathcalls.h(110): error: identifier "_Float32" is
undefined
extern _Float32 modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true); extern _Float32 __modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2)));
^
/usr/include/bits/mathcalls.h(110): error: identifier "_Float32" is
undefined
extern _Float32 modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true); extern _Float32 __modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2)));
^
/usr/include/bits/mathcalls.h(110): error: identifier "_Float32" is
undefined
extern _Float32 modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true); extern _Float32 __modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2)));
^
/usr/include/bits/mathcalls.h(110): error: identifier "_Float32" is
undefined
extern _Float32 modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true); extern _Float32 __modff32 (_Float32 __x, _Float32 *__iptr) noexcept (true) __attribute__ ((__nonnull__ (2)));
^
Error limit reached.
100 errors detected in the compilation of "CMakeCUDACompilerId.cu".
Compilation terminated.
# --error 0x4 --
Call Stack (most recent call first):
/usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:8 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:53 (__determine_compiler_id_test)
/usr/share/cmake/Modules/CMakeDetermineCUDACompiler.cmake:307 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:152 (enable_language)
Reproducible example
git clone --recursive https://github.com/Microsoft/LightGBM
mkdir build
cd build
cmake -DUSE_CUDA=1 ..
Environment info
Computer - MSI GF65 Thin Intel® Core™ i5-9300H × 8 Nvidia RTX 2060 Mobile Linux 6.1.31-2-MANJARO gcc (GCC) 13.1.1 20230429 nvcc: NVIDIA (R) Cuda compiler driver Cuda compilation tools, release 12.1, V12.1.105 Build cuda_12.1.r12.1/compiler.32688072_0 g++ (GCC) 13.1.1 20230429 boost 1.81.0-6 boost-libs 1.81.0-6 glibc 2.37-3 cmake version 3.26.4
Command(s) you used to install LightGBM
git clone --recursive https://github.com/Microsoft/LightGBM
mkdir build
cd build
cmake -DUSE_CUDA=1 ..
##Additional Comments I tried to reinstall pretty much every package I saw mentioned in link with lightgbm or cuda without success.
I have the same quenstion. @jameslamb
Here is the problem: "g++ (GCC) 13.1.1 20230429". It turns out CUDA 12.x has issues with this version of the GCC. You'll need to downgrade GCC to 12.x in order to solve it. In my case everything works fine and the error was gone when I downgraded to "GCC 12.2.1-4". You may want to follow this conversation as well: https://forums.developer.nvidia.com/t/identifier-float32-is-undefined-etc-cuda-12-2-0-gcc-13-1/258930 Good luck!
I didn't work for me after downloading gcc12 (12.3.0) and setting the variables with export CXX=g++-12 CC=gcc-12
And i am unable to install gcc11 because of some conflicting packages
Sorry for the long delay in response.
I'm hoping that recent changes in LightGBM's packaging will help with this (especially #6260 and #6272). Could someone participating in this thread with access to a Manjaro Linux system please try again, with the latest version of LightGBM?
cc @MayeulSGC @lxysl @gvidinski
This issue has been automatically closed because it has been awaiting a response for too long. When you have time to to work with the maintainers to resolve this issue, please post a new comment and it will be re-opened. If the issue has been locked for editing by the time you return to it, please open a new issue and reference this one. Thank you for taking the time to improve LightGBM!