-
I tried the solution proposed here:
`../build.sh --config Release --update --build --build_wheel --use_tensorrt --cuda_home /usr/local/cuda --cudnn_home /usr/lib/aarch64-linux-gnu --tensorrt_home /usr/lib/aarch64-linux-gnu
2020-02-14 14:34:50,960 Build [INFO] - Build started
2020-02-14 14:34:50,960 Build [DEBUG] - Running subprocess in '/code/onnxruntime'
['git', 'submodule', 'sync', '--recursive']
Synchronizing submodule url for 'cmake/external/DNNLibrary'
Synchronizing submodule url for 'cmake/external/DNNLibrary/third_party/flatbuffers'
Synchronizing submodule url for 'cmake/external/DNNLibrary/third_party/glog'
Synchronizing submodule url for 'cmake/external/DNNLibrary/third_party/onnx'
Synchronizing submodule url for 'cmake/external/DNNLibrary/third_party/onnx/third_party/benchmark'
Synchronizing submodule url for 'cmake/external/DNNLibrary/third_party/onnx/third_party/pybind11'
Synchronizing submodule url for 'cmake/external/DNNLibrary/third_party/onnx/third_party/pybind11/tools/clang'
Synchronizing submodule url for 'cmake/external/DNNLibrary/third_party/protobuf'
Synchronizing submodule url for 'cmake/external/DNNLibrary/third_party/protobuf/third_party/benchmark'
Synchronizing submodule url for 'cmake/external/DNNLibrary/third_party/protobuf/third_party/googletest'
Synchronizing submodule url for 'cmake/external/DNNLibrary/third_party/pybind11'
Synchronizing submodule url for 'cmake/external/DNNLibrary/third_party/pybind11/tools/clang'
Synchronizing submodule url for 'cmake/external/cub'
Synchronizing submodule url for 'cmake/external/date'
Synchronizing submodule url for 'cmake/external/eigen'
Synchronizing submodule url for 'cmake/external/gemmlowp'
Synchronizing submodule url for 'cmake/external/googletest'
Synchronizing submodule url for 'cmake/external/grpc'
Synchronizing submodule url for 'cmake/external/grpc/third_party/abseil-cpp'
Synchronizing submodule url for 'cmake/external/grpc/third_party/benchmark'
Synchronizing submodule url for 'cmake/external/grpc/third_party/bloaty'
Synchronizing submodule url for 'cmake/external/grpc/third_party/bloaty/third_party/googletest'
Synchronizing submodule url for 'cmake/external/grpc/third_party/bloaty/third_party/libFuzzer'
Synchronizing submodule url for 'cmake/external/grpc/third_party/bloaty/third_party/re2'
Synchronizing submodule url for 'cmake/external/grpc/third_party/boringssl'
Synchronizing submodule url for 'cmake/external/grpc/third_party/boringssl-with-bazel'
Synchronizing submodule url for 'cmake/external/grpc/third_party/cares/cares'
Synchronizing submodule url for 'cmake/external/grpc/third_party/data-plane-api'
Synchronizing submodule url for 'cmake/external/grpc/third_party/gflags'
Synchronizing submodule url for 'cmake/external/grpc/third_party/gflags/doc'
Synchronizing submodule url for 'cmake/external/grpc/third_party/googleapis'
Synchronizing submodule url for 'cmake/external/grpc/third_party/googletest'
Synchronizing submodule url for 'cmake/external/grpc/third_party/libcxx'
Synchronizing submodule url for 'cmake/external/grpc/third_party/libcxxabi'
Synchronizing submodule url for 'cmake/external/grpc/third_party/protobuf'
Synchronizing submodule url for 'cmake/external/grpc/third_party/protobuf/third_party/benchmark'
Synchronizing submodule url for 'cmake/external/grpc/third_party/protobuf/third_party/googletest'
Synchronizing submodule url for 'cmake/external/grpc/third_party/protoc-gen-validate'
Synchronizing submodule url for 'cmake/external/grpc/third_party/upb'
Synchronizing submodule url for 'cmake/external/grpc/third_party/upb/third_party/protobuf'
Synchronizing submodule url for 'cmake/external/grpc/third_party/upb/third_party/protobuf/third_party/benchmark'
Synchronizing submodule url for 'cmake/external/grpc/third_party/upb/third_party/protobuf/third_party/googletest'
Synchronizing submodule url for 'cmake/external/grpc/third_party/zlib'
Synchronizing submodule url for 'cmake/external/mimalloc'
Synchronizing submodule url for 'cmake/external/nsync'
Synchronizing submodule url for 'cmake/external/onnx'
Synchronizing submodule url for 'cmake/external/onnx/third_party/benchmark'
Synchronizing submodule url for 'cmake/external/onnx/third_party/pybind11'
Synchronizing submodule url for 'cmake/external/onnx/third_party/pybind11/tools/clang'
Synchronizing submodule url for 'cmake/external/onnx-tensorrt'
Synchronizing submodule url for 'cmake/external/onnx-tensorrt/third_party/onnx'
Synchronizing submodule url for 'cmake/external/onnx-tensorrt/third_party/onnx/third_party/benchmark'
Synchronizing submodule url for 'cmake/external/onnx-tensorrt/third_party/onnx/third_party/pybind11'
Synchronizing submodule url for 'cmake/external/onnx-tensorrt/third_party/onnx/third_party/pybind11/tools/clang'
Synchronizing submodule url for 'cmake/external/protobuf'
Synchronizing submodule url for 'cmake/external/protobuf/third_party/benchmark'
Synchronizing submodule url for 'cmake/external/protobuf/third_party/googletest'
Synchronizing submodule url for 'cmake/external/re2'
Synchronizing submodule url for 'cmake/external/spdlog'
Synchronizing submodule url for 'cmake/external/tvm'
Synchronizing submodule url for 'cmake/external/tvm/3rdparty/HalideIR'
Synchronizing submodule url for 'cmake/external/tvm/3rdparty/dlpack'
Synchronizing submodule url for 'cmake/external/tvm/3rdparty/dmlc-core'
Synchronizing submodule url for 'cmake/external/tvm/3rdparty/rang'
Synchronizing submodule url for 'cmake/external/wil'
2020-02-14 14:34:52,305 Build [DEBUG] - Running subprocess in '/code/onnxruntime'
['git', 'submodule', 'update', '--init', '--recursive']
2020-02-14 14:34:54,502 Build [INFO] - Generating CMake build tree
2020-02-14 14:34:54,504 Build [DEBUG] - Running subprocess in '/code/onnxruntime/build/Linux/Release'
['/usr/local/bin/cmake', '/code/onnxruntime/cmake', '-Donnxruntime_RUN_ONNX_TESTS=OFF', '-Donnxruntime_GENERATE_TEST_REPORTS=ON', '-Donnxruntime_DEV_MODE=OFF', '-DPYTHON_EXECUTABLE=/usr/bin/python3', '-Donnxruntime_USE_CUDA=ON', '-Donnxruntime_USE_NSYNC=OFF', '-Donnxruntime_CUDNN_HOME=/usr/lib/aarch64-linux-gnu', '-Donnxruntime_USE_AUTOML=OFF', '-Donnxruntime_CUDA_HOME=/usr/local/cuda', '-Donnxruntime_USE_JEMALLOC=OFF', '-Donnxruntime_USE_MIMALLOC=OFF', '-Donnxruntime_ENABLE_PYTHON=ON', '-Donnxruntime_BUILD_CSHARP=OFF', '-Donnxruntime_BUILD_SHARED_LIB=OFF', '-Donnxruntime_USE_EIGEN_FOR_BLAS=ON', '-Donnxruntime_USE_OPENBLAS=OFF', '-Donnxruntime_USE_MKLDNN=OFF', '-Donnxruntime_USE_MKLML=OFF', '-Donnxruntime_USE_GEMMLOWP=OFF', '-Donnxruntime_USE_NGRAPH=OFF', '-Donnxruntime_USE_OPENVINO=OFF', '-Donnxruntime_USE_OPENVINO_BINARY=OFF', '-Donnxruntime_USE_OPENVINO_SOURCE=OFF', '-Donnxruntime_USE_OPENVINO_MYRIAD=OFF', '-Donnxruntime_USE_OPENVINO_GPU_FP32=OFF', '-Donnxruntime_USE_OPENVINO_GPU_FP16=OFF', '-Donnxruntime_USE_OPENVINO_CPU_FP32=OFF', '-Donnxruntime_USE_OPENVINO_VAD_M=OFF', '-Donnxruntime_USE_OPENVINO_VAD_F=OFF', '-Donnxruntime_USE_NNAPI=OFF', '-Donnxruntime_USE_OPENMP=ON', '-Donnxruntime_USE_TVM=OFF', '-Donnxruntime_USE_LLVM=OFF', '-Donnxruntime_ENABLE_MICROSOFT_INTERNAL=OFF', '-Donnxruntime_USE_BRAINSLICE=OFF', '-Donnxruntime_USE_NUPHAR=OFF', '-Donnxruntime_USE_EIGEN_THREADPOOL=OFF', '-Donnxruntime_USE_TENSORRT=ON', '-Donnxruntime_TENSORRT_HOME=/usr/lib/aarch64-linux-gnu', '-Donnxruntime_CROSS_COMPILING=OFF', '-Donnxruntime_BUILD_SERVER=OFF', '-Donnxruntime_BUILD_x86=OFF', '-Donnxruntime_USE_FULL_PROTOBUF=ON', '-Donnxruntime_DISABLE_CONTRIB_OPS=OFF', '-Donnxruntime_MSVC_STATIC_RUNTIME=OFF', '-Donnxruntime_ENABLE_LANGUAGE_INTEROP_OPS=OFF', '-Donnxruntime_USE_DML=OFF', '-DCUDA_CUDA_LIBRARY=/usr/local/cuda/lib64/stubs', '-Donnxruntime_PYBIND_EXPORT_OPSCHEMA=OFF', '-DCMAKE_BUILD_TYPE=Release']
Use gtest from submodule
-- Found PythonInterp: /usr/bin/python3 (found version "3.6.9")
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.9", minimum required is "3.5")
Use protobuf from submodule
-- The CUDA compiler identification is NVIDIA 10.0.326
-- Check for working CUDA compiler: /usr/local/cuda-10.0/bin/nvcc
-- Check for working CUDA compiler: /usr/local/cuda-10.0/bin/nvcc - broken
CMake Error at /usr/local/share/cmake-3.17/Modules/CMakeTestCUDACompiler.cmake:46 (message):
The CUDA compiler
"/usr/local/cuda-10.0/bin/nvcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /code/onnxruntime/build/Linux/Release/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/make cmTC_bb43d/fast && /usr/bin/make -f CMakeFiles/cmTC_bb43d.dir/build.make CMakeFiles/cmTC_bb43d.dir/build
make[1]: Entering directory '/code/onnxruntime/build/Linux/Release/CMakeFiles/CMakeTmp'
Building CUDA object CMakeFiles/cmTC_bb43d.dir/main.cu.o
/usr/local/cuda-10.0/bin/nvcc -cudart shared -Xcompiler=-fPIE -x cu -c /code/onnxruntime/build/Linux/Release/CMakeFiles/CMakeTmp/main.cu -o CMakeFiles/cmTC_bb43d.dir/main.cu.o
Linking CUDA executable cmTC_bb43d
/usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_bb43d.dir/link.txt --verbose=1
/usr/bin/g++ CMakeFiles/cmTC_bb43d.dir/main.cu.o -o cmTC_bb43d -lcudadevrt -lcudart_static -L"/usr/local/cuda-10.0/targets/aarch64-linux/lib/stubs" -L"/usr/local/cuda-10.0/targets/aarch64-linux/lib" -lcudadevrt -lcudart
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::globalState::initializeDriverEntrypoints()':
:(.text+0x23488): undefined reference to `dlsym'
:(.text+0x234b0): undefined reference to `dlsym'
:(.text+0x234d4): undefined reference to `dlsym'
:(.text+0x234f8): undefined reference to `dlsym'
:(.text+0x2351c): undefined reference to `dlsym'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o)::(.text+0x23540): more undefined references to `dlsym' follow
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::globalState::loadDriverInternal()':
:(.text+0x288cc): undefined reference to `dlopen'
:(.text+0x28904): undefined reference to `dlclose'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::__loadDriverInternalUtil()':
:(.text+0x289e0): undefined reference to `dlopen'
:(.text+0x28a14): undefined reference to `dlclose'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::globalState::initializeDriverInternal()':
:(.text+0x2b664): undefined reference to `dlclose'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosInit()':
:(.text+0x5c7bc): undefined reference to `dlerror'
:(.text+0x5c7c8): undefined reference to `dlopen'
:(.text+0x5c7dc): undefined reference to `dlsym'
:(.text+0x5c7e4): undefined reference to `dlerror'
:(.text+0x5c7f4): undefined reference to `dlclose'
:(.text+0x5c838): undefined reference to `dlerror'
:(.text+0x5c844): undefined reference to `dlopen'
:(.text+0x5c858): undefined reference to `dlsym'
:(.text+0x5c860): undefined reference to `dlerror'
:(.text+0x5c870): undefined reference to `dlclose'
:(.text+0x5c8b4): undefined reference to `dlerror'
:(.text+0x5c8c0): undefined reference to `dlopen'
:(.text+0x5c8d4): undefined reference to `dlsym'
:(.text+0x5c8dc): undefined reference to `dlerror'
:(.text+0x5c8ec): undefined reference to `dlclose'
:(.text+0x5c930): undefined reference to `dlerror'
:(.text+0x5c93c): undefined reference to `dlopen'
:(.text+0x5c950): undefined reference to `dlsym'
:(.text+0x5c958): undefined reference to `dlerror'
:(.text+0x5c968): undefined reference to `dlclose'
:(.text+0x5c9a0): undefined reference to `dlerror'
:(.text+0x5c9ac): undefined reference to `dlopen'
:(.text+0x5c9c0): undefined reference to `dlsym'
:(.text+0x5c9c8): undefined reference to `dlerror'
:(.text+0x5c9d8): undefined reference to `dlclose'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosSemaphoreCreate(sem_t*, int)':
:(.text+0x5d910): undefined reference to `sem_init'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosSemaphoreDestroy(sem_t*)':
:(.text+0x5d92c): undefined reference to `sem_destroy'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosSemaphoreWait(sem_t*, unsigned int)':
:(.text+0x5da10): undefined reference to `sem_timedwait'
:(.text+0x5da48): undefined reference to `sem_wait'
:(.text+0x5da60): undefined reference to `sem_trywait'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosSemaphoreSignal(sem_t*)':
:(.text+0x5dab0): undefined reference to `sem_post'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosVirtualReserveInRangeBug1778973WARInit()':
:(.text+0x5f448): undefined reference to `pthread_mutexattr_init'
:(.text+0x5f464): undefined reference to `pthread_mutexattr_settype'
:(.text+0x5f474): undefined reference to `pthread_mutexattr_setpshared'
:(.text+0x5f484): undefined reference to `pthread_mutexattr_setprotocol'
:(.text+0x5f4a4): undefined reference to `pthread_mutexattr_destroy'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosPosixInit()':
:(.text+0x5f4f0): undefined reference to `dlerror'
:(.text+0x5f4fc): undefined reference to `dlopen'
:(.text+0x5f510): undefined reference to `dlsym'
:(.text+0x5f518): undefined reference to `dlerror'
:(.text+0x5f528): undefined reference to `dlclose'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosVirtualReserveInRange(unsigned long, void*, void*, unsigned long)':
:(.text+0x5f768): undefined reference to `pthread_once'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosLoadLibrary(char const*)':
:(.text+0x5fc8c): undefined reference to `dlerror'
:(.text+0x5fca0): undefined reference to `dlopen'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosLoadLibraryUnsafe(char const*)':
:(.text+0x5fcb4): undefined reference to `dlerror'
:(.text+0x5fcc8): undefined reference to `dlopen'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosFreeLibrary(void*)':
:(.text+0x5fcd4): undefined reference to `dlclose'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosGetProcAddress(void*, char const*)':
:(.text+0x5fce8): undefined reference to `dlsym'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosTlsAlloc(void (*)(void*))':
:(.text+0x5fdec): undefined reference to `pthread_key_create'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosTlsFree(unsigned int)':
:(.text+0x5fe10): undefined reference to `pthread_key_delete'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosTlsGetValue(unsigned int)':
:(.text+0x5fe18): undefined reference to `pthread_getspecific'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosTlsSetValue(unsigned int, void*)':
:(.text+0x5fe28): undefined reference to `pthread_setspecific'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosInitializeCriticalSectionWithSharedFlag(pthread_mutex_t*, int)':
:(.text+0x5fef4): undefined reference to `pthread_mutexattr_init'
:(.text+0x5ff14): undefined reference to `pthread_mutexattr_settype'
:(.text+0x5ff24): undefined reference to `pthread_mutexattr_setpshared'
:(.text+0x5ff34): undefined reference to `pthread_mutexattr_setprotocol'
:(.text+0x5ff50): undefined reference to `pthread_mutexattr_destroy'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosInitializeCriticalSection(pthread_mutex_t*)':
:(.text+0x5ff70): undefined reference to `pthread_mutexattr_init'
:(.text+0x5ff8c): undefined reference to `pthread_mutexattr_settype'
:(.text+0x5ff9c): undefined reference to `pthread_mutexattr_setpshared'
:(.text+0x5ffac): undefined reference to `pthread_mutexattr_setprotocol'
:(.text+0x5ffc8): undefined reference to `pthread_mutexattr_destroy'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosInitializeCriticalSectionShared(pthread_mutex_t*)':
:(.text+0x5ffe8): undefined reference to `pthread_mutexattr_init'
:(.text+0x60004): undefined reference to `pthread_mutexattr_settype'
:(.text+0x60014): undefined reference to `pthread_mutexattr_setpshared'
:(.text+0x60024): undefined reference to `pthread_mutexattr_setprotocol'
:(.text+0x60040): undefined reference to `pthread_mutexattr_destroy'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosTryEnterCriticalSection(pthread_mutex_t*)':
:(.text+0x60058): undefined reference to `pthread_mutex_trylock'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosInitRWLockEx(void**, void*, unsigned long)':
:(.text+0x600b4): undefined reference to `pthread_rwlockattr_init'
:(.text+0x600c4): undefined reference to `pthread_rwlockattr_setpshared'
:(.text+0x600d4): undefined reference to `pthread_rwlock_init'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosInitRWLock(void**)':
:(.text+0x60114): undefined reference to `pthread_rwlockattr_init'
:(.text+0x60144): undefined reference to `pthread_rwlockattr_setpshared'
:(.text+0x60154): undefined reference to `pthread_rwlock_init'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosAcquireReaderLock(void**)':
:(.text+0x60164): undefined reference to `pthread_rwlock_rdlock'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosAcquireWriterLock(void**)':
:(.text+0x6016c): undefined reference to `pthread_rwlock_wrlock'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosTryAcquireReaderLock(void**)':
:(.text+0x6017c): undefined reference to `pthread_rwlock_tryrdlock'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosTryAcquireWriterLock(void**)':
:(.text+0x601a4): undefined reference to `pthread_rwlock_trywrlock'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosReleaseReaderLock(void**)':
:(.text+0x601c4): undefined reference to `pthread_rwlock_unlock'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosReleaseWriterLock(void**)':
:(.text+0x601cc): undefined reference to `pthread_rwlock_unlock'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosDestroyRWLockEx(void**)':
:(.text+0x601d4): undefined reference to `pthread_rwlock_destroy'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosDestroyRWLock(void**)':
:(.text+0x601ec): undefined reference to `pthread_rwlock_destroy'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosOnce(int*, void (*)())':
:(.text+0x60210): undefined reference to `pthread_once'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosCondCreateWithSharedFlag(pthread_cond_t*, int)':
:(.text+0x60250): undefined reference to `pthread_condattr_setpshared'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosCondCreate(pthread_cond_t*)':
:(.text+0x602b0): undefined reference to `pthread_condattr_setpshared'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosCondCreateShared(pthread_cond_t*)':
:(.text+0x60310): undefined reference to `pthread_condattr_setpshared'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosThreadCreateWithName(cudart::CUOSthread_st**, int (*)(void*), void*, char const*)':
:(.text+0x60564): undefined reference to `pthread_create'
:(.text+0x60578): undefined reference to `pthread_setname_np'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosThreadCreate(cudart::CUOSthread_st**, int (*)(void*), void*)':
:(.text+0x60640): undefined reference to `pthread_create'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosThreadJoin(cudart::CUOSthread_st*, int*)':
:(.text+0x606a8): undefined reference to `pthread_join'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosThreadDetach(cudart::CUOSthread_st*)':
:(.text+0x60708): undefined reference to `pthread_detach'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosHasThreadExited(cudart::CUOSthread_st*)':
:(.text+0x60758): undefined reference to `pthread_kill'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosShmCreateNamedEx(void*, char const*, unsigned long, cudart::cuosShmInfoEx_st**)':
:(.text+0x60ee0): undefined reference to `shm_unlink'
:(.text+0x60ef8): undefined reference to `shm_open'
:(.text+0x60f98): undefined reference to `shm_unlink'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosShmOpenNamedEx(void*, char const*, unsigned long, cudart::cuosShmInfoEx_st**)':
:(.text+0x61124): undefined reference to `shm_open'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosShmCloseEx(cudart::cuosShmInfoEx_st*, unsigned int, unsigned int)':
:(.text+0x61370): undefined reference to `shm_unlink'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `cudart::cuosSetThreadName(cudart::CUOSthread_st*, char const*)':
:(.text+0x62294): undefined reference to `pthread_setname_np'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `CUOSdlsymLoader<int (*)(int, sockaddr*, unsigned int*, int)>::~CUOSdlsymLoader()':
:(.text._ZN15CUOSdlsymLoaderIPFiiP8sockaddrPjiEED2Ev[_ZN15CUOSdlsymLoaderIPFiiP8sockaddrPjiEED5Ev]+0x18): undefined reference to `dlclose'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `CUOSdlsymLoader<int (*)(int*, int)>::~CUOSdlsymLoader()':
:(.text._ZN15CUOSdlsymLoaderIPFiPiiEED2Ev[_ZN15CUOSdlsymLoaderIPFiPiiEED5Ev]+0x18): undefined reference to `dlclose'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `CUOSdlsymLoader<int (*)(unsigned long, unsigned long, unsigned long const*)>::~CUOSdlsymLoader()':
:(.text._ZN15CUOSdlsymLoaderIPFimmPKmEED2Ev[_ZN15CUOSdlsymLoaderIPFimmPKmEED5Ev]+0x18): undefined reference to `dlclose'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `CUOSdlsymLoader<int (*)(unsigned long, unsigned long, unsigned long*)>::~CUOSdlsymLoader()':
:(.text._ZN15CUOSdlsymLoaderIPFimmPmEED2Ev[_ZN15CUOSdlsymLoaderIPFimmPmEED5Ev]+0x18): undefined reference to `dlclose'
/usr/local/cuda-10.0/targets/aarch64-linux/lib/libcudart_static.a(libcudart_static.a.o): In function `CUOSdlsymLoader<int (*)()>::~CUOSdlsymLoader()':
:(.text._ZN15CUOSdlsymLoaderIPFivEED2Ev[_ZN15CUOSdlsymLoaderIPFivEED5Ev]+0x18): undefined reference to `dlclose'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_bb43d.dir/build.make:103: recipe for target 'cmTC_bb43d' failed
make[1]: *** [cmTC_bb43d] Error 1
make[1]: Leaving directory '/code/onnxruntime/build/Linux/Release/CMakeFiles/CMakeTmp'
Makefile:138: recipe for target 'cmTC_bb43d/fast' failed
make: *** [cmTC_bb43d/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:715 (enable_language)
-- Configuring incomplete, errors occurred!
See also "/code/onnxruntime/build/Linux/Release/CMakeFiles/CMakeOutput.log".
See also "/code/onnxruntime/build/Linux/Release/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "/code/onnxruntime/tools/ci_build/build.py", line 1043, in
sys.exit(main())
File "/code/onnxruntime/tools/ci_build/build.py", line 972, in main
args, cmake_extra_args)
File "/code/onnxruntime/tools/ci_build/build.py", line 422, in generate_build_tree
run_subprocess(cmake_args + ["-DCMAKE_BUILD_TYPE={}".format(config)], cwd=config_build_dir)
File "/code/onnxruntime/tools/ci_build/build.py", line 196, in run_subprocess
return subprocess.run(args, cwd=cwd, check=True, stdout=stdout, stderr=stderr, env=my_env, shell=shell)
File "/usr/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/usr/local/bin/cmake', '/code/onnxruntime/cmake', '-Donnxruntime_RUN_ONNX_TESTS=OFF', '-Donnxruntime_GENERATE_TEST_REPORTS=ON', '-Donnxruntime_DEV_MODE=OFF', '-DPYTHON_EXECUTABLE=/usr/bin/python3', '-Donnxruntime_USE_CUDA=ON', '-Donnxruntime_USE_NSYNC=OFF', '-Donnxruntime_CUDNN_HOME=/usr/lib/aarch64-linux-gnu', '-Donnxruntime_USE_AUTOML=OFF', '-Donnxruntime_CUDA_HOME=/usr/local/cuda', '-Donnxruntime_USE_JEMALLOC=OFF', '-Donnxruntime_USE_MIMALLOC=OFF', '-Donnxruntime_ENABLE_PYTHON=ON', '-Donnxruntime_BUILD_CSHARP=OFF', '-Donnxruntime_BUILD_SHARED_LIB=OFF', '-Donnxruntime_USE_EIGEN_FOR_BLAS=ON', '-Donnxruntime_USE_OPENBLAS=OFF', '-Donnxruntime_USE_MKLDNN=OFF', '-Donnxruntime_USE_MKLML=OFF', '-Donnxruntime_USE_GEMMLOWP=OFF', '-Donnxruntime_USE_NGRAPH=OFF', '-Donnxruntime_USE_OPENVINO=OFF', '-Donnxruntime_USE_OPENVINO_BINARY=OFF', '-Donnxruntime_USE_OPENVINO_SOURCE=OFF', '-Donnxruntime_USE_OPENVINO_MYRIAD=OFF', '-Donnxruntime_USE_OPENVINO_GPU_FP32=OFF', '-Donnxruntime_USE_OPENVINO_GPU_FP16=OFF', '-Donnxruntime_USE_OPENVINO_CPU_FP32=OFF', '-Donnxruntime_USE_OPENVINO_VAD_M=OFF', '-Donnxruntime_USE_OPENVINO_VAD_F=OFF', '-Donnxruntime_USE_NNAPI=OFF', '-Donnxruntime_USE_OPENMP=ON', '-Donnxruntime_USE_TVM=OFF', '-Donnxruntime_USE_LLVM=OFF', '-Donnxruntime_ENABLE_MICROSOFT_INTERNAL=OFF', '-Donnxruntime_USE_BRAINSLICE=OFF', '-Donnxruntime_USE_NUPHAR=OFF', '-Donnxruntime_USE_EIGEN_THREADPOOL=OFF', '-Donnxruntime_USE_TENSORRT=ON', '-Donnxruntime_TENSORRT_HOME=/usr/lib/aarch64-linux-gnu', '-Donnxruntime_CROSS_COMPILING=OFF', '-Donnxruntime_BUILD_SERVER=OFF', '-Donnxruntime_BUILD_x86=OFF', '-Donnxruntime_USE_FULL_PROTOBUF=ON', '-Donnxruntime_DISABLE_CONTRIB_OPS=OFF', '-Donnxruntime_MSVC_STATIC_RUNTIME=OFF', '-Donnxruntime_ENABLE_LANGUAGE_INTEROP_OPS=OFF', '-Donnxruntime_USE_DML=OFF', '-DCUDA_CUDA_LIBRARY=/usr/local/cuda/lib64/stubs', '-Donnxruntime_PYBIND_EXPORT_OPSCHEMA=OFF', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
`