You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mxnet.apache.org by GitBox <gi...@apache.org> on 2020/10/03 12:20:12 UTC

[GitHub] [incubator-mxnet] wms2537 commented on issue #17045: Relocation truncation issues

wms2537 commented on issue #17045:
URL: https://github.com/apache/incubator-mxnet/issues/17045#issuecomment-703094881


   Problem still exist when building on Jetson NX
   ```[ 97%] Building CUDA object CMakeFiles/mxnet.dir/src/operator/tensor/la_op.cu.o
   [ 97%] Building CUDA object CMakeFiles/mxnet.dir/src/operator/tensor/matrix_op.cu.o
   [ 97%] Building CUDA object CMakeFiles/mxnet.dir/src/operator/tensor/ordering_op.cu.o
   [ 97%] Building CUDA object CMakeFiles/mxnet.dir/src/operator/tensor/ravel.cu.o
   [ 97%] Building CUDA object CMakeFiles/mxnet.dir/src/operator/tensor/sparse_retain.cu.o
   [ 97%] Building CUDA object CMakeFiles/mxnet.dir/src/operator/tensor/square_sum.cu.o
   [ 97%] Linking CXX shared library libmxnet.so
   CMakeFiles/nnvm.dir/3rdparty/tvm/nnvm/src/pass/print_graph_ir.cc.o: In function `std::_Function_handler<void (unsigned int, std::ostream&), nnvm::pass::PrintGraphIR_(nnvm::Graph, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::ostream&)::{lambda(unsigned int, std::ostream&)#1}>::_M_invoke(std::_Any_data const&, unsigned int&&, std::ostream&)':
   print_graph_ir.cc:(.text+0x1c4): relocation truncated to fit: R_AARCH64_CALL26 against symbol `std::__throw_bad_function_call()@@GLIBCXX_3.4.14' defined in .text section in /usr/lib/gcc/aarch64-linux-gnu/7/libstdc++.so
   print_graph_ir.cc:(.text+0x204): relocation truncated to fit: R_AARCH64_CALL26 against symbol `std::__throw_bad_function_call()@@GLIBCXX_3.4.14' defined in .text section in /usr/lib/gcc/aarch64-linux-gnu/7/libstdc++.so
   CMakeFiles/nnvm.dir/3rdparty/tvm/nnvm/src/pass/print_graph_ir.cc.o: In function `std::_Function_handler<void (unsigned int, std::ostream&), nnvm::pass::PrintGraphIR_(nnvm::Graph, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::ostream&)::{lambda(unsigned int, std::ostream&)#2}>::_M_invoke(std::_Any_data const&, unsigned int&&, std::ostream&)':
   print_graph_ir.cc:(.text+0x2b4): relocation truncated to fit: R_AARCH64_CALL26 against symbol `std::__throw_bad_function_call()@@GLIBCXX_3.4.14' defined in .text section in /usr/lib/gcc/aarch64-linux-gnu/7/libstdc++.so
   CMakeFiles/nnvm.dir/3rdparty/tvm/nnvm/src/pass/print_graph_ir.cc.o: In function `std::_Function_base::_Base_manager<nnvm::pass::PrintGraphIR_(nnvm::Graph, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::ostream&)::{lambda(unsigned int, std::ostream&)#2}>::_M_manager(std::_Any_data&, std::_Function_base::_Base_manager<nnvm::pass::PrintGraphIR_(nnvm::Graph, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::alloca
 tor<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&, std::ostream&)::{lambda(unsigned int, std::ostream&)#2}> const&, std::_Manager_operation)':
   print_graph_ir.cc:(.text+0x318): relocation truncated to fit: R_AARCH64_CALL26 against symbol `operator delete(void*)@@GLIBCXX_3.4' defined in .text section in /usr/lib/gcc/aarch64-linux-gnu/7/libstdc++.so
   print_graph_ir.cc:(.text+0x324): relocation truncated to fit: R_AARCH64_CALL26 against symbol `operator delete(void*, unsigned long)@@CXXABI_1.3.9' defined in .text section in /usr/lib/gcc/aarch64-linux-gnu/7/libstdc++.so
   print_graph_ir.cc:(.text+0x34c): relocation truncated to fit: R_AARCH64_CALL26 against symbol `operator new(unsigned long)@@GLIBCXX_3.4' defined in .text section in /usr/lib/gcc/aarch64-linux-gnu/7/libstdc++.so
   print_graph_ir.cc:(.text+0x414): relocation truncated to fit: R_AARCH64_CALL26 against symbol `operator new(unsigned long)@@GLIBCXX_3.4' defined in .text section in /usr/lib/gcc/aarch64-linux-gnu/7/libstdc++.so
   print_graph_ir.cc:(.text+0x46c): relocation truncated to fit: R_AARCH64_CALL26 against symbol `operator delete(void*)@@GLIBCXX_3.4' defined in .text section in /usr/lib/gcc/aarch64-linux-gnu/7/libstdc++.so
   print_graph_ir.cc:(.text+0x478): relocation truncated to fit: R_AARCH64_CALL26 against symbol `operator delete(void*, unsigned long)@@CXXABI_1.3.9' defined in .text section in /usr/lib/gcc/aarch64-linux-gnu/7/libstdc++.so
   print_graph_ir.cc:(.text+0x480): relocation truncated to fit: R_AARCH64_CALL26 against symbol `_Unwind_Resume@@GCC_3.0' defined in .text section in /usr/lib/gcc/aarch64-linux-gnu/7/libgcc_s.so
   print_graph_ir.cc:(.text+0x4a0): additional relocation overflows omitted from the output
   collect2: error: ld returned 1 exit status
   CMakeFiles/mxnet.dir/build.make:9471: recipe for target 'libmxnet.so' failed
   make[2]: *** [libmxnet.so] Error 1
   CMakeFiles/Makefile2:740: recipe for target 'CMakeFiles/mxnet.dir/all' failed
   make[1]: *** [CMakeFiles/mxnet.dir/all] Error 2
   Makefile:160: recipe for target 'all' failed
   make: *** [all] Error 2
   ```
   
   Here's my cmake config
   ```set(USE_CUDA ON CACHE BOOL "Build with CUDA support")
   set(USE_CUDNN ON CACHE BOOL "Build with CUDNN support")
   set(CUDACXX "/usr/local/cuda-10.2/bin/nvcc" CACHE STRING "Cuda compiler")
   set(MXNET_CUDA_ARCH "7.2" CACHE STRING "Cuda architectures")
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@mxnet.apache.org
For additional commands, e-mail: issues-help@mxnet.apache.org