-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to build on Archlinux with gcc 6.1 #413
Comments
unfortunately, there's nothing we as cutorch developers can do about this. NVIDIA's CUDA toolkit doesn't yet support GCC-5, let alone GCC-6 |
Adding the following line to SET(CMAKE_CXX_FLAGS "-std=c++98 ${CMAKE_CXX_FLAGS}") but it generate tons of warning
and
|
I can't find the location of CMakeLists.txt |
is there a way to use luarocks to install but with an edited cmakelists or do i have to use git |
@sirus20x6 I believe you can do: |
@GrimKriegor Thanks for that. so I added SET(CMAKE_CXX_FLAGS "-std=c++98 ${CMAKE_CXX_FLAGS}") right below the line and the same error comes up. so @cloudhan 's work around doesnt seem to work for me |
@sirus20x6 Try it on top of the file. |
@GrimKriegor tried it on the first line and I get the same thing |
@sirus20x6 make sure it is FYI, I'm not using torch now. |
`sirus cutorch :) $sudo luarocks build ./rocks/cutorch-scm-1.rockspec -- The C compiler identification is GNU 6.1.1 CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include/stddef.h(436): error: identifier "nullptr" is undefined /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include/stddef.h(436): error: expected a ";" /usr/include/c++/6.1.1/x86_64-pc-linux-gnu/bits/c++config.h(202): error: expected a ";" /usr/include/c++/6.1.1/exception(63): error: expected a ";" /usr/include/c++/6.1.1/exception(69): error: expected a ";" /usr/include/c++/6.1.1/exception(77): error: expected a ";" /usr/include/c++/6.1.1/exception(85): error: expected a ";" /usr/include/c++/6.1.1/exception(95): error: expected a "{" /usr/include/c++/6.1.1/bits/exception_ptr.h(64): error: function "std::current_exception" returns incomplete type "std::__exception_ptr::exception_ptr" /usr/include/c++/6.1.1/bits/exception_ptr.h(64): error: expected a "{" /usr/include/c++/6.1.1/bits/exception_ptr.h(71): error: namespace "std" has no member "rethrow_exception" /usr/include/c++/6.1.1/bits/exception_ptr.h(81): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(83): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(84): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(86): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: declaration is incompatible with previous "std::current_exception" /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(89): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(92): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(94): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(97): error: incomplete type is not allowed /usr/include/c++/6.1.1/bits/exception_ptr.h(97): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(118): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(128): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(145): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(146): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(149): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(154): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(155): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(158): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(159): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(162): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(163): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(171): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(197): error: expected a ";" /usr/include/c++/6.1.1/bits/move.h(47): error: expected a ";" /usr/include/c++/6.1.1/type_traits(71): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(71): error: template parameter "_Tp" may not be redeclared in this scope /usr/include/c++/6.1.1/type_traits(71): error: expected a ";" /usr/include/c++/6.1.1/type_traits(72): error: member "std::integral_constant<_Tp, __v>::_Tp" is not a type name /usr/include/c++/6.1.1/type_traits(73): error: member "std::integral_constant<_Tp, __v>::_Tp" is not a type name /usr/include/c++/6.1.1/type_traits(74): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(79): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(79): error: "value_type" has already been declared in the current scope /usr/include/c++/6.1.1/type_traits(79): error: expected a ";" /usr/include/c++/6.1.1/type_traits(84): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(84): error: "_Tp" is not a function or static data member /usr/include/c++/6.1.1/type_traits(93): error: expected a declaration /usr/include/c++/6.1.1/type_traits(93): error: expected a ";" /usr/include/c++/6.1.1/type_traits(126): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(235): error: identifier "char16_t" is undefined /usr/include/c++/6.1.1/type_traits(239): error: identifier "char32_t" is undefined /usr/include/c++/6.1.1/type_traits(239): error: class "std::__is_integral_helper<>" has already been defined /usr/include/c++/6.1.1/type_traits(337): error: identifier "__float128" is undefined /usr/include/c++/6.1.1/type_traits(453): error: expected a ">" /usr/include/c++/6.1.1/type_traits(457): error: expected a ">" /usr/include/c++/6.1.1/type_traits(465): error: expected a ">" /usr/include/c++/6.1.1/type_traits(469): error: expected a ">" /usr/include/c++/6.1.1/type_traits(477): error: expected a ">" /usr/include/c++/6.1.1/type_traits(481): error: expected a ">" /usr/include/c++/6.1.1/type_traits(489): error: expected a ">" /usr/include/c++/6.1.1/type_traits(493): error: expected a ">" /usr/include/c++/6.1.1/type_traits(501): error: expected a ">" /usr/include/c++/6.1.1/type_traits(505): error: expected a ">" /usr/include/c++/6.1.1/type_traits(513): error: expected a ">" /usr/include/c++/6.1.1/type_traits(517): error: expected a ">" /usr/include/c++/6.1.1/type_traits(525): error: expected a ">" /usr/include/c++/6.1.1/type_traits(529): error: expected a ">" /usr/include/c++/6.1.1/type_traits(537): error: expected a ">" /usr/include/c++/6.1.1/type_traits(541): error: expected a ">" /usr/include/c++/6.1.1/type_traits(551): error: namespace "std" has no member "nullptr_t" /usr/include/c++/6.1.1/type_traits(572): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(578): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(585): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(592): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(602): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(628): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(738): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(752): error: expected a ";" /usr/include/c++/6.1.1/type_traits(767): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(777): error: expected a ")" /usr/include/c++/6.1.1/type_traits(788): error: an explicit template argument list is not allowed on this declaration /usr/include/c++/6.1.1/type_traits(788): error: expected a type specifier /usr/include/c++/6.1.1/type_traits(788): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(788): error: expected a ";" /usr/include/c++/6.1.1/type_traits(794): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(795): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(825): error: identifier "noexcept" is undefined /usr/include/c++/6.1.1/type_traits(825): error: function call is not allowed in a constant expression /usr/include/c++/6.1.1/type_traits(825): error: function call is not allowed in a constant expression /usr/include/c++/6.1.1/type_traits(825): error: this operator is not allowed in a template argument expression /usr/include/c++/6.1.1/type_traits(836): error: an explicit template argument list is not allowed on this declaration /usr/include/c++/6.1.1/type_traits(836): error: expected a type specifier /usr/include/c++/6.1.1/type_traits(836): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(836): error: expected a ";" /usr/include/c++/6.1.1/type_traits(842): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(843): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(868): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(879): error: an explicit template argument list is not allowed on this declaration Error limit reached. lib/THC/CMakeFiles/THC.dir/build.make:70: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCBlas.cu.o' failed /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include/stddef.h(436): error: expected a ";" /usr/include/c++/6.1.1/x86_64-pc-linux-gnu/bits/c++config.h(202): error: expected a ";" /usr/include/c++/6.1.1/exception(63): error: expected a ";" /usr/include/c++/6.1.1/exception(69): error: expected a ";" /usr/include/c++/6.1.1/exception(77): error: expected a ";" /usr/include/c++/6.1.1/exception(85): error: expected a ";" /usr/include/c++/6.1.1/exception(95): error: expected a "{" /usr/include/c++/6.1.1/bits/exception_ptr.h(64): error: function "std::current_exception" returns incomplete type "std::__exception_ptr::exception_ptr" /usr/include/c++/6.1.1/bits/exception_ptr.h(64): error: expected a "{" /usr/include/c++/6.1.1/bits/exception_ptr.h(71): error: namespace "std" has no member "rethrow_exception" /usr/include/c++/6.1.1/bits/exception_ptr.h(81): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(83): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(84): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(86): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: declaration is incompatible with previous "std::current_exception" /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(89): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(92): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(94): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(97): error: incomplete type is not allowed /usr/include/c++/6.1.1/bits/exception_ptr.h(97): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(118): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(128): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(145): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(146): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(149): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(154): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(155): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(158): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(159): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(162): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(163): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(171): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(197): error: expected a ";" /usr/include/c++/6.1.1/bits/move.h(47): error: expected a ";" /usr/include/c++/6.1.1/type_traits(71): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(71): error: template parameter "_Tp" may not be redeclared in this scope /usr/include/c++/6.1.1/type_traits(71): error: expected a ";" /usr/include/c++/6.1.1/type_traits(72): error: member "std::integral_constant<_Tp, __v>::_Tp" is not a type name /usr/include/c++/6.1.1/type_traits(73): error: member "std::integral_constant<_Tp, __v>::_Tp" is not a type name /usr/include/c++/6.1.1/type_traits(74): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(79): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(79): error: "value_type" has already been declared in the current scope /usr/include/c++/6.1.1/type_traits(79): error: expected a ";" /usr/include/c++/6.1.1/type_traits(84): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(84): error: "_Tp" is not a function or static data member /usr/include/c++/6.1.1/type_traits(93): error: expected a declaration /usr/include/c++/6.1.1/type_traits(93): error: expected a ";" /usr/include/c++/6.1.1/type_traits(126): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(235): error: identifier "char16_t" is undefined /usr/include/c++/6.1.1/type_traits(239): error: identifier "char32_t" is undefined /usr/include/c++/6.1.1/type_traits(239): error: class "std::__is_integral_helper<>" has already been defined /usr/include/c++/6.1.1/type_traits(337): error: identifier "__float128" is undefined /usr/include/c++/6.1.1/type_traits(453): error: expected a ">" /usr/include/c++/6.1.1/type_traits(457): error: expected a ">" /usr/include/c++/6.1.1/type_traits(465): error: expected a ">" /usr/include/c++/6.1.1/type_traits(469): error: expected a ">" /usr/include/c++/6.1.1/type_traits(477): error: expected a ">" /usr/include/c++/6.1.1/type_traits(481): error: expected a ">" /usr/include/c++/6.1.1/type_traits(489): error: expected a ">" /usr/include/c++/6.1.1/type_traits(493): error: expected a ">" /usr/include/c++/6.1.1/type_traits(501): error: expected a ">" /usr/include/c++/6.1.1/type_traits(505): error: expected a ">" /usr/include/c++/6.1.1/type_traits(513): error: expected a ">" /usr/include/c++/6.1.1/type_traits(517): error: expected a ">" /usr/include/c++/6.1.1/type_traits(525): error: expected a ">" /usr/include/c++/6.1.1/type_traits(529): error: expected a ">" /usr/include/c++/6.1.1/type_traits(537): error: expected a ">" /usr/include/c++/6.1.1/type_traits(541): error: expected a ">" /usr/include/c++/6.1.1/type_traits(551): error: namespace "std" has no member "nullptr_t" /usr/include/c++/6.1.1/type_traits(572): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(578): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(585): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(592): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(602): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(628): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(738): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(752): error: expected a ";" /usr/include/c++/6.1.1/type_traits(767): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(777): error: expected a ")" /usr/include/c++/6.1.1/type_traits(788): error: an explicit template argument list is not allowed on this declaration /usr/include/c++/6.1.1/type_traits(788): error: expected a type specifier /usr/include/c++/6.1.1/type_traits(788): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(788): error: expected a ";" /usr/include/c++/6.1.1/type_traits(794): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(795): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(825): error: identifier "noexcept" is undefined /usr/include/c++/6.1.1/type_traits(825): error: function call is not allowed in a constant expression /usr/include/c++/6.1.1/type_traits(825): error: function call is not allowed in a constant expression /usr/include/c++/6.1.1/type_traits(825): error: this operator is not allowed in a template argument expression /usr/include/c++/6.1.1/type_traits(836): error: an explicit template argument list is not allowed on this declaration /usr/include/c++/6.1.1/type_traits(836): error: expected a type specifier /usr/include/c++/6.1.1/type_traits(836): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(836): error: expected a ";" /usr/include/c++/6.1.1/type_traits(842): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(843): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(868): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(879): error: an explicit template argument list is not allowed on this declaration Error limit reached. CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Error at THC_generated_THCStorageCopy.cu.o.cmake:266 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): lib/THC/CMakeFiles/THC.dir/build.make:84: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorageCopy.cu.o' failed CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include/stddef.h(436): error: identifier "nullptr" is undefined /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include/stddef.h(436): error: expected a ";" /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include/stddef.h(436): error: identifier "nullptr" is undefined /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include/stddef.h(436): error: expected a ";" CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): /usr/include/c++/6.1.1/x86_64-pc-linux-gnu/bits/c++config.h(202): error: expected a ";" /usr/include/c++/6.1.1/exception(63): error: expected a ";" /usr/include/c++/6.1.1/exception(69): error: expected a ";" /usr/include/c++/6.1.1/exception(77): error: expected a ";" /usr/include/c++/6.1.1/exception(85): error: expected a ";" /usr/include/c++/6.1.1/exception(95): error: expected a "{" /usr/include/c++/6.1.1/bits/exception_ptr.h(64): error: function "std::current_exception" returns incomplete type "std::__exception_ptr::exception_ptr" /usr/include/c++/6.1.1/bits/exception_ptr.h(64): error: expected a "{" /usr/include/c++/6.1.1/bits/exception_ptr.h(71): error: namespace "std" has no member "rethrow_exception" /usr/include/c++/6.1.1/bits/exception_ptr.h(81): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(83): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(84): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(86): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: declaration is incompatible with previous "std::current_exception" /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(89): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(92): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(94): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(97): error: incomplete type is not allowed /usr/include/c++/6.1.1/bits/exception_ptr.h(97): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(118): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(128): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(145): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(146): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(149): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(154): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(155): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(158): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(159): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(162): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(163): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(171): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(197): error: expected a ";" /usr/include/c++/6.1.1/bits/move.h(47): error: expected a ";" /usr/include/c++/6.1.1/type_traits(71): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(71): error: template parameter "_Tp" may not be redeclared in this scope /usr/include/c++/6.1.1/type_traits(71): error: expected a ";" /usr/include/c++/6.1.1/type_traits(72): error: member "std::integral_constant<_Tp, __v>::_Tp" is not a type name /usr/include/c++/6.1.1/type_traits(73): error: member "std::integral_constant<_Tp, __v>::_Tp" is not a type name /usr/include/c++/6.1.1/type_traits(74): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(79): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(79): error: "value_type" has already been declared in the current scope /usr/include/c++/6.1.1/type_traits(79): error: expected a ";" /usr/include/c++/6.1.1/type_traits(84): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(84): error: "_Tp" is not a function or static data member /usr/include/c++/6.1.1/type_traits(93): error: expected a declaration /usr/include/c++/6.1.1/type_traits(93): error: expected a ";" /usr/include/c++/6.1.1/type_traits(126): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(235): error: identifier "char16_t" is undefined /usr/include/c++/6.1.1/type_traits(239): error: identifier "char32_t" is undefined /usr/include/c++/6.1.1/type_traits(239): error: class "std::__is_integral_helper<>" has already been defined /usr/include/c++/6.1.1/type_traits(337): error: identifier "__float128" is undefined /usr/include/c++/6.1.1/x86_64-pc-linux-gnu/bits/c++config.h(202): error: expected a ";" /usr/include/c++/6.1.1/exception(63): error: expected a ";" /usr/include/c++/6.1.1/exception(69): error: expected a ";" /usr/include/c++/6.1.1/exception(77): error: expected a ";" /usr/include/c++/6.1.1/exception(85): error: expected a ";" /usr/include/c++/6.1.1/exception(95): error: expected a "{" /usr/include/c++/6.1.1/bits/exception_ptr.h(64): error: function "std::current_exception" returns incomplete type "std::__exception_ptr::exception_ptr" /usr/include/c++/6.1.1/bits/exception_ptr.h(64): error: expected a "{" /usr/include/c++/6.1.1/bits/exception_ptr.h(71): error: namespace "std" has no member "rethrow_exception" /usr/include/c++/6.1.1/bits/exception_ptr.h(81): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(83): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(84): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(86): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: declaration is incompatible with previous "std::current_exception" /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(89): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(92): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(94): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(97): error: incomplete type is not allowed /usr/include/c++/6.1.1/bits/exception_ptr.h(97): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(118): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(128): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(145): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(146): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(149): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(154): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(155): error: expected a ";" /usr/include/c++/6.1.1/type_traits(453): error: expected a ">" /usr/include/c++/6.1.1/bits/exception_ptr.h(158): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(159): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(162): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(163): error: expected a ";" /usr/include/c++/6.1.1/type_traits(457): error: expected a ">" /usr/include/c++/6.1.1/bits/exception_ptr.h(171): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(197): error: expected a ";" /usr/include/c++/6.1.1/type_traits(465): error: expected a ">" /usr/include/c++/6.1.1/bits/move.h(47): error: expected a ";" /usr/include/c++/6.1.1/type_traits(469): error: expected a ">" /usr/include/c++/6.1.1/type_traits(71): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(71): error: template parameter "_Tp" may not be redeclared in this scope /usr/include/c++/6.1.1/type_traits(71): error: expected a ";" /usr/include/c++/6.1.1/type_traits(72): error: member "std::integral_constant<_Tp, __v>::_Tp" is not a type name /usr/include/c++/6.1.1/type_traits(477): error: expected a ">" /usr/include/c++/6.1.1/type_traits(73): error: member "std::integral_constant<_Tp, __v>::_Tp" is not a type name /usr/include/c++/6.1.1/type_traits(74): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(481): error: expected a ">" /usr/include/c++/6.1.1/type_traits(79): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(79): error: "value_type" has already been declared in the current scope /usr/include/c++/6.1.1/type_traits(79): error: expected a ";" /usr/include/c++/6.1.1/type_traits(489): error: expected a ">" /usr/include/c++/6.1.1/type_traits(84): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(84): error: "_Tp" is not a function or static data member /usr/include/c++/6.1.1/type_traits(93): error: expected a declaration /usr/include/c++/6.1.1/type_traits(93): error: expected a ";" /usr/include/c++/6.1.1/type_traits(493): error: expected a ">" /usr/include/c++/6.1.1/type_traits(501): error: expected a ">" /usr/include/c++/6.1.1/type_traits(505): error: expected a ">" /usr/include/c++/6.1.1/type_traits(126): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(513): error: expected a ">" /usr/include/c++/6.1.1/type_traits(517): error: expected a ">" /usr/include/c++/6.1.1/type_traits(525): error: expected a ">" /usr/include/c++/6.1.1/type_traits(529): error: expected a ">" /usr/include/c++/6.1.1/type_traits(537): error: expected a ">" /usr/include/c++/6.1.1/type_traits(235): error: identifier "char16_t" is undefined /usr/include/c++/6.1.1/type_traits(541): error: expected a ">" /usr/include/c++/6.1.1/type_traits(239): error: identifier "char32_t" is undefined /usr/include/c++/6.1.1/type_traits(239): error: class "std::__is_integral_helper<>" has already been defined /usr/include/c++/6.1.1/type_traits(551): error: namespace "std" has no member "nullptr_t" /usr/include/c++/6.1.1/type_traits(572): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(578): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(337): error: identifier "__float128" is undefined /usr/include/c++/6.1.1/type_traits(585): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(592): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(602): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(628): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(453): error: expected a ">" /usr/include/c++/6.1.1/type_traits(457): error: expected a ">" /usr/include/c++/6.1.1/type_traits(465): error: expected a ">" /usr/include/c++/6.1.1/type_traits(738): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(469): error: expected a ">" /usr/include/c++/6.1.1/type_traits(752): error: expected a ";" /usr/include/c++/6.1.1/type_traits(767): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(777): error: expected a ")" /usr/include/c++/6.1.1/type_traits(477): error: expected a ">" /usr/include/c++/6.1.1/type_traits(788): error: an explicit template argument list is not allowed on this declaration /usr/include/c++/6.1.1/type_traits(788): error: expected a type specifier /usr/include/c++/6.1.1/type_traits(788): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(788): error: expected a ";" /usr/include/c++/6.1.1/type_traits(481): error: expected a ">" /usr/include/c++/6.1.1/type_traits(794): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(795): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(489): error: expected a ">" /usr/include/c++/6.1.1/type_traits(825): error: identifier "noexcept" is undefined /usr/include/c++/6.1.1/type_traits(825): error: function call is not allowed in a constant expression /usr/include/c++/6.1.1/type_traits(493): error: expected a ">" /usr/include/c++/6.1.1/type_traits(825): error: function call is not allowed in a constant expression /usr/include/c++/6.1.1/type_traits(825): error: this operator is not allowed in a template argument expression /usr/include/c++/6.1.1/type_traits(501): error: expected a ">" /usr/include/c++/6.1.1/type_traits(836): error: an explicit template argument list is not allowed on this declaration /usr/include/c++/6.1.1/type_traits(836): error: expected a type specifier /usr/include/c++/6.1.1/type_traits(505): error: expected a ">" /usr/include/c++/6.1.1/type_traits(836): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(836): error: expected a ";" /usr/include/c++/6.1.1/type_traits(842): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(843): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(513): error: expected a ">" /usr/include/c++/6.1.1/type_traits(868): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(517): error: expected a ">" /usr/include/c++/6.1.1/type_traits(879): error: an explicit template argument list is not allowed on this declaration Error limit reached. /usr/include/c++/6.1.1/type_traits(529): error: expected a ">" /usr/include/c++/6.1.1/type_traits(537): error: expected a ">" /usr/include/c++/6.1.1/type_traits(541): error: expected a ">" /usr/include/c++/6.1.1/type_traits(551): error: namespace "std" has no member "nullptr_t" /usr/include/c++/6.1.1/type_traits(572): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(578): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(585): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(592): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(602): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(628): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(738): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(752): error: expected a ";" CMake Error at THC_generated_THCReduceApplyUtils.cu.o.cmake:266 (message): /usr/include/c++/6.1.1/type_traits(767): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(777): error: expected a ")" /usr/include/c++/6.1.1/type_traits(788): error: an explicit template argument list is not allowed on this declaration /usr/include/c++/6.1.1/type_traits(788): error: expected a type specifier /usr/include/c++/6.1.1/type_traits(788): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(788): error: expected a ";" /usr/include/c++/6.1.1/type_traits(794): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(795): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) lib/THC/CMakeFiles/THC.dir/build.make:63: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCReduceApplyUtils.cu.o' failed /usr/include/c++/6.1.1/type_traits(825): error: function call is not allowed in a constant expression /usr/include/c++/6.1.1/type_traits(825): error: function call is not allowed in a constant expression /usr/include/c++/6.1.1/type_traits(825): error: this operator is not allowed in a template argument expression /usr/include/c++/6.1.1/type_traits(836): error: an explicit template argument list is not allowed on this declaration /usr/include/c++/6.1.1/type_traits(836): error: expected a type specifier /usr/include/c++/6.1.1/type_traits(836): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(836): error: expected a ";" /usr/include/c++/6.1.1/type_traits(842): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(843): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(868): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(879): error: an explicit template argument list is not allowed on this declaration Error limit reached. lib/THC/CMakeFiles/THC.dir/build.make:91: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensor.cu.o' failed /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include/stddef.h(436): error: expected a ";" /usr/include/c++/6.1.1/x86_64-pc-linux-gnu/bits/c++config.h(202): error: expected a ";" /usr/include/c++/6.1.1/exception(63): error: expected a ";" /usr/include/c++/6.1.1/exception(69): error: expected a ";" /usr/include/c++/6.1.1/exception(77): error: expected a ";" /usr/include/c++/6.1.1/exception(85): error: expected a ";" /usr/include/c++/6.1.1/exception(95): error: expected a "{" /usr/include/c++/6.1.1/bits/exception_ptr.h(64): error: function "std::current_exception" returns incomplete type "std::__exception_ptr::exception_ptr" /usr/include/c++/6.1.1/bits/exception_ptr.h(64): error: expected a "{" /usr/include/c++/6.1.1/bits/exception_ptr.h(71): error: namespace "std" has no member "rethrow_exception" /usr/include/c++/6.1.1/bits/exception_ptr.h(81): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(83): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(84): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(86): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: declaration is incompatible with previous "std::current_exception" /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(89): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(92): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(94): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(97): error: incomplete type is not allowed /usr/include/c++/6.1.1/bits/exception_ptr.h(97): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(118): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(128): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(145): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(146): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(149): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(154): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(155): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(158): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(159): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(162): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(163): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(171): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(197): error: expected a ";" /usr/include/c++/6.1.1/bits/move.h(47): error: expected a ";" /usr/include/c++/6.1.1/type_traits(71): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(71): error: template parameter "_Tp" may not be redeclared in this scope /usr/include/c++/6.1.1/type_traits(71): error: expected a ";" /usr/include/c++/6.1.1/type_traits(72): error: member "std::integral_constant<_Tp, __v>::_Tp" is not a type name /usr/include/c++/6.1.1/type_traits(73): error: member "std::integral_constant<_Tp, __v>::_Tp" is not a type name /usr/include/c++/6.1.1/type_traits(74): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(79): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(79): error: "value_type" has already been declared in the current scope /usr/include/c++/6.1.1/type_traits(79): error: expected a ";" /usr/include/c++/6.1.1/type_traits(84): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(84): error: "_Tp" is not a function or static data member /usr/include/c++/6.1.1/type_traits(93): error: expected a declaration /usr/include/c++/6.1.1/type_traits(93): error: expected a ";" /usr/include/c++/6.1.1/type_traits(126): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(235): error: identifier "char16_t" is undefined /usr/include/c++/6.1.1/type_traits(239): error: identifier "char32_t" is undefined /usr/include/c++/6.1.1/type_traits(239): error: class "std::__is_integral_helper<>" has already been defined /usr/include/c++/6.1.1/type_traits(337): error: identifier "__float128" is undefined /usr/include/c++/6.1.1/type_traits(453): error: expected a ">" /usr/include/c++/6.1.1/type_traits(457): error: expected a ">" /usr/include/c++/6.1.1/type_traits(465): error: expected a ">" /usr/include/c++/6.1.1/type_traits(469): error: expected a ">" /usr/include/c++/6.1.1/type_traits(477): error: expected a ">" /usr/include/c++/6.1.1/type_traits(481): error: expected a ">" /usr/include/c++/6.1.1/type_traits(489): error: expected a ">" /usr/include/c++/6.1.1/type_traits(493): error: expected a ">" /usr/include/c++/6.1.1/type_traits(501): error: expected a ">" /usr/include/c++/6.1.1/type_traits(505): error: expected a ">" /usr/include/c++/6.1.1/type_traits(513): error: expected a ">" /usr/include/c++/6.1.1/type_traits(517): error: expected a ">" /usr/include/c++/6.1.1/type_traits(525): error: expected a ">" /usr/include/c++/6.1.1/type_traits(529): error: expected a ">" /usr/include/c++/6.1.1/type_traits(537): error: expected a ">" /usr/include/c++/6.1.1/type_traits(541): error: expected a ">" /usr/include/c++/6.1.1/type_traits(551): error: namespace "std" has no member "nullptr_t" /usr/include/c++/6.1.1/type_traits(572): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(578): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(585): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(592): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(602): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(628): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(738): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(752): error: expected a ";" /usr/include/c++/6.1.1/type_traits(767): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(777): error: expected a ")" /usr/include/c++/6.1.1/type_traits(788): error: an explicit template argument list is not allowed on this declaration /usr/include/c++/6.1.1/type_traits(788): error: expected a type specifier /usr/include/c++/6.1.1/type_traits(788): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(788): error: expected a ";" /usr/include/c++/6.1.1/type_traits(794): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(795): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(825): error: identifier "noexcept" is undefined /usr/include/c++/6.1.1/type_traits(825): error: function call is not allowed in a constant expression /usr/include/c++/6.1.1/type_traits(825): error: function call is not allowed in a constant expression /usr/include/c++/6.1.1/type_traits(825): error: this operator is not allowed in a template argument expression /usr/include/c++/6.1.1/type_traits(836): error: an explicit template argument list is not allowed on this declaration /usr/include/c++/6.1.1/type_traits(836): error: expected a type specifier /usr/include/c++/6.1.1/type_traits(836): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(836): error: expected a ";" /usr/include/c++/6.1.1/type_traits(842): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(843): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(868): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(879): error: an explicit template argument list is not allowed on this declaration Error limit reached. lib/THC/CMakeFiles/THC.dir/build.make:98: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorCopy.cu.o' failed /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include/stddef.h(436): error: expected a ";" /usr/include/c++/6.1.1/x86_64-pc-linux-gnu/bits/c++config.h(202): error: expected a ";" /usr/include/c++/6.1.1/exception(63): error: expected a ";" /usr/include/c++/6.1.1/exception(69): error: expected a ";" /usr/include/c++/6.1.1/exception(77): error: expected a ";" /usr/include/c++/6.1.1/exception(85): error: expected a ";" /usr/include/c++/6.1.1/exception(95): error: expected a "{" /usr/include/c++/6.1.1/bits/exception_ptr.h(64): error: function "std::current_exception" returns incomplete type "std::__exception_ptr::exception_ptr" /usr/include/c++/6.1.1/bits/exception_ptr.h(64): error: expected a "{" /usr/include/c++/6.1.1/bits/exception_ptr.h(71): error: namespace "std" has no member "rethrow_exception" /usr/include/c++/6.1.1/bits/exception_ptr.h(81): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(83): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(84): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(86): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: declaration is incompatible with previous "std::current_exception" /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(89): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(92): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(94): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(97): error: incomplete type is not allowed /usr/include/c++/6.1.1/bits/exception_ptr.h(97): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(118): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(128): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(145): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(146): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(149): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(154): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(155): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(158): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(159): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(162): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(163): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(171): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(197): error: expected a ";" /usr/include/c++/6.1.1/bits/move.h(47): error: expected a ";" /usr/include/c++/6.1.1/type_traits(71): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(71): error: template parameter "_Tp" may not be redeclared in this scope /usr/include/c++/6.1.1/type_traits(71): error: expected a ";" /usr/include/c++/6.1.1/type_traits(72): error: member "std::integral_constant<_Tp, __v>::_Tp" is not a type name /usr/include/c++/6.1.1/type_traits(73): error: member "std::integral_constant<_Tp, __v>::_Tp" is not a type name /usr/include/c++/6.1.1/type_traits(74): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(79): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(79): error: "value_type" has already been declared in the current scope /usr/include/c++/6.1.1/type_traits(79): error: expected a ";" /usr/include/c++/6.1.1/type_traits(84): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(84): error: "_Tp" is not a function or static data member /usr/include/c++/6.1.1/type_traits(93): error: expected a declaration /usr/include/c++/6.1.1/type_traits(93): error: expected a ";" /usr/include/c++/6.1.1/type_traits(126): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(235): error: identifier "char16_t" is undefined /usr/include/c++/6.1.1/type_traits(239): error: identifier "char32_t" is undefined /usr/include/c++/6.1.1/type_traits(239): error: class "std::__is_integral_helper<>" has already been defined /usr/include/c++/6.1.1/type_traits(337): error: identifier "__float128" is undefined /usr/include/c++/6.1.1/type_traits(453): error: expected a ">" /usr/include/c++/6.1.1/type_traits(457): error: expected a ">" /usr/include/c++/6.1.1/type_traits(465): error: expected a ">" /usr/include/c++/6.1.1/type_traits(469): error: expected a ">" /usr/include/c++/6.1.1/type_traits(477): error: expected a ">" /usr/include/c++/6.1.1/type_traits(481): error: expected a ">" /usr/include/c++/6.1.1/type_traits(489): error: expected a ">" /usr/include/c++/6.1.1/type_traits(493): error: expected a ">" /usr/include/c++/6.1.1/type_traits(501): error: expected a ">" /usr/include/c++/6.1.1/type_traits(505): error: expected a ">" /usr/include/c++/6.1.1/type_traits(513): error: expected a ">" /usr/include/c++/6.1.1/type_traits(517): error: expected a ">" /usr/include/c++/6.1.1/type_traits(525): error: expected a ">" /usr/include/c++/6.1.1/type_traits(529): error: expected a ">" /usr/include/c++/6.1.1/type_traits(537): error: expected a ">" /usr/include/c++/6.1.1/type_traits(541): error: expected a ">" /usr/include/c++/6.1.1/type_traits(551): error: namespace "std" has no member "nullptr_t" /usr/include/c++/6.1.1/type_traits(572): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(578): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(585): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(592): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(602): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(628): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(738): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(752): error: expected a ";" /usr/include/c++/6.1.1/type_traits(767): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(777): error: expected a ")" /usr/include/c++/6.1.1/type_traits(788): error: an explicit template argument list is not allowed on this declaration /usr/include/c++/6.1.1/type_traits(788): error: expected a type specifier /usr/include/c++/6.1.1/type_traits(788): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(788): error: expected a ";" /usr/include/c++/6.1.1/type_traits(794): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(795): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(825): error: identifier "noexcept" is undefined /usr/include/c++/6.1.1/type_traits(825): error: function call is not allowed in a constant expression /usr/include/c++/6.1.1/type_traits(825): error: function call is not allowed in a constant expression /usr/include/c++/6.1.1/type_traits(825): error: this operator is not allowed in a template argument expression /usr/include/c++/6.1.1/type_traits(836): error: an explicit template argument list is not allowed on this declaration /usr/include/c++/6.1.1/type_traits(836): error: expected a type specifier /usr/include/c++/6.1.1/type_traits(836): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(836): error: expected a ";" /usr/include/c++/6.1.1/type_traits(842): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(843): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(868): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(879): error: an explicit template argument list is not allowed on this declaration Error limit reached. lib/THC/CMakeFiles/THC.dir/build.make:105: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCTensorMath.cu.o' failed CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): CMake Warning at /usr/share/cmake-3.5/Modules/FindCUDA/make2cmake.cmake:65 (message): /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include/stddef.h(436): error: identifier "nullptr" is undefined /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include/stddef.h(436): error: expected a ";" /usr/include/c++/6.1.1/x86_64-pc-linux-gnu/bits/c++config.h(202): error: expected a ";" /usr/include/c++/6.1.1/exception(63): error: expected a ";" /usr/include/c++/6.1.1/exception(69): error: expected a ";" /usr/include/c++/6.1.1/exception(77): error: expected a ";" /usr/include/c++/6.1.1/exception(85): error: expected a ";" /usr/include/c++/6.1.1/exception(95): error: expected a "{" /usr/include/c++/6.1.1/bits/exception_ptr.h(64): error: function "std::current_exception" returns incomplete type "std::__exception_ptr::exception_ptr" /usr/include/c++/6.1.1/bits/exception_ptr.h(64): error: expected a "{" /usr/include/c++/6.1.1/bits/exception_ptr.h(71): error: namespace "std" has no member "rethrow_exception" /usr/include/c++/6.1.1/bits/exception_ptr.h(81): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(83): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(84): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(86): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: declaration is incompatible with previous "std::current_exception" /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(89): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(92): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(94): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(97): error: incomplete type is not allowed /usr/include/c++/6.1.1/bits/exception_ptr.h(97): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(118): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(128): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(145): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(146): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(149): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(154): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(155): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(158): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(159): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(162): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(163): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(171): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(197): error: expected a ";" /usr/include/c++/6.1.1/bits/move.h(47): error: expected a ";" /usr/include/c++/6.1.1/type_traits(71): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(71): error: template parameter "_Tp" may not be redeclared in this scope /usr/include/c++/6.1.1/type_traits(71): error: expected a ";" /usr/include/c++/6.1.1/type_traits(72): error: member "std::integral_constant<_Tp, __v>::_Tp" is not a type name /usr/include/c++/6.1.1/type_traits(73): error: member "std::integral_constant<_Tp, __v>::_Tp" is not a type name /usr/include/c++/6.1.1/type_traits(74): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(79): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(79): error: "value_type" has already been declared in the current scope /usr/include/c++/6.1.1/type_traits(79): error: expected a ";" /usr/include/c++/6.1.1/type_traits(84): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(84): error: "_Tp" is not a function or static data member /usr/include/c++/6.1.1/type_traits(93): error: expected a declaration /usr/include/c++/6.1.1/type_traits(93): error: expected a ";" /usr/include/c++/6.1.1/type_traits(126): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(235): error: identifier "char16_t" is undefined /usr/include/c++/6.1.1/type_traits(239): error: identifier "char32_t" is undefined /usr/include/c++/6.1.1/type_traits(239): error: class "std::__is_integral_helper<>" has already been defined /usr/include/c++/6.1.1/type_traits(337): error: identifier "__float128" is undefined /usr/include/c++/6.1.1/type_traits(453): error: expected a ">" /usr/include/c++/6.1.1/type_traits(457): error: expected a ">" /usr/include/c++/6.1.1/type_traits(465): error: expected a ">" /usr/include/c++/6.1.1/type_traits(469): error: expected a ">" /usr/include/c++/6.1.1/type_traits(477): error: expected a ">" /usr/include/c++/6.1.1/type_traits(481): error: expected a ">" /usr/include/c++/6.1.1/type_traits(489): error: expected a ">" /usr/include/c++/6.1.1/type_traits(493): error: expected a ">" /usr/include/c++/6.1.1/type_traits(501): error: expected a ">" /usr/include/c++/6.1.1/type_traits(505): error: expected a ">" /usr/include/c++/6.1.1/type_traits(513): error: expected a ">" /usr/include/c++/6.1.1/type_traits(517): error: expected a ">" /usr/include/c++/6.1.1/type_traits(525): error: expected a ">" /usr/include/c++/6.1.1/type_traits(529): error: expected a ">" /usr/include/c++/6.1.1/type_traits(537): error: expected a ">" /usr/include/c++/6.1.1/type_traits(541): error: expected a ">" /usr/include/c++/6.1.1/type_traits(551): error: namespace "std" has no member "nullptr_t" /usr/include/c++/6.1.1/type_traits(572): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(578): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(585): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(592): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(602): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(628): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(738): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(752): error: expected a ";" /usr/include/c++/6.1.1/type_traits(767): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(777): error: expected a ")" /usr/include/c++/6.1.1/type_traits(788): error: an explicit template argument list is not allowed on this declaration /usr/include/c++/6.1.1/type_traits(788): error: expected a type specifier /usr/include/c++/6.1.1/type_traits(788): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(788): error: expected a ";" /usr/include/c++/6.1.1/type_traits(794): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(795): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(825): error: identifier "noexcept" is undefined /usr/include/c++/6.1.1/type_traits(825): error: function call is not allowed in a constant expression /usr/include/c++/6.1.1/type_traits(825): error: function call is not allowed in a constant expression /usr/include/c++/6.1.1/type_traits(825): error: this operator is not allowed in a template argument expression /usr/include/c++/6.1.1/type_traits(836): error: an explicit template argument list is not allowed on this declaration /usr/include/c++/6.1.1/type_traits(836): error: expected a type specifier /usr/include/c++/6.1.1/type_traits(836): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(836): error: expected a ";" /usr/include/c++/6.1.1/type_traits(842): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(843): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(868): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(879): error: an explicit template argument list is not allowed on this declaration Error limit reached. lib/THC/CMakeFiles/THC.dir/build.make:231: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCHalf.cu.o' failed /usr/lib/gcc/x86_64-pc-linux-gnu/6.1.1/include/stddef.h(436): error: expected a ";" /usr/include/c++/6.1.1/x86_64-pc-linux-gnu/bits/c++config.h(202): error: expected a ";" /usr/include/c++/6.1.1/exception(63): error: expected a ";" /usr/include/c++/6.1.1/exception(69): error: expected a ";" /usr/include/c++/6.1.1/exception(77): error: expected a ";" /usr/include/c++/6.1.1/exception(85): error: expected a ";" /usr/include/c++/6.1.1/exception(95): error: expected a "{" /usr/include/c++/6.1.1/bits/exception_ptr.h(64): error: function "std::current_exception" returns incomplete type "std::__exception_ptr::exception_ptr" /usr/include/c++/6.1.1/bits/exception_ptr.h(64): error: expected a "{" /usr/include/c++/6.1.1/bits/exception_ptr.h(71): error: namespace "std" has no member "rethrow_exception" /usr/include/c++/6.1.1/bits/exception_ptr.h(81): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(83): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(84): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(86): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: declaration is incompatible with previous "std::current_exception" /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(88): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(89): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(92): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(94): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(97): error: incomplete type is not allowed /usr/include/c++/6.1.1/bits/exception_ptr.h(97): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(118): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(128): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(145): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(146): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(149): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(154): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(155): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(158): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(159): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(162): error: use of a local type to declare a function /usr/include/c++/6.1.1/bits/exception_ptr.h(163): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(171): error: expected a ";" /usr/include/c++/6.1.1/bits/exception_ptr.h(197): error: expected a ";" /usr/include/c++/6.1.1/bits/move.h(47): error: expected a ";" /usr/include/c++/6.1.1/type_traits(71): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(71): error: template parameter "_Tp" may not be redeclared in this scope /usr/include/c++/6.1.1/type_traits(71): error: expected a ";" /usr/include/c++/6.1.1/type_traits(72): error: member "std::integral_constant<_Tp, __v>::_Tp" is not a type name /usr/include/c++/6.1.1/type_traits(73): error: member "std::integral_constant<_Tp, __v>::_Tp" is not a type name /usr/include/c++/6.1.1/type_traits(74): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(79): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(79): error: "value_type" has already been declared in the current scope /usr/include/c++/6.1.1/type_traits(79): error: expected a ";" /usr/include/c++/6.1.1/type_traits(84): error: identifier "constexpr" is undefined /usr/include/c++/6.1.1/type_traits(84): error: "_Tp" is not a function or static data member /usr/include/c++/6.1.1/type_traits(93): error: expected a declaration /usr/include/c++/6.1.1/type_traits(93): error: expected a ";" /usr/include/c++/6.1.1/type_traits(126): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(235): error: identifier "char16_t" is undefined /usr/include/c++/6.1.1/type_traits(239): error: identifier "char32_t" is undefined /usr/include/c++/6.1.1/type_traits(239): error: class "std::__is_integral_helper<>" has already been defined /usr/include/c++/6.1.1/type_traits(337): error: identifier "__float128" is undefined /usr/include/c++/6.1.1/type_traits(453): error: expected a ">" /usr/include/c++/6.1.1/type_traits(457): error: expected a ">" /usr/include/c++/6.1.1/type_traits(465): error: expected a ">" /usr/include/c++/6.1.1/type_traits(469): error: expected a ">" /usr/include/c++/6.1.1/type_traits(477): error: expected a ">" /usr/include/c++/6.1.1/type_traits(481): error: expected a ">" /usr/include/c++/6.1.1/type_traits(489): error: expected a ">" /usr/include/c++/6.1.1/type_traits(493): error: expected a ">" /usr/include/c++/6.1.1/type_traits(501): error: expected a ">" /usr/include/c++/6.1.1/type_traits(505): error: expected a ">" /usr/include/c++/6.1.1/type_traits(513): error: expected a ">" /usr/include/c++/6.1.1/type_traits(517): error: expected a ">" /usr/include/c++/6.1.1/type_traits(525): error: expected a ">" /usr/include/c++/6.1.1/type_traits(529): error: expected a ">" /usr/include/c++/6.1.1/type_traits(537): error: expected a ">" /usr/include/c++/6.1.1/type_traits(541): error: expected a ">" /usr/include/c++/6.1.1/type_traits(551): error: namespace "std" has no member "nullptr_t" /usr/include/c++/6.1.1/type_traits(572): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(578): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(585): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(592): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(602): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(628): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(738): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(752): error: expected a ";" /usr/include/c++/6.1.1/type_traits(767): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(777): error: expected a ")" /usr/include/c++/6.1.1/type_traits(788): error: an explicit template argument list is not allowed on this declaration /usr/include/c++/6.1.1/type_traits(788): error: expected a type specifier /usr/include/c++/6.1.1/type_traits(788): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(788): error: expected a ";" /usr/include/c++/6.1.1/type_traits(794): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(795): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(825): error: identifier "noexcept" is undefined /usr/include/c++/6.1.1/type_traits(825): error: function call is not allowed in a constant expression /usr/include/c++/6.1.1/type_traits(825): error: function call is not allowed in a constant expression /usr/include/c++/6.1.1/type_traits(825): error: this operator is not allowed in a template argument expression /usr/include/c++/6.1.1/type_traits(836): error: an explicit template argument list is not allowed on this declaration /usr/include/c++/6.1.1/type_traits(836): error: expected a type specifier /usr/include/c++/6.1.1/type_traits(836): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(836): error: expected a ";" /usr/include/c++/6.1.1/type_traits(842): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(843): error: space required between adjacent ">" delimiters of nested template argument lists (">>" is the right shift operator) /usr/include/c++/6.1.1/type_traits(868): error: function returning function is not allowed /usr/include/c++/6.1.1/type_traits(879): error: an explicit template argument list is not allowed on this declaration Error limit reached. lib/THC/CMakeFiles/THC.dir/build.make:77: recipe for target 'lib/THC/CMakeFiles/THC.dir/THC_generated_THCStorage.cu.o' failed Error: Build error: Failed building. @cloudhan well this is what I got |
@sirus20x6 I think this automatic git clone is the source, that is you always get a fresh copy of the code including the |
@cloudhan thank you that worked! hopefully that will get me across the finish line on this. cpu mode on docker is just too slow to use. |
I had the exact same problem. Turns out its as simple as
I'm using Arch Linux w/ gcc 6.1.1. EDIT: Tried again, for some strange reason this only works when you install from your local copy. |
@Sebb767's advice resolved my issue trying to install Torch7 using the default install script on arch with gcc 6.1.1. You'll want to run the steps he advises, and then go back to the Torch7 install script directory. You then will need to type
And voila! it works. Thanks! |
|
Also
|
Half of it has been installed well, another part not:
|
@GildedHonour this works for me:
In
And finally:
|
@cpra for me not, the same errors. |
@GildedHonour strange, the version I posed works for me, I tried it several times (@Sebb767 s version does not for some reason). It also fixed the build errors I got when installing
|
@cpra that doesn't help. also
|
@soumith CUDA 7.5 and CUDA 8.0 both work fine with GCC-5, and for CUDA 7.5 a hack on header file CUDA 8.0 + GCC-6 is really a pain. |
this worked for me (dunno how to fix cmake)
|
@aep This did not work for me. But essentially, the problem you identify is correct. Archlinux has CUDA 8 that does not like gcc-6. Because of this Arch automatically installs gcc-5 as a dep for CUDA. See wiki and bugreport. I thought that aep's solution should have worked for me but it gave weird errors with CMake. I also tried setting I did manage to compile by temporarily symlinking |
Adding |
Just adding my experience from Gentoo on: I had to apply older standard processing:
Discussed elsewhere: |
Moving nvcc to /opt/bin/nvcc_ and putting that scrip in its place didn't work for me at first, and gave me an unspecified error like:
But then I realised I had forgot to run |
For third time of getting error 'no space left' I finally got it: |
gcc 6 defaults to -std=c++14 which cause compilation issue with nvcc.
A related upstream bug report, seems some compilation option should be added to build scripts of
cutorch
,cunn
,cudnn
andcunnx
.The text was updated successfully, but these errors were encountered: