Turoad / lanedet

An open source lane detection toolbox based on PyTorch, including SCNN, RESA, UFLD, LaneATT, CondLane, etc.
Apache License 2.0
561 stars 93 forks source link

Build error: command '/usr/local/cuda-10.1/bin/nvcc' failed with exit code 1 #64

Open zzggzz opened 2 years ago

zzggzz commented 2 years ago

zzg@zzg-Strix-GL504GW-S5CW:~/CARLA/PythonAPI/carla/lanedet$ python setup.py build develop /home/zzg/.local/lib/python3.8/site-packages/pkg_resources/init.py:123: PkgResourcesDeprecationWarning: 0.18ubuntu0.18.04.1 is an invalid version and will not be supported in a future release warnings.warn( /home/zzg/.local/lib/python3.8/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer. warnings.warn( running build running build_py running egg_info writing lanedet.egg-info/PKG-INFO writing dependency_links to lanedet.egg-info/dependency_links.txt writing requirements to lanedet.egg-info/requires.txt writing top-level names to lanedet.egg-info/top_level.txt /home/zzg/.local/lib/python3.8/site-packages/torch/utils/cpp_extension.py:369: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) reading manifest file 'lanedet.egg-info/SOURCES.txt' adding license file 'LICENSE' writing manifest file 'lanedet.egg-info/SOURCES.txt' running build_ext building 'lanedet.ops.nms_impl' extension x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/zzg/.local/lib/python3.8/site-packages/torch/include -I/home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/zzg/.local/lib/python3.8/site-packages/torch/include/TH -I/home/zzg/.local/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.1/include -I/usr/include/python3.8 -c ./lanedet/ops/csrc/nms.cpp -o build/temp.linux-x86_64-cpython-38/./lanedet/ops/csrc/nms.o -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=nms_impl -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 In file included from /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/Parallel.h:140:0, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/extension.h:4, from ./lanedet/ops/csrc/nms.cpp:30: /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/ParallelOpenMP.h:83:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]

pragma omp parallel for if ((end - begin) >= grain_size)

In file included from /home/zzg/.local/lib/python3.8/site-packages/torch/include/c10/core/Device.h:5:0, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/extension.h:4, from ./lanedet/ops/csrc/nms.cpp:30: ./lanedet/ops/csrc/nms.cpp: In function ‘std::vector nms_forward(at::Tensor, at::Tensor, float, long unsigned int)’: ./lanedet/ops/csrc/nms.cpp:40:41: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]

define CHECK_CUDA(x) AT_ASSERTM(x.type().is_cuda(), #x " must be a CUDA tensor")

                                     ^

/home/zzg/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:225:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’

define C10_EXPAND_MSVC_WORKAROUND(x) x

                                   ^

/home/zzg/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:244:34: note: in expansion of macro ‘C10_UNLIKELY’

define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)

                              ^~~~~~~~~~~~

/home/zzg/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:291:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’ if (C10_UNLIKELY_OR_CONST(!(cond))) { \ ^~~~~ /home/zzg/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:484:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’ C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, __VA_ARGS__)); \ ^~~~~ ./lanedet/ops/csrc/nms.cpp:40:23: note: in expansion of macro ‘AT_ASSERTM’

define CHECK_CUDA(x) AT_ASSERTM(x.type().is_cuda(), #x " must be a CUDA tensor")

                   ^~~~~~~~~~

./lanedet/ops/csrc/nms.cpp:42:24: note: in expansion of macro ‘CHECK_CUDA’

define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)

                    ^~~~~~~~~~

./lanedet/ops/csrc/nms.cpp:53:5: note: in expansion of macro ‘CHECK_INPUT’ CHECK_INPUT(boxes); ^ In file included from /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/Context.h:4, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/extension.h:4, from ./lanedet/ops/csrc/nms.cpp:30: /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here DeprecatedTypeProperties & type() const { ^~~~ In file included from /home/zzg/.local/lib/python3.8/site-packages/torch/include/c10/core/Device.h:5:0, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/extension.h:4, from ./lanedet/ops/csrc/nms.cpp:30: ./lanedet/ops/csrc/nms.cpp:40:41: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]

define CHECK_CUDA(x) AT_ASSERTM(x.type().is_cuda(), #x " must be a CUDA tensor")

                                     ^

/home/zzg/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:225:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’

define C10_EXPAND_MSVC_WORKAROUND(x) x

                                   ^

/home/zzg/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:244:34: note: in expansion of macro ‘C10_UNLIKELY’

define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)

                              ^~~~~~~~~~~~

/home/zzg/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:291:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’ if (C10_UNLIKELY_OR_CONST(!(cond))) { \ ^~~~~ /home/zzg/.local/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:484:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’ C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, __VA_ARGS__)); \ ^~~~~ ./lanedet/ops/csrc/nms.cpp:40:23: note: in expansion of macro ‘AT_ASSERTM’

define CHECK_CUDA(x) AT_ASSERTM(x.type().is_cuda(), #x " must be a CUDA tensor")

                   ^~~~~~~~~~

./lanedet/ops/csrc/nms.cpp:42:24: note: in expansion of macro ‘CHECK_CUDA’

define CHECK_INPUT(x) CHECK_CUDA(x); CHECK_CONTIGUOUS(x)

                    ^~~~~~~~~~

./lanedet/ops/csrc/nms.cpp:54:5: note: in expansion of macro ‘CHECK_INPUT’ CHECK_INPUT(idx); ^ In file included from /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/Context.h:4, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/extension.h:4, from ./lanedet/ops/csrc/nms.cpp:30: /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:303:30: note: declared here DeprecatedTypeProperties & type() const { ^~~~ /usr/local/cuda-10.1/bin/nvcc -I/home/zzg/.local/lib/python3.8/site-packages/torch/include -I/home/zzg/.local/lib/python3.8/site-packages/torch/include/torch/csrc/api/include -I/home/zzg/.local/lib/python3.8/site-packages/torch/include/TH -I/home/zzg/.local/lib/python3.8/site-packages/torch/include/THC -I/usr/local/cuda-10.1/include -I/usr/include/python3.8 -c ./lanedet/ops/csrc/nms_kernel.cu -o build/temp.linux-x86_64-cpython-38/./lanedet/ops/csrc/nms_kernel.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_BFLOAT16_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE=\"_gcc\" -DPYBIND11_STDLIB=\"_libstdcpp\" -DPYBIND11_BUILD_ABI=\"_cxxabi1011\" -DTORCH_EXTENSION_NAME=nms_impl -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=sm_70 -std=c++14 ./lanedet/ops/csrc/nms_kernel.cu: In lambda function: ./lanedet/ops/csrc/nms_kernel.cu:171:43: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations] AT_DISPATCH_FLOATING_TYPES(boxes.type(), "nms_cuda_forward", ([&] { ^ /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:303:1: note: declared here DeprecatedTypeProperties & type() const { ^ ~~ ./lanedet/ops/csrc/nms_kernel.cu:171:98: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated: passing at::DeprecatedTypeProperties to an AT_DISPATCH macro is deprecated, pass an at::ScalarType instead [-Wdeprecated-declarations] AT_DISPATCH_FLOATING_TYPES(boxes.type(), "nms_cuda_forward", ([&] { ^ /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/Dispatch.h:109:1: note: declared here inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) { ^~~ ./lanedet/ops/csrc/nms_kernel.cu: In lambda function: ./lanedet/ops/csrc/nms_kernel.cu:171:857: warning: ‘T at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] AT_DISPATCH_FLOATING_TYPES(boxes.type(), "nms_cuda_forward", ([&] { ^ /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:395:1: note: declared here T data() const { ^ ~~ ./lanedet/ops/csrc/nms_kernel.cu:171:886: warning: ‘T at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] AT_DISPATCH_FLOATING_TYPES(boxes.type(), "nms_cuda_forward", ([&] { ^ /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:395:1: note: declared here T data() const { ^ ~~ ./lanedet/ops/csrc/nms_kernel.cu:171:916: warning: ‘T at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] AT_DISPATCH_FLOATING_TYPES(boxes.type(), "nms_cuda_forward", ([&] { ^ /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:395:1: note: declared here T data() const { ^ ~~ ./lanedet/ops/csrc/nms_kernel.cu: In lambda function: ./lanedet/ops/csrc/nms_kernel.cu:171:1664: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] AT_DISPATCH_FLOATING_TYPES(boxes.type(), "nms_cuda_forward", ([&] { ^ /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:395:1: note: declared here T data() const { ^ ~~ ./lanedet/ops/csrc/nms_kernel.cu:171:1693: warning: ‘T at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] AT_DISPATCH_FLOATING_TYPES(boxes.type(), "nms_cuda_forward", ([&] { ^ /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:395:1: note: declared here T data() const { ^ ~~ ./lanedet/ops/csrc/nms_kernel.cu:171:1723: warning: ‘T at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] AT_DISPATCH_FLOATING_TYPES(boxes.type(), "nms_cuda_forward", ([&] { ^ /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:395:1: note: declared here T data() const { ^ ~~ ./lanedet/ops/csrc/nms_kernel.cu: In function ‘std::vector nms_cuda_forward(at::Tensor, at::Tensor, float, long unsigned int)’: ./lanedet/ops/csrc/nms_kernel.cu:183:115: warning: ‘T at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] nms_collect<<<1, 1>>>(boxes_num, col_blocks, top_k, ^ /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:395:1: note: declared here T data() const { ^ ~~ ./lanedet/ops/csrc/nms_kernel.cu:183:143: warning: ‘T at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] nms_collect<<<1, 1>>>(boxes_num, col_blocks, top_k, ^ /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:395:1: note: declared here T data() const { ^ ~~ ./lanedet/ops/csrc/nms_kernel.cu:183:171: warning: ‘T at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] nms_collect<<<1, 1>>>(boxes_num, col_blocks, top_k, ^ /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:395:1: note: declared here T data() const { ^ ~~ ./lanedet/ops/csrc/nms_kernel.cu:183:214: warning: ‘T at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] nms_collect<<<1, 1>>>(boxes_num, col_blocks, top_k, ^ /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:395:1: note: declared here T data() const { ^ ~~ ./lanedet/ops/csrc/nms_kernel.cu:183:249: warning: ‘T at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations] nms_collect<<<1, 1>>>(boxes_num, col_blocks, top_k, ^ /home/zzg/.local/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:395:1: note: declared here T data() const { ^ ~~ /usr/include/c++/7/bits/basic_string.tcc: In instantiation of ‘static std::basic_string<_CharT, _Traits, _Alloc>::_Rep std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_create(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’: /usr/include/c++/7/bits/basic_string.tcc:578:28: required from ‘static _CharT std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&, std::forward_iterator_tag) [with _FwdIterator = const char16_t; _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator]’ /usr/include/c++/7/bits/basic_string.h:5042:20: required from ‘static _CharT std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const _Alloc&, std::false_type) [with _InIterator = const char16_t; _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator]’ /usr/include/c++/7/bits/basic_string.h:5063:24: required from ‘static _CharT std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&) [with _InIterator = const char16_t; _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator]’ /usr/include/c++/7/bits/basic_string.tcc:656:134: required from ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’ /usr/include/c++/7/bits/basic_string.h:6688:95: required from here /usr/include/c++/7/bits/basic_string.tcc:1067:16: error: cannot call member function ‘void std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator]’ without object p->_M_set_sharable();


/usr/include/c++/7/bits/basic_string.tcc: In instantiation of ‘static std::basic_string<_CharT, _Traits, _Alloc>::_Rep* std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_create(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’:
/usr/include/c++/7/bits/basic_string.tcc:578:28:   required from ‘static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&, std::forward_iterator_tag) [with _FwdIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]’
/usr/include/c++/7/bits/basic_string.h:5042:20:   required from ‘static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const _Alloc&, std::__false_type) [with _InIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]’
/usr/include/c++/7/bits/basic_string.h:5063:24:   required from ‘static _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&) [with _InIterator = const char32_t*; _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]’
/usr/include/c++/7/bits/basic_string.tcc:656:134:   required from ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT*, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’
/usr/include/c++/7/bits/basic_string.h:6693:95:   required from here
/usr/include/c++/7/bits/basic_string.tcc:1067:16: error: cannot call member function ‘void std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char32_t; _Traits = std::char_traits<char32_t>; _Alloc = std::allocator<char32_t>]’ without object
error: command '/usr/local/cuda-10.1/bin/nvcc' failed with exit code 1
qklee-lz commented 12 months ago

export CUDA_HOME=/usr/local/cuda