torch / torch7

http://torch.ch
Other
8.96k stars 2.38k forks source link

error installing torch 7 on fedora 29 #1185

Open fpradom opened 5 years ago

fpradom commented 5 years ago

on running install.sh at line 135 cd ${THIS_DIR}/extra/cutorch && $PREFIX/bin/luarocks make rocks/cutorch-scm-1.rockspec || exit 1 produced following error

-- Removing -DNDEBUG from compile flags -- TH_LIBRARIES: TH -- MAGMA not found. Compiling without MAGMA support -- Automatic GPU detection failed. Building for common architectures. -- Autodetected CUDA architecture(s): 3.0;3.5;5.0;5.2;6.0;6.1;6.1+PTX -- got cuda version 9.0 -- Found CUDA with FP16 support, compiling with torch.CudaHalfTensor -- CUDA_NVCC_FLAGS: -gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_61,code=compute_61;-DCUDA_HAS_FP16=1 -- THC_SO_VERSION: 0 -- Performing Test HAS_LUAL_SETFUNCS -- Performing Test HAS_LUAL_SETFUNCS - Failed -- Configuring done -- Generating done -- Build files have been written to: /home/f_prado/usr/local/torch/extra/cutorch/build [ 4%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o [ 4%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o [ 4%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCSleep.cu.o [ 4%] Building NVCC (Device) object lib/THC/CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o /usr/include/c++/8/type_traits(1049): error: type name is not allowed

/usr/include/c++/8/type_traits(1049): error: type name is not allowed

/usr/include/c++/8/type_traits(1049): error: identifier "__is_assignable" is undefined

/usr/include/c++/8/type_traits(1049): error: type name is not allowed

/usr/include/c++/8/type_traits(1049): error: type name is not allowed

/usr/include/c++/8/type_traits(1049): error: identifier "__is_assignable" is undefined

/usr/include/bits/floatn.h(74): error: invalid argument to attribute "mode"

/usr/include/bits/floatn.h(86): error: identifier "__float128" is undefined

/usr/include/bits/floatn.h(74): error: invalid argument to attribute "mode"

/usr/include/bits/floatn.h(86): error: identifier "__float128" is undefined

/usr/include/c++/8/utility(307): error: pack expansion does not make use of any argument packs

/usr/include/c++/8/utility(329): error: pack expansion does not make use of any argument packs

/usr/include/c++/8/utility(329): error: expected a ">" detected during instantiation of type "std::make_integer_sequence<std::size_t, _Num>" (340): here

/usr/include/c++/8/utility(307): error: pack expansion does not make use of any argument packs

/usr/include/c++/8/utility(329): error: pack expansion does not make use of any argument packs

/usr/include/c++/8/utility(329): error: expected a ">" detected during instantiation of type "std::make_integer_sequence<std::size_t, _Num>" (340): here

8 errors detected in the compilation of "/tmp/tmpxft_00006d38_00000000-11_THCSleep.compute_61.cpp1.ii". CMake Error at THC_generated_THCSleep.cu.o.cmake:267 (message): Error generating file /home/f_prado/usr/local/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCSleep.cu.o

make[2]: [lib/THC/CMakeFiles/THC.dir/build.make:79: lib/THC/CMakeFiles/THC.dir/THC_generated_THCSleep.cu.o] Error 1 make[2]: Se espera a que terminen otras tareas.... 8 errors detected in the compilation of "/tmp/tmpxft_00006d39_00000000-11_THCBlas.compute_61.cpp1.ii". CMake Error at THC_generated_THCBlas.cu.o.cmake:267 (message): Error generating file /home/f_prado/usr/local/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCBlas.cu.o

make[2]: *** [lib/THC/CMakeFiles/THC.dir/build.make:72: lib/THC/CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o] Error 1 /usr/include/c++/8/type_traits(1049): error: type name is not allowed

/usr/include/c++/8/type_traits(1049): error: type name is not allowed

/usr/include/c++/8/type_traits(1049): error: identifier "__is_assignable" is undefined

/usr/include/bits/floatn.h(74): error: invalid argument to attribute "mode"

/usr/include/bits/floatn.h(86): error: identifier "__float128" is undefined

/usr/include/c++/8/utility(307): error: pack expansion does not make use of any argument packs

/usr/include/c++/8/utility(329): error: pack expansion does not make use of any argument packs

/usr/include/c++/8/utility(329): error: expected a ">" detected during instantiation of type "std::make_integer_sequence<std::size_t, _Num>" (340): here

8 errors detected in the compilation of "/tmp/tmpxft_00006d57_00000000-11_THCReduceApplyUtils.compute_61.cpp1.ii". CMake Error at THC_generated_THCReduceApplyUtils.cu.o.cmake:267 (message): Error generating file /home/f_prado/usr/local/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCReduceApplyUtils.cu.o

make[2]: *** [lib/THC/CMakeFiles/THC.dir/build.make:65: lib/THC/CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o] Error 1 /usr/include/c++/8/type_traits(1049): error: type name is not allowed

/usr/include/c++/8/type_traits(1049): error: type name is not allowed

/usr/include/c++/8/type_traits(1049): error: identifier "__is_assignable" is undefined

/usr/include/bits/floatn.h(74): error: invalid argument to attribute "mode"

/usr/include/bits/floatn.h(86): error: identifier "__float128" is undefined

/usr/include/c++/8/utility(307): error: pack expansion does not make use of any argument packs

/usr/include/c++/8/utility(329): error: pack expansion does not make use of any argument packs

/usr/include/c++/8/utility(329): error: expected a ">" detected during instantiation of type "std::make_integer_sequence<std::size_t, _Num>" (340): here

/usr/include/c++/8/bits/move.h(48): error: identifier "builtin_addressof" is undefined detected during: instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=std::make_not_void]" (139): here instantiation of "_Tp std::addressof(_Tp &) [with _Tp=std::__make_not_void]" /usr/include/c++/8/bits/ptr_traits.h(142): here instantiation of "std::pointer_traits<_Tp >::pointer std::pointer_traits<_Tp >::pointer_to(std::__make_not_void<std::pointer_traits<_Tp >::element_type> &) [with _Tp=char]" /usr/include/c++/8/bits/basic_string.h(182): here instantiation of "std::cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_local_data() [with _CharT=char, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.h(422): here instantiation of "std::cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string() [with _CharT=char, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/local/cuda-9.0/include/thrust/system/detail/system_error.inl(32): here

/usr/include/c++/8/bits/move.h(48): error: identifier "builtin_addressof" is undefined detected during: instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=std::make_not_void]" (139): here instantiation of "_Tp std::addressof(_Tp &) [with _Tp=std::__make_not_void]" /usr/include/c++/8/bits/ptr_traits.h(142): here instantiation of "std::pointer_traits<_Tp >::pointer std::pointer_traits<_Tp >::pointer_to(std::__make_not_void<std::pointer_traits<_Tp >::element_type> &) [with _Tp=const char]" /usr/include/c++/8/bits/basic_string.h(192): here instantiation of "std::cxx11::basic_string<_CharT, _Traits, _Alloc>::const_pointer std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_local_data() const [with _CharT=char, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.h(211): here instantiation of "nv_bool std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_is_local() const [with _CharT=char, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.h(220): here instantiation of "void std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_dispose() [with _CharT=char, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.tcc(228): here instantiation of "void std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct(_FwdIterator, _FwdIterator, std::forward_iterator_tag) [with _CharT=char, _Traits=std::char_traits, _Alloc=std::allocator, _FwdIterator=char *]" /usr/include/c++/8/bits/basic_string.h(236): here instantiation of "void std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct_aux(_InIterator, _InIterator, std::false_type) [with _CharT=char, _Traits=std::char_traits, _Alloc=std::allocator, _InIterator=char ]" /usr/include/c++/8/bits/basic_string.h(255): here instantiation of "void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct(_InIterator, _InIterator) [with _CharT=char, _Traits=std::char_traits, _Alloc=std::allocator, _InIterator=char ]" /usr/include/c++/8/bits/basic_string.h(440): here instantiation of "std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const std::cxx11::basic_string<_CharT, _Traits, _Alloc> &) [with _CharT=char, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/local/cuda-9.0/include/thrust/system/detail/error_category.inl(103): here

/usr/include/c++/8/bits/move.h(48): error: identifier "builtin_addressof" is undefined detected during: instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=std::make_not_void]" (139): here instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=std::make_not_void]" /usr/include/c++/8/bits/ptr_traits.h(142): here instantiation of "std::pointer_traits<_Tp >::pointer std::pointer_traits<_Tp >::pointer_to(std::make_not_void<std::pointer_traits<_Tp *>::element_type> &) [with _Tp=wchar_t]" /usr/include/c++/8/bits/basic_string.h(182): here instantiation of "std::cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_local_data() [with _CharT=wchar_t, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.h(501): here instantiation of "std::cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT *, std::cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc &) [with _CharT=wchar_t, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.h(6718): here

/usr/include/c++/8/bits/move.h(48): error: identifier "builtin_addressof" is undefined detected during: instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=std::make_not_void]" (139): here instantiation of "_Tp std::addressof(_Tp &) [with _Tp=std::__make_not_void]" /usr/include/c++/8/bits/ptr_traits.h(142): here instantiation of "std::pointer_traits<_Tp >::pointer std::pointer_traits<_Tp >::pointer_to(std::__make_not_void<std::pointer_traits<_Tp >::element_type> &) [with _Tp=const wchar_t]" /usr/include/c++/8/bits/basic_string.h(192): here instantiation of "std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_pointer std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_local_data() const [with _CharT=wchar_t, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.h(211): here instantiation of "nv_bool std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_is_local() const [with _CharT=wchar_t, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.h(220): here instantiation of "void std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_dispose() [with _CharT=wchar_t, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.tcc(228): here instantiation of "void std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct(_FwdIterator, _FwdIterator, std::forward_iterator_tag) [with _CharT=wchar_t, _Traits=std::char_traits, _Alloc=std::allocator, _FwdIterator=const wchar_t *]" /usr/include/c++/8/bits/basic_string.h(236): here instantiation of "void std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct_aux(_InIterator, _InIterator, std::__false_type) [with _CharT=wchar_t, _Traits=std::char_traits, _Alloc=std::allocator, _InIterator=const wchar_t ]" /usr/include/c++/8/bits/basic_string.h(255): here instantiation of "void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct(_InIterator, _InIterator) [with _CharT=wchar_t, _Traits=std::char_traits, _Alloc=std::allocator, _InIterator=const wchar_t ]" /usr/include/c++/8/bits/basic_string.h(502): here instantiation of "std::cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT *, std::cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc &) [with _CharT=wchar_t, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.h(6718): here

/usr/include/c++/8/bits/move.h(48): error: identifier "builtin_addressof" is undefined detected during: instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=std::make_not_void]" (139): here instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=std::make_not_void]" /usr/include/c++/8/bits/ptr_traits.h(142): here instantiation of "std::pointer_traits<_Tp >::pointer std::pointer_traits<_Tp >::pointer_to(std::make_not_void<std::pointer_traits<_Tp *>::element_type> &) [with _Tp=char16_t]" /usr/include/c++/8/bits/basic_string.h(182): here instantiation of "std::cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_local_data() [with _CharT=char16_t, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.h(501): here instantiation of "std::cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT *, std::cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc &) [with _CharT=char16_t, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.h(6725): here

/usr/include/c++/8/bits/move.h(48): error: identifier "builtin_addressof" is undefined detected during: instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=std::make_not_void]" (139): here instantiation of "_Tp std::addressof(_Tp &) [with _Tp=std::__make_not_void]" /usr/include/c++/8/bits/ptr_traits.h(142): here instantiation of "std::pointer_traits<_Tp >::pointer std::pointer_traits<_Tp >::pointer_to(std::__make_not_void<std::pointer_traits<_Tp >::element_type> &) [with _Tp=const char16_t]" /usr/include/c++/8/bits/basic_string.h(192): here instantiation of "std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_pointer std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_local_data() const [with _CharT=char16_t, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.h(211): here instantiation of "nv_bool std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_is_local() const [with _CharT=char16_t, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.h(220): here instantiation of "void std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_dispose() [with _CharT=char16_t, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.tcc(228): here instantiation of "void std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct(_FwdIterator, _FwdIterator, std::forward_iterator_tag) [with _CharT=char16_t, _Traits=std::char_traits, _Alloc=std::allocator, _FwdIterator=const char16_t *]" /usr/include/c++/8/bits/basic_string.h(236): here instantiation of "void std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct_aux(_InIterator, _InIterator, std::__false_type) [with _CharT=char16_t, _Traits=std::char_traits, _Alloc=std::allocator, _InIterator=const char16_t ]" /usr/include/c++/8/bits/basic_string.h(255): here instantiation of "void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct(_InIterator, _InIterator) [with _CharT=char16_t, _Traits=std::char_traits, _Alloc=std::allocator, _InIterator=const char16_t ]" /usr/include/c++/8/bits/basic_string.h(502): here instantiation of "std::cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT *, std::cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc &) [with _CharT=char16_t, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.h(6725): here

/usr/include/c++/8/bits/move.h(48): error: identifier "builtin_addressof" is undefined detected during: instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=std::make_not_void]" (139): here instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=std::make_not_void]" /usr/include/c++/8/bits/ptr_traits.h(142): here instantiation of "std::pointer_traits<_Tp >::pointer std::pointer_traits<_Tp >::pointer_to(std::make_not_void<std::pointer_traits<_Tp *>::element_type> &) [with _Tp=char32_t]" /usr/include/c++/8/bits/basic_string.h(182): here instantiation of "std::cxx11::basic_string<_CharT, _Traits, _Alloc>::pointer std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_local_data() [with _CharT=char32_t, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.h(501): here instantiation of "std::cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT *, std::cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc &) [with _CharT=char32_t, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.h(6730): here

/usr/include/c++/8/bits/move.h(48): error: identifier "builtin_addressof" is undefined detected during: instantiation of "_Tp *std::addressof(_Tp &) [with _Tp=std::make_not_void]" (139): here instantiation of "_Tp std::addressof(_Tp &) [with _Tp=std::__make_not_void]" /usr/include/c++/8/bits/ptr_traits.h(142): here instantiation of "std::pointer_traits<_Tp >::pointer std::pointer_traits<_Tp >::pointer_to(std::__make_not_void<std::pointer_traits<_Tp >::element_type> &) [with _Tp=const char32_t]" /usr/include/c++/8/bits/basic_string.h(192): here instantiation of "std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::const_pointer std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_local_data() const [with _CharT=char32_t, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.h(211): here instantiation of "nv_bool std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_is_local() const [with _CharT=char32_t, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.h(220): here instantiation of "void std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_dispose() [with _CharT=char32_t, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.tcc(228): here instantiation of "void std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct(_FwdIterator, _FwdIterator, std::forward_iterator_tag) [with _CharT=char32_t, _Traits=std::char_traits, _Alloc=std::allocator, _FwdIterator=const char32_t *]" /usr/include/c++/8/bits/basic_string.h(236): here instantiation of "void std::cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct_aux(_InIterator, _InIterator, std::__false_type) [with _CharT=char32_t, _Traits=std::char_traits, _Alloc=std::allocator, _InIterator=const char32_t ]" /usr/include/c++/8/bits/basic_string.h(255): here instantiation of "void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::_M_construct(_InIterator, _InIterator) [with _CharT=char32_t, _Traits=std::char_traits, _Alloc=std::allocator, _InIterator=const char32_t ]" /usr/include/c++/8/bits/basic_string.h(502): here instantiation of "std::cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT *, std::cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc &) [with _CharT=char32_t, _Traits=std::char_traits, _Alloc=std::allocator]" /usr/include/c++/8/bits/basic_string.h(6730): here

16 errors detected in the compilation of "/tmp/tmpxft_00006d68_00000000-11_THCHalf.compute_61.cpp1.ii". CMake Error at THC_generated_THCHalf.cu.o.cmake:267 (message): Error generating file /home/f_prado/usr/local/torch/extra/cutorch/build/lib/THC/CMakeFiles/THC.dir//./THC_generated_THCHalf.cu.o

make[2]: [lib/THC/CMakeFiles/THC.dir/build.make:562: lib/THC/CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o] Error 1 make[1]: [CMakeFiles/Makefile2:177: lib/THC/CMakeFiles/THC.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

Error: Build error: Failed building.

can somebody help?