hpi-xnor / BMXNet-v2-wiki

Wiki for BMXNet v2 (https://github.com/hpi-xnor/BMXNet-v2)
5 stars 1 forks source link

libmxnet.so: PC-relative offset overflow in PLT entry for `_Z #2

Closed schliffen closed 4 years ago

schliffen commented 4 years ago

I am trying to build the repo on Ubutu 18.04 with cuda 10.0. (Ubuntu 6.5.0-2ubuntu1~18.04) gcc =6.5.0 2018102 I got the following error:


Linking CXX executable im2rec FAILED: im2rec : && /usr/bin/c++ -Wall -Wno-unknown-pragmas -Wno-sign-compare -O3 -msse2 -std=c++11 -mf16c -fopenmp -march=native -mpopcnt -funroll-loops -std=c++0x -rdynamic CMakeFiles/im2rec.dir/tools/im2rec.cc.o -o im2rec -L/usr/local/cuda-10.0/lib64 -Wl,-rpath,/usr/local/cuda-10.0/lib64:/usr/local/lib:/home/ali/BMXNet-v2/build/3rdparty/openmp/runtime/src -Wl,--whole-archive libmxnet.a -Wl,--no-whole-archive /usr/local/lib/libopenblas.so /usr/local/cuda-10.0/lib64/libcudart.so /usr/local/cuda-10.0/lib64/libcurand.so /usr/local/cuda-10.0/lib64/libcublas.so /usr/local/cuda-10.0/lib64/libcudart.so /usr/local/cuda-10.0/lib64/libcurand.so /usr/local/cuda-10.0/lib64/libcublas.so /usr/local/cuda-10.0/lib64/libcudnn.so -lrt 3rdparty/openmp/runtime/src/libomp.so -lpthread -llapack /usr/local/cuda-10.0/lib64/libcudnn.so -lcufft -lcusolver -lnvrtc -lcuda /usr/local/lib/libopencv_highgui.so.3.4.4 3rdparty/dmlc-core/libdmlc.a -lrt -lpthread -llapack -lcufft -lcusolver -lnvrtc -lcuda /usr/local/lib/libopencv_videoio.so.3.4.4 /usr/local/lib/libopencv_imgcodecs.so.3.4.4 /usr/local/lib/libopencv_imgproc.so.3.4.4 /usr/local/lib/libopencv_core.so.3.4.4 /usr/local/lib/libopencv_cudev.so.3.4.4 -lpthread -ldl && : /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function _start': (.text+0x26): relocation truncated to fit: R_X86_64_GOTPCRELX against symbollibc_start_main@@GLIBC_2.2.5' defined in .text section in /lib/x86_64-linux-gnu/libc.so.6 /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o:(.eh_frame+0x20): relocation truncated to fit: R_X86_64_PC32 against .text' /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crti.o: In function_init': (.init+0x7): relocation truncated to fit: R_X86_64_REX_GOTPCRELX against undefined symbol `__gmon_start' libmxnet.a(cuda_compile_1_generated_sync_batch_norm.cu.o): In function __cudaUnregisterBinaryUtil()': /usr/local/cuda-10.0/include/crt/host_runtime.h:255:(.text+0x3): relocation truncated to fit: R_X86_64_PC32 against.bss' /usr/bin/ld: failed to convert GOTPCREL relocation; relink with --no-relax collect2: error: ld returned 1 exit status [418/421] Linking CXX executable example/image-classification/predict-cpp/image-classification-predict FAILED: example/image-classification/predict-cpp/image-classification-predict : && /usr/bin/c++ -Wall -Wno-unknown-pragmas -Wno-sign-compare -O3 -msse2 -std=c++11 -mf16c -fopenmp -march=native -mpopcnt -funroll-loops -std=c++0x -rdynamic example/image-classification/predict-cpp/CMakeFiles/image-classification-predict.dir/image-classification-predict.cc.o -o example/image-classification/predict-cpp/image-classification-predict -L/usr/local/cuda-10.0/lib64 -Wl,-rpath,/usr/local/cuda-10.0/lib64:/usr/local/lib:/home/ali/BMXNet-v2/build/3rdparty/openmp/runtime/src -Wl,--whole-archive libmxnet.a -Wl,--no-whole-archive 3rdparty/dmlc-core/libdmlc.a /usr/local/lib/libopenblas.so /usr/local/cuda-10.0/lib64/libcudart.so /usr/local/cuda-10.0/lib64/libcurand.so /usr/local/cuda-10.0/lib64/libcublas.so /usr/local/cuda-10.0/lib64/libcudart.so /usr/local/cuda-10.0/lib64/libcurand.so /usr/local/cuda-10.0/lib64/libcublas.so /usr/local/cuda-10.0/lib64/libcudnn.so -lrt /usr/local/lib/libopencv_highgui.so.3.4.4 3rdparty/openmp/runtime/src/libomp.so -lpthread -llapack /usr/local/cuda-10.0/lib64/libcudnn.so -lcufft -lcusolver -lnvrtc -lcuda -lrt -lpthread -llapack -lcufft -lcusolver -lnvrtc -lcuda /usr/local/lib/libopencv_videoio.so.3.4.4 /usr/local/lib/libopencv_imgcodecs.so.3.4.4 /usr/local/lib/libopencv_imgproc.so.3.4.4 /usr/local/lib/libopencv_core.so.3.4.4 /usr/local/lib/libopencv_cudev.so.3.4.4 -lpthread -ldl && : /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function _start': (.text+0x26): relocation truncated to fit: R_X86_64_GOTPCRELX against symbollibc_start_main@@GLIBC_2.2.5' defined in .text section in /lib/x86_64-linux-gnu/libc.so.6 /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o:(.eh_frame+0x20): relocation truncated to fit: R_X86_64_PC32 against .text' /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crti.o: In function_init': (.init+0x7): relocation truncated to fit: R_X86_64_REX_GOTPCRELX against undefined symbol `__gmon_start' libmxnet.a(cuda_compile_1_generated_sync_batch_norm.cu.o): In function __cudaUnregisterBinaryUtil()': /usr/local/cuda-10.0/include/crt/host_runtime.h:255:(.text+0x3): relocation truncated to fit: R_X86_64_PC32 against.bss' /usr/bin/ld: failed to convert GOTPCREL relocation; relink with --no-relax collect2: error: ld returned 1 exit status [419/421] Linking CXX executable tools/binary_converter/model-converter FAILED: tools/binary_converter/model-converter : && /usr/bin/c++ -Wall -Wno-unknown-pragmas -Wno-sign-compare -O3 -msse2 -std=c++11 -mf16c -fopenmp -march=native -mpopcnt -funroll-loops -std=c++0x tools/binary_converter/CMakeFiles/model-converter.dir/main.cpp.o -o tools/binary_converter/model-converter -L/usr/local/cuda-10.0/lib64 -Wl,-rpath,/usr/local/cuda-10.0/lib64:/usr/local/lib:/home/ali/BMXNet-v2/build/3rdparty/openmp/runtime/src -Wl,--whole-archive libmxnet.a -Wl,--no-whole-archive 3rdparty/dmlc-core/libdmlc.a /usr/local/lib/libopenblas.so /usr/local/cuda-10.0/lib64/libcudart.so /usr/local/cuda-10.0/lib64/libcurand.so /usr/local/cuda-10.0/lib64/libcublas.so /usr/local/cuda-10.0/lib64/libcudart.so /usr/local/cuda-10.0/lib64/libcurand.so /usr/local/cuda-10.0/lib64/libcublas.so /usr/local/cuda-10.0/lib64/libcudnn.so /usr/lib/x86_64-linux-gnu/librt.so /usr/local/lib/libopencv_highgui.so.3.4.4 3rdparty/openmp/runtime/src/libomp.so -lpthread -llapack /usr/local/cuda-10.0/lib64/libcudnn.so -lcufft -lcusolver -lnvrtc -lcuda /usr/lib/x86_64-linux-gnu/librt.so -lpthread -llapack -lcufft -lcusolver -lnvrtc -lcuda /usr/local/lib/libopencv_videoio.so.3.4.4 /usr/local/lib/libopencv_imgcodecs.so.3.4.4 /usr/local/lib/libopencv_imgproc.so.3.4.4 /usr/local/lib/libopencv_core.so.3.4.4 /usr/local/lib/libopencv_cudev.so.3.4.4 -lpthread -ldl && : /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function _start': (.text+0x26): relocation truncated to fit: R_X86_64_GOTPCRELX against symbollibc_start_main@@GLIBC_2.2.5' defined in .text section in /lib/x86_64-linux-gnu/libc.so.6 /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o:(.eh_frame+0x20): relocation truncated to fit: R_X86_64_PC32 against .text' /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crti.o: In function_init': (.init+0x7): relocation truncated to fit: R_X86_64_REX_GOTPCRELX against undefined symbol `__gmon_start' libmxnet.a(cuda_compile_1_generated_sync_batch_norm.cu.o): In function __cudaUnregisterBinaryUtil()': /usr/local/cuda-10.0/include/crt/host_runtime.h:255:(.text+0x3): relocation truncated to fit: R_X86_64_PC32 against.bss' /usr/bin/ld: failed to convert GOTPCREL relocation; relink with --no-relax collect2: error: ld returned 1 exit status [420/421] Linking CXX executable tests/mxnet_unit_tests FAILED: tests/mxnet_unit_tests : && /usr/bin/c++ -Wall -Wno-unknown-pragmas -Wno-sign-compare -O3 -msse2 -std=c++11 -mf16c -fopenmp -march=native -mpopcnt -funroll-loops -std=c++0x -rdynamic tests/CMakeFiles/mxnet_unit_tests.dir/cpp/engine/threaded_engine_test.cc.o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/kvstore/gpu_topology_test.cc.o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/misc/base.cc.o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/misc/serialization.cc.o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/operator/activation_perf.cc.o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/operator/batchnorm_test.cc.o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/operator/coreop_perf.cc.o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/operator/dropout_perf.cc.o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/operator/fully_conn_perf.cc.o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/operator/krprod_test.cc.o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/operator/mkldnn_operator_test.cc.o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/operator/mkldnn_test.cc.o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/operator/runner/core_op_runner_test.cc.o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/operator/slice_channel_perf.cc.o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/operator/tune/operator_tune_test.cc.o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/storage/storage_test.cc.o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/test_main.cc.o -o tests/mxnet_unit_tests -L/usr/local/cuda-10.0/lib64 -Wl,-rpath,/usr/local/cuda-10.0/lib64:/usr/local/lib:/home/ali/BMXNet-v2/build/3rdparty/openmp/runtime/src lib/libgtest.a -Wl,--whole-archive libmxnet.a -Wl,--no-whole-archive 3rdparty/dmlc-core/libdmlc.a /usr/local/lib/libopenblas.so /usr/local/cuda-10.0/lib64/libcudart.so /usr/local/cuda-10.0/lib64/libcurand.so /usr/local/cuda-10.0/lib64/libcublas.so /usr/local/cuda-10.0/lib64/libcudart.so /usr/local/cuda-10.0/lib64/libcurand.so /usr/local/cuda-10.0/lib64/libcublas.so /usr/local/cuda-10.0/lib64/libcudnn.so -lrt /usr/local/lib/libopencv_highgui.so.3.4.4 3rdparty/openmp/runtime/src/libomp.so -lpthread -llapack /usr/local/cuda-10.0/lib64/libcudnn.so -lcufft -lcusolver -lnvrtc -lcuda -lrt -lpthread -llapack -lcufft -lcusolver -lnvrtc -lcuda /usr/local/lib/libopencv_videoio.so.3.4.4 /usr/local/lib/libopencv_imgcodecs.so.3.4.4 /usr/local/lib/libopencv_imgproc.so.3.4.4 /usr/local/lib/libopencv_core.so.3.4.4 /usr/local/lib/libopencv_cudev.so.3.4.4 -lpthread -ldl && : /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function _start': (.text+0x26): relocation truncated to fit: R_X86_64_GOTPCRELX against symbollibc_start_main@@GLIBC_2.2.5' defined in .text section in /lib/x86_64-linux-gnu/libc.so.6 /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o:(.eh_frame+0x20): relocation truncated to fit: R_X86_64_PC32 against .text' /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crti.o: In function_init': (.init+0x7): relocation truncated to fit: R_X86_64_REX_GOTPCRELX against undefined symbol `__gmon_start' tests/CMakeFiles/mxnet_unit_tests.dir/cpp/misc/base.cc.o: In function ContextHashTest_ContextHashUnique_Test::TestBody()': base.cc:(.text+0x1f7): relocation truncated to fit: R_X86_64_PC32 against symbolstd::cout@@GLIBCXX_3.4' defined in .dynbss section in /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o base.cc:(.text+0x20f): relocation truncated to fit: R_X86_64_PC32 against symbol std::cout@@GLIBCXX_3.4' defined in .dynbss section in /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/misc/base.cc.o: In functionContextHashTest_ContextHashUnique_Test::~ContextHashTest_ContextHashUnique_Test()': base.cc:(.text._ZN38ContextHashTest_ContextHashUnique_TestD2Ev[_ZN38ContextHashTest_ContextHashUnique_TestD5Ev]+0x3): relocation truncated to fit: R_X86_64_PC32 against symbol vtable for ContextHashTest_ContextHashUnique_Test' defined in .data.rel.ro._ZTV38ContextHashTest_ContextHashUnique_Test[_ZTV38ContextHashTest_ContextHashUnique_Test] section in tests/CMakeFiles/mxnet_unit_tests.dir/cpp/misc/base.cc.o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/misc/base.cc.o: In functionContextHashTest_ContextHashUnique_Test::~ContextHashTest_ContextHashUnique_Test()': base.cc:(.text._ZN38ContextHashTest_ContextHashUnique_TestD0Ev[_ZN38ContextHashTest_ContextHashUnique_TestD5Ev]+0x3): relocation truncated to fit: R_X86_64_PC32 against symbol vtable for ContextHashTest_ContextHashUnique_Test' defined in .data.rel.ro._ZTV38ContextHashTest_ContextHashUnique_Test[_ZTV38ContextHashTest_ContextHashUnique_Test] section in tests/CMakeFiles/mxnet_unit_tests.dir/cpp/misc/base.cc.o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/misc/base.cc.o: In functiontesting::internal::TestFactoryImpl::CreateTest()': base.cc:(.text._ZN7testing8internal15TestFactoryImplI38ContextHashTest_ContextHashUnique_TestE10CreateTestEv[_ZN7testing8internal15TestFactoryImplI38ContextHashTest_ContextHashUnique_TestE10CreateTestEv]+0x1e): relocation truncated to fit: R_X86_64_PC32 against symbol vtable for ContextHashTest_ContextHashUnique_Test' defined in .data.rel.ro._ZTV38ContextHashTest_ContextHashUnique_Test[_ZTV38ContextHashTest_ContextHashUnique_Test] section in tests/CMakeFiles/mxnet_unit_tests.dir/cpp/misc/base.cc.o tests/CMakeFiles/mxnet_unit_tests.dir/cpp/misc/base.cc.o: In function_GLOBALsub_I__ZN38ContextHashTest_ContextHashUnique_Test10test_info_E': base.cc:(.text.startup+0xc4): relocation truncated to fit: R_X86_64_PC32 against .bss' base.cc:(.text.startup+0xed): relocation truncated to fit: R_X86_64_REX_GOTPCRELX against symbolstd::ios_base::Init::~Init()@@GLIBCXX_3.4' defined in .text section in /usr/lib/gcc/x86_64-linux-gnu/7/libstdc++.so base.cc:(.text.startup+0xf4): additional relocation overflows omitted from the output /usr/bin/ld: failed to convert GOTPCREL relocation; relink with --no-relax collect2: error: ld returned 1 exit status [421/421] Linking CXX shared library libmxnet.so FAILED: libmxnet.so : && /usr/bin/c++ -fPIC -Wall -Wno-unknown-pragmas -Wno-sign-compare -O3 -msse2 -std=c++11 -mf16c -fopenmp -march=native -mpopcnt -funroll-loops -std=c++0x -shared -Wl,-soname,libmxnet.so -o libmxnet.so CMakeFiles/mxnet.dir/dummy.c.o -L/usr/local/cuda-10.0/lib64 -Wl,-rpath,/usr/local/cuda-10.0/lib64:/usr/local/lib:/home/ali/BMXNet-v2/build/3rdparty/openmp/runtime/src: -Wl,--whole-archive libmxnet.a -Wl,--no-whole-archive libmxnet.a /usr/local/lib/libopenblas.so /usr/local/cuda-10.0/lib64/libcudart.so /usr/local/cuda-10.0/lib64/libcurand.so /usr/local/cuda-10.0/lib64/libcublas.so /usr/local/cuda-10.0/lib64/libcudart.so /usr/local/cuda-10.0/lib64/libcurand.so /usr/local/cuda-10.0/lib64/libcublas.so /usr/local/cuda-10.0/lib64/libcudnn.so -lrt /usr/local/lib/libopencv_highgui.so.3.4.4 3rdparty/openmp/runtime/src/libomp.so -lpthread -llapack /usr/local/cuda-10.0/lib64/libcudnn.so -lcufft -lcusolver -lnvrtc -lcuda 3rdparty/dmlc-core/libdmlc.a -lrt -lpthread -llapack -lcufft -lcusolver -lnvrtc -lcuda /usr/local/lib/libopencv_videoio.so.3.4.4 /usr/local/lib/libopencv_imgcodecs.so.3.4.4 /usr/local/lib/libopencv_imgproc.so.3.4.4 /usr/local/lib/libopencv_core.so.3.4.4 /usr/local/lib/libopencv_cudev.so.3.4.4 -lpthread -ldl && : /usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/crti.o: In function _init': (.init+0x7): relocation truncated to fit: R_X86_64_REX_GOTPCRELX against undefined symbolgmon_start' libmxnet.a(cuda_compile_1_generated_sync_batch_norm.cu.o): In function `cudaUnregisterBinaryUtil()': /usr/local/cuda-10.0/include/crt/host_runtime.h:255:(.text+0x3): relocation truncated to fit: R_X86_64_PC32 against .bss' libmxnet.a(cuda_compile_1_generated_sync_batch_norm.cu.o): In functionmxnet::Operator* mxnet::op::CreateOp(mxnet::op::SyncBatchNormParam, int)': /home/ali/BMXNet-v2/src/operator/contrib/sync_batch_norm-inl.h:251:(.text+0x15a): relocation truncated to fit: R_X86_64_REX_GOTPCRELX against symbol vtable for mxnet::op::SyncBatchNorm<mshadow::gpu>' defined in .data.rel.ro._ZTVN5mxnet2op13SyncBatchNormIN7mshadow3gpuEEE[_ZTVN5mxnet2op13SyncBatchNormIN7mshadow3gpuEEE] section in libmxnet.a(cuda_compile_1_generated_sync_batch_norm.cu.o) libmxnet.a(cuda_compile_1_generated_sync_batch_norm.cu.o): In functionmxnet::op::SyncBatchNorm::~SyncBatchNorm()': /home/ali/BMXNet-v2/src/operator/contrib/sync_batch_norm-inl.h:249:(.text._ZN5mxnet2op13SyncBatchNormIN7mshadow3gpuEED2Ev[_ZN5mxnet2op13SyncBatchNormIN7mshadow3gpuEED5Ev]+0x3): relocation truncated to fit: R_X86_64_REX_GOTPCRELX against symbol vtable for mxnet::op::SyncBatchNorm<mshadow::gpu>' defined in .data.rel.ro._ZTVN5mxnet2op13SyncBatchNormIN7mshadow3gpuEEE[_ZTVN5mxnet2op13SyncBatchNormIN7mshadow3gpuEEE] section in libmxnet.a(cuda_compile_1_generated_sync_batch_norm.cu.o) libmxnet.a(cuda_compile_1_generated_sync_batch_norm.cu.o): In functionmxnet::op::SyncBatchNorm::~SyncBatchNorm()': /home/ali/BMXNet-v2/src/operator/contrib/sync_batch_norm-inl.h:249:(.text._ZN5mxnet2op13SyncBatchNormIN7mshadow3gpuEED0Ev[_ZN5mxnet2op13SyncBatchNormIN7mshadow3gpuEED5Ev]+0x3): relocation truncated to fit: R_X86_64_REX_GOTPCRELX against symbol vtable for mxnet::op::SyncBatchNorm<mshadow::gpu>' defined in .data.rel.ro._ZTVN5mxnet2op13SyncBatchNormIN7mshadow3gpuEEE[_ZTVN5mxnet2op13SyncBatchNormIN7mshadow3gpuEEE] section in libmxnet.a(cuda_compile_1_generated_sync_batch_norm.cu.o) libmxnet.a(cuda_compile_1_generated_sync_batch_norm.cu.o): In functioncudaLaunchKernel': /usr/local/cuda-10.0/include/cuda_runtime.h:202:(.text._ZN7mshadow4cuda23MapReduceKeepDim1KernelINS_2sv6savetoENS_3red3sumELi8EfNS_4expr4PlanINS_6TensorINS_3gpuELi1EfEEfEENS7_INS6_12BinaryMapExpINS_2op3mulENS8_IS9_Li4EfEENSC_INSD_5minusESF_NS6_13MakeTensorExpINS6_14Broadcast1DExpISA_fLi4ELi3EEESA_Li4EfEEfLi3EEEfLi3EEEfEEEEvT3_T4_T2_NS_5ShapeILi4EEE[_ZN7mshadow4cuda23MapReduceKeepDim1KernelINS_2sv6savetoENS_3red3sumELi8EfNS_4expr4PlanINS_6TensorINS_3gpuELi1EfEEfEENS7_INS6_12BinaryMapExpINS_2op3mulENS8_IS9_Li4EfEENSC_INSD_5minusESF_NS6_13MakeTensorExpINS6_14Broadcast1DExpISA_fLi4ELi3EEESA_Li4EfEEfLi3EEEfLi3EEEfEEEEvT3_T4_T2_NS_5ShapeILi4EEE]+0xcb): relocation truncated to fit: R_X86_64_REX_GOTPCRELX against symbol void mshadow::cuda::MapReduceKeepDim1Kernel<mshadow::sv::saveto, mshadow::red::sum, 8, float, mshadow::expr::Plan<mshadow::Tensor<mshadow::gpu, 1, float>, float>, mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mshadow::gpu, 4, float>, mshadow::expr::BinaryMapExp<mshadow::op::minus, mshadow::Tensor<mshadow::gpu, 4, float>, mshadow::expr::MakeTensorExp<mshadow::expr::Broadcast1DExp<mshadow::Tensor<mshadow::gpu, 1, float>, float, 4, 3>, mshadow::Tensor<mshadow::gpu, 1, float>, 4, float>, float, 3>, float, 3>, float> >(mshadow::expr::Plan<mshadow::Tensor<mshadow::gpu, 1, float>, float>, mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mshadow::gpu, 4, float>, mshadow::expr::BinaryMapExp<mshadow::op::minus, mshadow::Tensor<mshadow::gpu, 4, float>, mshadow::expr::MakeTensorExp<mshadow::expr::Broadcast1DExp<mshadow::Tensor<mshadow::gpu, 1, float>, float, 4, 3>, mshadow::Tensor<mshadow::gpu, 1, float>, 4, float>, float, 3>, float, 3>, float>, float, mshadow::Shape<4>)' defined in .text._ZN7mshadow4cuda23MapReduceKeepDim1KernelINS_2sv6savetoENS_3red3sumELi8EfNS_4expr4PlanINS_6TensorINS_3gpuELi1EfEEfEENS7_INS6_12BinaryMapExpINS_2op3mulENS8_IS9_Li4EfEENSC_INSD_5minusESF_NS6_13MakeTensorExpINS6_14Broadcast1DExpISA_fLi4ELi3EEESA_Li4EfEEfLi3EEEfLi3EEEfEEEEvT3_T4_T2_NS_5ShapeILi4EEE[_ZN7mshadow4cuda23MapReduceKeepDim1KernelINS_2sv6savetoENS_3red3sumELi8EfNS_4expr4PlanINS_6TensorINS_3gpuELi1EfEEfEENS7_INS6_12BinaryMapExpINS_2op3mulENS8_IS9_Li4EfEENSC_INSD_5minusESF_NS6_13MakeTensorExpINS6_14Broadcast1DExpISA_fLi4ELi3EEESA_Li4EfEEfLi3EEEfLi3EEEfEEEEvT3_T4_T2_NS_5ShapeILi4EEE] section in libmxnet.a(cuda_compile_1_generated_sync_batch_norm.cu.o) /usr/local/cuda-10.0/include/cuda_runtime.h:202:(.text._ZN7mshadow4cuda13MapPlanKernelINS_2sv6savetoELi8ENS_4expr4PlanINS_6TensorINS_3gpuELi1EfEEfEENS5_INS4_12BinaryMapExpINS_2op3mulENSA_ISC_NSA_ISC_NS4_9ScalarExpIfEES8_fLi1EEES8_fLi1EEENSA_IN5mxnet2op10mshadow_op5powerENSA_INSB_4plusES8_SE_fLi1EEESE_fLi1EEEfLi1EEEfEEEEvT1_lNS_5ShapeILi2EEET2_[_ZN7mshadow4cuda13MapPlanKernelINS_2sv6savetoELi8ENS_4expr4PlanINS_6TensorINS_3gpuELi1EfEEfEENS5_INS4_12BinaryMapExpINS_2op3mulENSA_ISC_NSA_ISC_NS4_9ScalarExpIfEES8_fLi1EEES8_fLi1EEENSA_IN5mxnet2op10mshadow_op5powerENSA_INSB_4plusES8_SE_fLi1EEESE_fLi1EEEfLi1EEEfEEEEvT1_lNS_5ShapeILi2EEET2_]+0xcb): relocation truncated to fit: R_X86_64_REX_GOTPCRELX against symbolvoid mshadow::cuda::MapPlanKernel<mshadow::sv::saveto, 8, mshadow::expr::Plan<mshadow::Tensor<mshadow::gpu, 1, float>, float>, mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::expr::ScalarExp, mshadow::Tensor<mshadow::gpu, 1, float>, float, 1>, mshadow::Tensor<mshadow::gpu, 1, float>, float, 1>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::power, mshadow::expr::BinaryMapExp<mshadow::op::plus, mshadow::Tensor<mshadow::gpu, 1, float>, mshadow::expr::ScalarExp, float, 1>, mshadow::expr::ScalarExp, float, 1>, float, 1>, float> >(mshadow::expr::Plan<mshadow::Tensor<mshadow::gpu, 1, float>, float>, long, mshadow::Shape<2>, mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::expr::ScalarExp, mshadow::Tensor<mshadow::gpu, 1, float>, float, 1>, mshadow::Tensor<mshadow::gpu, 1, float>, float, 1>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::power, mshadow::expr::BinaryMapExp<mshadow::op::plus, mshadow::Tensor<mshadow::gpu, 1, float>, mshadow::expr::ScalarExp, float, 1>, mshadow::expr::ScalarExp, float, 1>, float, 1>, float>)' defined in .text._ZN7mshadow4cuda13MapPlanKernelINS_2sv6savetoELi8ENS_4expr4PlanINS_6TensorINS_3gpuELi1EfEEfEENS5_INS4_12BinaryMapExpINS_2op3mulENSA_ISC_NSA_ISC_NS4_9ScalarExpIfEES8_fLi1EEES8_fLi1EEENSA_IN5mxnet2op10mshadow_op5powerENSA_INSB_4plusES8_SE_fLi1EEESE_fLi1EEEfLi1EEEfEEEEvT1_lNS5ShapeILi2EEET2[_ZN7mshadow4cuda13MapPlanKernelINS_2sv6savetoELi8ENS_4expr4PlanINS_6TensorINS_3gpuELi1EfEEfEENS5_INS4_12BinaryMapExpINS_2op3mulENSA_ISC_NSA_ISC_NS4_9ScalarExpIfEES8_fLi1EEES8_fLi1EEENSA_IN5mxnet2op10mshadow_op5powerENSA_INSB_4plusES8_SE_fLi1EEESE_fLi1EEEfLi1EEEfEEEEvT1_lNS5ShapeILi2EEET2] section in libmxnet.a(cuda_compile_1_generated_sync_batch_norm.cu.o) /usr/local/cuda-10.0/include/cuda_runtime.h:202:(.text._ZN7mshadow4cuda18MapPlanLargeKernelINS_2sv6savetoELi8ELi1024ENS_4expr4PlanINS_6TensorINS_3gpuELi1EfEEfEENS5_INS4_12BinaryMapExpINS_2op3mulENSA_ISC_NSA_ISC_NS4_9ScalarExpIfEES8_fLi1EEES8_fLi1EEENSA_IN5mxnet2op10mshadow_op5powerENSA_INSB_4plusES8_SE_fLi1EEESE_fLi1EEEfLi1EEEfEEEEvT2_lNS_5ShapeILi2EEET3_i[_ZN7mshadow4cuda18MapPlanLargeKernelINS_2sv6savetoELi8ELi1024ENS_4expr4PlanINS_6TensorINS_3gpuELi1EfEEfEENS5_INS4_12BinaryMapExpINS_2op3mulENSA_ISC_NSA_ISC_NS4_9ScalarExpIfEES8_fLi1EEES8_fLi1EEENSA_IN5mxnet2op10mshadow_op5powerENSA_INSB_4plusES8_SE_fLi1EEESE_fLi1EEEfLi1EEEfEEEEvT2_lNS_5ShapeILi2EEET3_i]+0xdb): relocation truncated to fit: R_X86_64_REX_GOTPCRELX against symbol void mshadow::cuda::MapPlanLargeKernel<mshadow::sv::saveto, 8, 1024, mshadow::expr::Plan<mshadow::Tensor<mshadow::gpu, 1, float>, float>, mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::expr::ScalarExp<float>, mshadow::Tensor<mshadow::gpu, 1, float>, float, 1>, mshadow::Tensor<mshadow::gpu, 1, float>, float, 1>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::power, mshadow::expr::BinaryMapExp<mshadow::op::plus, mshadow::Tensor<mshadow::gpu, 1, float>, mshadow::expr::ScalarExp<float>, float, 1>, mshadow::expr::ScalarExp<float>, float, 1>, float, 1>, float> >(mshadow::expr::Plan<mshadow::Tensor<mshadow::gpu, 1, float>, float>, long, mshadow::Shape<2>, mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::expr::ScalarExp<float>, mshadow::Tensor<mshadow::gpu, 1, float>, float, 1>, mshadow::Tensor<mshadow::gpu, 1, float>, float, 1>, mshadow::expr::BinaryMapExp<mxnet::op::mshadow_op::power, mshadow::expr::BinaryMapExp<mshadow::op::plus, mshadow::Tensor<mshadow::gpu, 1, float>, mshadow::expr::ScalarExp<float>, float, 1>, mshadow::expr::ScalarExp<float>, float, 1>, float, 1>, float>, int)' defined in .text._ZN7mshadow4cuda18MapPlanLargeKernelINS_2sv6savetoELi8ELi1024ENS_4expr4PlanINS_6TensorINS_3gpuELi1EfEEfEENS5_INS4_12BinaryMapExpINS_2op3mulENSA_ISC_NSA_ISC_NS4_9ScalarExpIfEES8_fLi1EEES8_fLi1EEENSA_IN5mxnet2op10mshadow_op5powerENSA_INSB_4plusES8_SE_fLi1EEESE_fLi1EEEfLi1EEEfEEEEvT2_lNS_5ShapeILi2EEET3_i[_ZN7mshadow4cuda18MapPlanLargeKernelINS_2sv6savetoELi8ELi1024ENS_4expr4PlanINS_6TensorINS_3gpuELi1EfEEfEENS5_INS4_12BinaryMapExpINS_2op3mulENSA_ISC_NSA_ISC_NS4_9ScalarExpIfEES8_fLi1EEES8_fLi1EEENSA_IN5mxnet2op10mshadow_op5powerENSA_INSB_4plusES8_SE_fLi1EEESE_fLi1EEEfLi1EEEfEEEEvT2_lNS_5ShapeILi2EEET3_i] section in libmxnet.a(cuda_compile_1_generated_sync_batch_norm.cu.o) /usr/local/cuda-10.0/include/cuda_runtime.h:202:(.text._ZN7mshadow4cuda13MapPlanKernelINS_2sv6savetoELi8ENS_4expr4PlanINS_6TensorINS_3gpuELi1EfEEfEENS5_INS4_12BinaryMapExpINS_2op3mulES8_S8_fLi1EEEfEEEEvT1_lNS_5ShapeILi2EEET2_[_ZN7mshadow4cuda13MapPlanKernelINS_2sv6savetoELi8ENS_4expr4PlanINS_6TensorINS_3gpuELi1EfEEfEENS5_INS4_12BinaryMapExpINS_2op3mulES8_S8_fLi1EEEfEEEEvT1_lNS_5ShapeILi2EEET2_]+0xdb): relocation truncated to fit: R_X86_64_REX_GOTPCRELX against symbolvoid mshadow::cuda::MapPlanKernel<mshadow::sv::saveto, 8, mshadow::expr::Plan<mshadow::Tensor<mshadow::gpu, 1, float>, float>, mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mshadow::gpu, 1, float>, mshadow::Tensor<mshadow::gpu, 1, float>, float, 1>, float> >(mshadow::expr::Plan<mshadow::Tensor<mshadow::gpu, 1, float>, float>, long, mshadow::Shape<2>, mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mshadow::gpu, 1, float>, mshadow::Tensor<mshadow::gpu, 1, float>, float, 1>, float>)' defined in .text._ZN7mshadow4cuda13MapPlanKernelINS_2sv6savetoELi8ENS_4expr4PlanINS_6TensorINS_3gpuELi1EfEEfEENS5_INS4_12BinaryMapExpINS_2op3mulES8_S8_fLi1EEEfEEEEvT1_lNS5ShapeILi2EEET2[_ZN7mshadow4cuda13MapPlanKernelINS_2sv6savetoELi8ENS_4expr4PlanINS_6TensorINS_3gpuELi1EfEEfEENS5_INS4_12BinaryMapExpINS_2op3mulES8_S8_fLi1EEEfEEEEvT1_lNS5ShapeILi2EEET2] section in libmxnet.a(cuda_compile_1_generated_sync_batch_norm.cu.o) /usr/local/cuda-10.0/include/cuda_runtime.h:202:(.text._ZN7mshadow4cuda18MapPlanLargeKernelINS_2sv6savetoELi8ELi1024ENS_4expr4PlanINS_6TensorINS_3gpuELi1EfEEfEENS5_INS4_12BinaryMapExpINS_2op3mulES8_S8_fLi1EEEfEEEEvT2_lNS_5ShapeILi2EEET3_i[_ZN7mshadow4cuda18MapPlanLargeKernelINS_2sv6savetoELi8ELi1024ENS_4expr4PlanINS_6TensorINS_3gpuELi1EfEEfEENS5_INS4_12BinaryMapExpINS_2op3mulES8_S8_fLi1EEEfEEEEvT2_lNS_5ShapeILi2EEET3_i]+0xeb): relocation truncated to fit: R_X86_64_REX_GOTPCRELX against symbol void mshadow::cuda::MapPlanLargeKernel<mshadow::sv::saveto, 8, 1024, mshadow::expr::Plan<mshadow::Tensor<mshadow::gpu, 1, float>, float>, mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mshadow::gpu, 1, float>, mshadow::Tensor<mshadow::gpu, 1, float>, float, 1>, float> >(mshadow::expr::Plan<mshadow::Tensor<mshadow::gpu, 1, float>, float>, long, mshadow::Shape<2>, mshadow::expr::Plan<mshadow::expr::BinaryMapExp<mshadow::op::mul, mshadow::Tensor<mshadow::gpu, 1, float>, mshadow::Tensor<mshadow::gpu, 1, float>, float, 1>, float>, int)' defined in .text._ZN7mshadow4cuda18MapPlanLargeKernelINS_2sv6savetoELi8ELi1024ENS_4expr4PlanINS_6TensorINS_3gpuELi1EfEEfEENS5_INS4_12BinaryMapExpINS_2op3mulES8_S8_fLi1EEEfEEEEvT2_lNS_5ShapeILi2EEET3_i[_ZN7mshadow4cuda18MapPlanLargeKernelINS_2sv6savetoELi8ELi1024ENS_4expr4PlanINS_6TensorINS_3gpuELi1EfEEfEENS5_INS4_12BinaryMapExpINS_2op3mulES8_S8_fLi1EEEfEEEEvT2_lNS_5ShapeILi2EEET3_i] section in libmxnet.a(cuda_compile_1_generated_sync_batch_norm.cu.o) /usr/local/cuda-10.0/include/cuda_runtime.h:202:(.text._ZN7mshadow4cuda13MapPlanKernelINS_2sv6savetoELi8ENS_4expr4PlanINS_6TensorINS_3gpuELi4EfEEfEENS5_INS4_12BinaryMapExpINS_2op4plusENSA_ISC_NSA_INSB_3mulENSA_ISD_S8_NS4_13MakeTensorExpINS4_14Broadcast1DExpINS6_IS7_Li1EfEEfLi4ELi3EEESG_Li4EfEEfLi3EEENSE_INSF_INSA_INSB_3divENS4_9ScalarExpIfEENS4_11UnaryMapExpIN5mxnet2op10mshadow_op11square_rootENSA_ISC_SG_SM_fLi1EEEfLi1EEEfLi1EEEfLi4ELi3EEESU_Li4EfEEfLi3EEENSA_ISD_NSA_ISD_SI_SM_fLi3EEENSA_INSB_5minusES8_SI_fLi3EEEfLi3EEEfLi3EEESY_fLi3EEEfEEEEvT1_lNS_5ShapeILi2EEET2_[_ZN7mshadow4cuda13MapPlanKernelINS_2sv6savetoELi8ENS_4expr4PlanINS_6TensorINS_3gpuELi4EfEEfEENS5_INS4_12BinaryMapExpINS_2op4plusENSA_ISC_NSA_INSB_3mulENSA_ISD_S8_NS4_13MakeTensorExpINS4_14Broadcast1DExpINS6_IS7_Li1EfEEfLi4ELi3EEESG_Li4EfEEfLi3EEENSE_INSF_INSA_INSB_3divENS4_9ScalarExpIfEENS4_11UnaryMapExpIN5mxnet2op10mshadow_op11square_rootENSA_ISC_SG_SM_fLi1EEEfLi1EEEfLi1EEEfLi4ELi3EEESU_Li4EfEEfLi3EEENSA_ISD_NSA_ISD_SI_SM_fLi3EEENSA_INSB_5minusES8_SI_fLi3EEEfLi3EEEfLi3EEESY_fLi3EEEfEEEEvT1_lNS_5ShapeILi2EEET2_]+0xcb): additional relocation overflows omitted from the output libmxnet.so: PC-relative offset overflow in PLT entry for_ZN5mxnet2op8mxnet_op6KernelINS0_9pick_gradILi3ELb0EEEN7mshadow3gpuEE6LaunchIJPdS9_PfiiNS5_5ShapeILi3EEESC_EEEvPNS5_6StreamIS6EEiDpT' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed.

Jopyth commented 4 years ago

This seems like a general build issue with mxnet. Are you able to build mxnet 1.5.1, i.e. this commit c9818480680f84daa6e281a974ab263691302ba8 with cmake? Does one of the suggestions in this issue fix it? https://github.com/apache/incubator-mxnet/issues/17045

Jopyth commented 4 years ago

Closing this issue because of inactivity. Please feel free to reopen if the problem persists.