-
Notifications
You must be signed in to change notification settings - Fork 21
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
Unable to catkin_make on Jetson Nano #7
Comments
Thank you for the report.
Hmm, this error is very unusual and libSGM repository still has master branch (of course). |
I prepared a clean NX and cloned the repo to a clean ROS workspace (
|
Well, was your NX connected to internet when you tried catkin_make? |
Hello, I have encountered different failure of CMake on Jetson Nano and I have no idea how I can solve the problem:
|
I am also having exactly the same problem with the error 'failed to checkout tag: master''. My device is connected to the internet. |
Hi, I had this problem but it is gone now, I'm not too sure what did it but originally when I entered the /catkin_ws/src/gpu_stereo_image_proc/libSGM and ran |
Hi! I have found this problem on my Jetson Nano B01 also. It is surely the nvcc that can't compile kmro@kpmro:~/mgr/catkin_ws_test$ catkin_make
Base path: /home/kmro/mgr/catkin_ws_test
Source space: /home/kmro/mgr/catkin_ws_test/src
Build space: /home/kmro/mgr/catkin_ws_test/build
Devel space: /home/kmro/mgr/catkin_ws_test/devel
Install space: /home/kmro/mgr/catkin_ws_test/install
####
#### Running command: "cmake /home/kmro/mgr/catkin_ws_test/src -DCATKIN_DEVEL_PREFIX=/home/kmro/mgr/catkin_ws_test/devel -DCMAKE_INSTALL_PREFIX=/home/kmro/mgr/catkin_ws_test/install -G Unix Makefiles" in "/home/kmro/mgr/catkin_ws_test/build"
####
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Using CATKIN_DEVEL_PREFIX: /home/kmro/mgr/catkin_ws_test/devel
-- Using CMAKE_PREFIX_PATH: /home/kmro/mgr/catkin_ws_test/devel;/opt/ros/melodic
-- This workspace overlays: /home/kmro/mgr/catkin_ws_test/devel;/opt/ros/melodic
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.17", minimum required is "2")
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/kmro/mgr/catkin_ws_test/build/test_results
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Found gmock sources under '/usr/src/googletest': gmock will be built
CMake Deprecation Warning at /usr/src/googletest/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at /usr/src/googletest/googlemock/CMakeLists.txt:41 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
CMake Deprecation Warning at /usr/src/googletest/googletest/CMakeLists.txt:48 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Found PythonInterp: /usr/bin/python2 (found version "2.7.17")
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Using Python nosetests: /usr/bin/nosetests-2.7
-- catkin 0.7.29
-- BUILD_SHARED_LIBS is on
-- BUILD_SHARED_LIBS is on
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- ~~ traversing 3 packages in topological order:
-- ~~ - gscam
-- ~~ - jetson_csi_stereo_ros
-- ~~ - gpu_stereo_image_proc
-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-- +++ processing catkin package: 'gscam'
-- ==> add_subdirectory(gscam)
CMake Deprecation Warning at gscam/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1")
-- gst 1.0
-- Checking for module 'gstreamer-1.0'
-- Found gstreamer-1.0, version 1.14.5
-- Checking for module 'gstreamer-app-1.0'
-- Found gstreamer-app-1.0, version 1.14.5
-- +++ processing catkin package: 'jetson_csi_stereo_ros'
-- ==> add_subdirectory(jetson_csi_stereo_ros)
CMake Deprecation Warning at jetson_csi_stereo_ros/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- +++ processing catkin package: 'gpu_stereo_image_proc'
-- ==> add_subdirectory(gpu_stereo_image_proc)
-- Found Boost: /usr/include (found version "1.65.1") found components: thread chrono system date_time atomic
-- Found CUDA: /usr/local/cuda (found suitable exact version "10.2")
-- Found OpenCV: /usr/local (found suitable version "4.5.0", minimum required is "4")
-- Found CUDA: /usr/local/cuda (found version "10.2")
-- Autodetected CUDA architecture(s): 5.3
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kmro/mgr/catkin_ws_test/build
####
#### Running command: "make -j4 -l4" in "/home/kmro/mgr/catkin_ws_test/build"
####
[ 3%] Building CXX object gscam/CMakeFiles/gscam.dir/src/gscam.cpp.o
[ 7%] Creating directories for 'ext-libSGM'
[ 11%] Generating dynamic reconfigure files from cfg/VXSGBM.cfg: /home/kmro/mgr/catkin_ws_test/devel/include/gpu_stereo_image_proc/VXSGBMConfig.h /home/kmro/mgr/catkin_ws_test/devel/lib/python2.7/dist-packages/gpu_stereo_image_proc/cfg/VXSGBMConfig.py
[ 14%] Generating dynamic reconfigure files from cfg/LIBSGM.cfg: /home/kmro/mgr/catkin_ws_test/devel/include/gpu_stereo_image_proc/LIBSGMConfig.h /home/kmro/mgr/catkin_ws_test/devel/lib/python2.7/dist-packages/gpu_stereo_image_proc/cfg/LIBSGMConfig.py
Generating reconfiguration files for VXSGBM in gpu_stereo_image_proc
Generating reconfiguration files for LIBSGM in gpu_stereo_image_proc
Wrote header file in /home/kmro/mgr/catkin_ws_test/devel/include/gpu_stereo_image_proc/VXSGBMConfig.h
Wrote header file in /home/kmro/mgr/catkin_ws_test/devel/include/gpu_stereo_image_proc/LIBSGMConfig.h
[ 18%] Performing download step (git clone) for 'ext-libSGM'
[ 18%] Built target gpu_stereo_image_proc_gencfg
Cloning into 'libSGM'...
[ 22%] Building CXX object gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/src/libgpu_stereo_image_proc/vx_stereo_matcher.cpp.o
[ 25%] Building CXX object gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/src/libgpu_stereo_image_proc/vx_sgbm_processor.cpp.o
Already on 'master'
Your branch is up to date with 'origin/master'.
Submodule 'test/googletest' (https://github.com/google/googletest.git) registered for path 'test/googletest'
Cloning into '/home/kmro/mgr/catkin_ws_test/src/gpu_stereo_image_proc/libSGM/test/googletest'...
Submodule path 'test/googletest': checked out '2fe3bd994b3189899d93f1d5a881e725e046fdc2'
[ 29%] Performing update step for 'ext-libSGM'
HEAD is now at 6086f73 Merge pull request #65 from robotchaoX/pr
[ 33%] No patch step for 'ext-libSGM'
[ 37%] Performing configure step for 'ext-libSGM'
[ 40%] Building CXX object gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/src/libgpu_stereo_image_proc/sgbm_processor.cpp.o
-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
[ 44%] Linking CXX shared library /home/kmro/mgr/catkin_ws_test/devel/lib/libgscam.so
make[2]: *** No rule to make target '/usr/lib/aarch64-linux-gnu/libopencv_objdetect.so.3.2.0', needed by '/home/kmro/mgr/catkin_ws_test/devel/lib/libvx_stereo_image_proc.so'. Stop.
make[2]: *** Waiting for unfinished jobs....
[ 48%] Building CXX object gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/src/nodelets/vx_disparity.cpp.o
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
[ 48%] Built target gscam
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda (found suitable exact version "10.2")
-- Found OpenCV: /usr/local (found version "4.5.0") found components: core
-- Found CUDA: /usr/local/cuda (found version "10.2")
-- Autodetected CUDA architecture(s): 5.3
-- CUDA_ARCH: "-gencode;arch=compute_53,code=sm_53"
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kmro/mgr/catkin_ws_test/build/gpu_stereo_image_proc/ext/libSGM/src/ext-libSGM-build
[ 51%] Performing build step for 'ext-libSGM'
[ 7%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_winner_takes_all.cu.o
[ 14%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_census_transform.cu.o
CMakeFiles/Makefile2:1757: recipe for target 'gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/all' failed
make[1]: *** [gpu_stereo_image_proc/CMakeFiles/vx_stereo_image_proc.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 21%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_check_consistency.cu.o
[ 28%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_correct_disparity_range.cu.o
[ 35%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_cuda_utils.cu.o
[ 42%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_horizontal_path_aggregation.cu.o
[ 50%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_median_filter.cu.o
[ 57%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_oblique_path_aggregation.cu.o
[ 64%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_path_aggregation.cu.o
[ 71%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_sgm.cu.o
[ 78%] Building NVCC (Device) object src/CMakeFiles/sgm.dir/sgm_generated_vertical_path_aggregation.cu.o
[ 92%] Building CXX object src/CMakeFiles/sgm.dir/stereo_sgm.cpp.o
[ 92%] Building CXX object src/CMakeFiles/sgm.dir/libsgm_wrapper.cpp.o
[100%] Linking CXX shared library libsgm.so
[100%] Built target sgm
[ 55%] Performing install step for 'ext-libSGM'
-- Found CUDA: /usr/local/cuda (found suitable exact version "10.2")
-- Found CUDA: /usr/local/cuda (found version "10.2")
-- Autodetected CUDA architecture(s): 5.3
-- CUDA_ARCH: "-gencode;arch=compute_53,code=sm_53"
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kmro/mgr/catkin_ws_test/build/gpu_stereo_image_proc/ext/libSGM/src/ext-libSGM-build
Consolidate compiler generated dependencies of target sgm
[ 7%] Linking CXX shared library libsgm.so
[100%] Built target sgm
Install the project...
-- Install configuration: ""
-- Installing: /home/kmro/mgr/catkin_ws_test/build/gpu_stereo_image_proc/libSGM/lib/libsgm.so
-- Set runtime path of "/home/kmro/mgr/catkin_ws_test/build/gpu_stereo_image_proc/libSGM/lib/libsgm.so" to ""
-- Installing: /home/kmro/mgr/catkin_ws_test/build/gpu_stereo_image_proc/libSGM/include
-- Installing: /home/kmro/mgr/catkin_ws_test/build/gpu_stereo_image_proc/libSGM/include/libsgm_wrapper.h
-- Installing: /home/kmro/mgr/catkin_ws_test/build/gpu_stereo_image_proc/libSGM/include/libsgm_config.h
-- Installing: /home/kmro/mgr/catkin_ws_test/build/gpu_stereo_image_proc/libSGM/include/libsgm.h
-- Installing: /home/kmro/mgr/catkin_ws_test/build/gpu_stereo_image_proc/libSGM/FindLibSGM.cmake
[ 59%] Completed 'ext-libSGM'
[ 59%] Built target ext-libSGM
Makefile:145: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed |
The problem was that nvcc for CUDA 10.3 doesn't recognize function __ldg(), replacing |
Describe the bug
A clear and concise description of what the bug is.
After cloning the repo into my directory, I am unable to catkin_make. The error message is:
error: pathspec 'master' did not match any file(s) known to git.
CMake Error at /home/jetson/stereo_node/build/gpu_stereo_image_proc/ext/libSGM/tmp/ext-libSGM-gitupdate.cmake:147 (message):
Failed to checkout tag: 'master'
gpu_stereo_image_proc/CMakeFiles/ext-libSGM.dir/build.make:94: recipe for target 'gpu_stereo_image_proc/ext/libSGM/src/ext-libSGM-stamp/ext-libSGM-update' failed
make[2]: *** [gpu_stereo_image_proc/ext/libSGM/src/ext-libSGM-stamp/ext-libSGM-update] Error 1
CMakeFiles/Makefile2:4969: recipe for target 'gpu_stereo_image_proc/CMakeFiles/ext-libSGM.dir/all' failed
make[1]: *** [gpu_stereo_image_proc/CMakeFiles/ext-libSGM.dir/all] Error 2
Anyone know the cause of this issue and how to fix it?
Thanks in advance.
The text was updated successfully, but these errors were encountered: