Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save TomasTomecek/aaaf91e0480b8d3825fa1f374de4aeca to your computer and use it in GitHub Desktop.
Save TomasTomecek/aaaf91e0480b8d3825fa1f374de4aeca to your computer and use it in GitHub Desktop.
GCC 14, F40, CUDA compilation errors
-- /usr/bin/g++ /home/fedora/tt/python-torch/pytorch-6a89a753b1556fe8558582c452fdba083f6ec01a/torch/abi-check.cpp -o /home/fedora/tt/python-torch/pytorch-6a89a753b1556fe8558582c13:57:07 [233/1713]
uild/abi-check
-- Determined _GLIBCXX_USE_CXX11_ABI=1
-- Could not find ccache. Consider installing ccache to speed up compilation.
-- Current compiler supports avx2 extension. Will build perfkernels.
-- Current compiler supports avx512f extension. Will build fbgemm.
CMake Error at /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:780 (message):
Compiling the CUDA compiler identification source file
"CMakeCUDACompilerId.cu" failed.
Compiler: /usr/local/cuda/bin/nvcc
Build flags:
-DLIBCUDACXX_ENABLE_SIMPLIFIED_COMPLEX_OPERATIONS;-fPIC;-D_GLIBCXX_USE_CXX11_ABI=1;-allow-unsupported-compiler;-Xfatbin;-compress-all
Id flags: --keep;--keep-dir;tmp -v
The output was:
1
nvcc fatal : Unknown option '-fPIC'
Compiling the CUDA compiler identification source file
"CMakeCUDACompilerId.cu" failed.
Compiler: /usr/local/cuda/bin/nvcc
Build flags:
Id flags: --keep;--keep-dir;tmp -v
The output was:
2
#$ 13:57:07 [162/1713]
PATH=/usr/local/cuda/bin/../nvvm/bin:/usr/local/cuda/bin:/home/fedora/.local/bin:/home/fedora/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin
#$ INCLUDES="-I/usr/local/cuda/bin/../targets/x86_64-linux/include"
#$ LIBRARIES= "-L/usr/local/cuda/bin/../targets/x86_64-linux/lib/stubs"
"-L/usr/local/cuda/bin/../targets/x86_64-linux/lib"
#$ CUDAFE_FLAGS=
#$ PTXAS_FLAGS=
#$ rm tmp/a_dlink.reg.c
#$ gcc -D__NV_NO_HOST_COMPILER_CHECK=1 -D__CUDA_ARCH_LIST__=520
-D__NV_LEGACY_LAUNCH -E -x c++ -D__CUDACC__ -D__NVCC__
"-I/usr/local/cuda/bin/../targets/x86_64-linux/include"
-D__CUDACC_VER_MAJOR__=12 -D__CUDACC_VER_MINOR__=4
-D__CUDACC_VER_BUILD__=99 -D__CUDA_API_VER_MAJOR__=12
-D__CUDA_API_VER_MINOR__=4 -D__NVCC_DIAG_PRAGMA_SUPPORT__=1 -include
"cuda_runtime.h" -m64 "CMakeCUDACompilerId.cu" -o
"tmp/CMakeCUDACompilerId.cpp4.ii"
#$ cudafe++ --c++17 --gnu_version=140001 --display_error_number
--orig_src_file_name "CMakeCUDACompilerId.cu" --orig_src_path_name
"/home/fedora/tt/python-torch/pytorch-6a89a753b1556fe8558582c452fdba083f6ec01a/build/CMakeFiles/3.28.2/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/c++/14/x86_64-redhat-linux/bits/c++config.h(2668): error:
user-defined literal operator not found
typedef __decltype(0.0bf16) __bfloat16_t;
^
/usr/include/c++/14/type_traits(529): error: type name is not allowed
: public __bool_constant<__is_array(_Tp)>
/usr/include/c++/14/type_traits(529): error: identifier "__is_array" is 13:57:07 [114/1713]
undefined
: public __bool_constant<__is_array(_Tp)>
^
/usr/include/c++/14/type_traits(581): error: type name is not allowed
: public __bool_constant<__is_member_object_pointer(_Tp)>
^
/usr/include/c++/14/type_traits(581): error: identifier
"__is_member_object_pointer" is undefined
: public __bool_constant<__is_member_object_pointer(_Tp)>
^
/usr/include/c++/14/type_traits(603): error: type name is not allowed
: public __bool_constant<__is_member_function_pointer(_Tp)>
^
/usr/include/c++/14/type_traits(603): error: identifier
"__is_member_function_pointer" is undefined
: public __bool_constant<__is_member_function_pointer(_Tp)>
^
/usr/include/c++/14/type_traits(695): error: type name is not allowed
: public __bool_constant<__is_reference(_Tp)>
^
/usr/include/c++/14/type_traits(3328): error: type name is not allowed
inline constexpr bool is_member_pointer_v = __is_member_pointer(_Tp);
^
/usr/include/c++/14/bits/utility.h(237): error: __type_pack_element is not
a template
{ using type = __type_pack_element<_Np, _Types...>; };
^
20 errors detected in the compilation of "CMakeCUDACompilerId.cu".
# --error 0x2 --
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:135 (CMAKE_DETERMINE_COMPILER_ID)
cmake/public/cuda.cmake:47 (enable_language)
cmake/Dependencies.cmake:44 (include)
CMakeLists.txt:754 (include)
-- Configuring incomplete, errors occurred!
make: *** [Makefile:6: all] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment