Skip to content
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

nvcc fatal : A single input file is required #4

Open
SupetZYK opened this issue Jan 19, 2018 · 5 comments
Open

nvcc fatal : A single input file is required #4

SupetZYK opened this issue Jan 19, 2018 · 5 comments

Comments

@SupetZYK
Copy link

SupetZYK commented Jan 19, 2018

When I compiling ObjRecRANSAC, the following error occur

nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc fatal   : A single input file is required for a non-link phase when an outputfile is specified
CMake Error at ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:207 (message):
  Error generating
  /home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir//./ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o


src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/build.make:63: recipe for target 'src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o' failed
make[2]: *** [src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o] Error 1
CMakeFiles/Makefile2:753: recipe for target 'src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/all' failed
make[1]: *** [src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

I run cmake 3.5 in ubuntu16.04-64bit, with cuda8.0, the cmake process succeeded, but when I run make, the above errors occured, I tried many methods to solve the "nvcc" error, but none succeeded. So I sincerely ask for your help!

I run make VERBOSE=1 the total output is following

zyk@zyk:~/git/ObjRecRANSAC/build$ make VERBOSE=1
/usr/bin/cmake -H/home/zyk/git/ObjRecRANSAC -B/home/zyk/git/ObjRecRANSAC/build --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/zyk/git/ObjRecRANSAC/build/CMakeFiles /home/zyk/git/ObjRecRANSAC/build/CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/zyk/git/ObjRecRANSAC/build'
make -f src/VtkBasics/CMakeFiles/VtkBasics.dir/build.make src/VtkBasics/CMakeFiles/VtkBasics.dir/depend
make[2]: Entering directory '/home/zyk/git/ObjRecRANSAC/build'
cd /home/zyk/git/ObjRecRANSAC/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/zyk/git/ObjRecRANSAC /home/zyk/git/ObjRecRANSAC/src/VtkBasics /home/zyk/git/ObjRecRANSAC/build /home/zyk/git/ObjRecRANSAC/build/src/VtkBasics /home/zyk/git/ObjRecRANSAC/build/src/VtkBasics/CMakeFiles/VtkBasics.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/zyk/git/ObjRecRANSAC/build'
make -f src/VtkBasics/CMakeFiles/VtkBasics.dir/build.make src/VtkBasics/CMakeFiles/VtkBasics.dir/build
make[2]: Entering directory '/home/zyk/git/ObjRecRANSAC/build'
make[2]: Nothing to be done for 'src/VtkBasics/CMakeFiles/VtkBasics.dir/build'.
make[2]: Leaving directory '/home/zyk/git/ObjRecRANSAC/build'
[  4%] Built target VtkBasics
make -f src/BasicTools/CMakeFiles/BasicTools.dir/build.make src/BasicTools/CMakeFiles/BasicTools.dir/depend
make[2]: Entering directory '/home/zyk/git/ObjRecRANSAC/build'
cd /home/zyk/git/ObjRecRANSAC/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/zyk/git/ObjRecRANSAC /home/zyk/git/ObjRecRANSAC/src/BasicTools /home/zyk/git/ObjRecRANSAC/build /home/zyk/git/ObjRecRANSAC/build/src/BasicTools /home/zyk/git/ObjRecRANSAC/build/src/BasicTools/CMakeFiles/BasicTools.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/zyk/git/ObjRecRANSAC/build'
make -f src/BasicTools/CMakeFiles/BasicTools.dir/build.make src/BasicTools/CMakeFiles/BasicTools.dir/build
make[2]: Entering directory '/home/zyk/git/ObjRecRANSAC/build'
make[2]: Nothing to be done for 'src/BasicTools/CMakeFiles/BasicTools.dir/build'.
make[2]: Leaving directory '/home/zyk/git/ObjRecRANSAC/build'
[ 29%] Built target BasicTools
make -f src/BasicToolsL1/CMakeFiles/BasicToolsL1.dir/build.make src/BasicToolsL1/CMakeFiles/BasicToolsL1.dir/depend
make[2]: Entering directory '/home/zyk/git/ObjRecRANSAC/build'
cd /home/zyk/git/ObjRecRANSAC/build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/zyk/git/ObjRecRANSAC /home/zyk/git/ObjRecRANSAC/src/BasicToolsL1 /home/zyk/git/ObjRecRANSAC/build /home/zyk/git/ObjRecRANSAC/build/src/BasicToolsL1 /home/zyk/git/ObjRecRANSAC/build/src/BasicToolsL1/CMakeFiles/BasicToolsL1.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/zyk/git/ObjRecRANSAC/build'
make -f src/BasicToolsL1/CMakeFiles/BasicToolsL1.dir/build.make src/BasicToolsL1/CMakeFiles/BasicToolsL1.dir/build
make[2]: Entering directory '/home/zyk/git/ObjRecRANSAC/build'
make[2]: Nothing to be done for 'src/BasicToolsL1/CMakeFiles/BasicToolsL1.dir/build'.
make[2]: Leaving directory '/home/zyk/git/ObjRecRANSAC/build'
[ 32%] Built target BasicToolsL1
make -f src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/build.make src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/depend
make[2]: Entering directory '/home/zyk/git/ObjRecRANSAC/build'
[ 32%] Building NVCC (Device) object src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o
cd /home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir && /usr/bin/cmake -E make_directory /home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir//.
cd /home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir && /usr/bin/cmake -D verbose:BOOL=1 -D build_configuration:STRING= -D generated_file:STRING=/home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir//./ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o -D generated_cubin_file:STRING=/home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir//./ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cubin.txt -P /home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir//ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake
CMake Warning (dev) in ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:
  Syntax Warning in cmake code at

    /home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:79:159

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:
  Syntax Warning in cmake code at

    /home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:79:205

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:
  Syntax Warning in cmake code at

    /home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:79:250

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:
  Syntax Warning in cmake code at

    /home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:79:289

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:
  Syntax Warning in cmake code at

    /home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:79:339

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:
  Syntax Warning in cmake code at

    /home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:79:401

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:
  Syntax Warning in cmake code at

    /home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:79:519

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:
  Syntax Warning in cmake code at

    /home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:79:608

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:
  Syntax Warning in cmake code at

    /home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:79:662

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) in ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:
  Syntax Warning in cmake code at

    /home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:79:720

  Argument not separated from preceding token by whitespace.
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Removing /home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir//./ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o
/usr/bin/cmake -E remove /home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir//./ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o
-- Generating dependency file: /home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir//ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.NVCC-depend
/usr/local/cuda-8.0/bin/nvcc -M -D__CUDACC__ /home/zyk/git/ObjRecRANSAC/src/ObjRecRANSAC/AcceptHypothesisAlgo.cu -o /home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir//ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.NVCC-depend -ccbin /usr/bin/cc -m64 -DUSE_CUDA -DCUDA_DEVICE_ID=1 -DDISABLE_OPENNI2 -DDISABLE_PCAP -DDISABLE_PNG -DvtkFiltersFlowPaths_AUTOINIT=1 ( vtkFiltersParallelFlowPaths ) -DvtkIOExodus_AUTOINIT=1 ( vtkIOParallelExodus ) -DvtkIOGeometry_AUTOINIT=1 ( vtkIOMPIParallel ) -DvtkIOImage_AUTOINIT=1 ( vtkIOMPIImage ) -DvtkIOSQL_AUTOINIT=2 ( vtkIOMySQL,vtkIOPostgreSQL ) -DvtkRenderingContext2D_AUTOINIT=1 ( vtkRenderingContextOpenGL ) -DvtkRenderingCore_AUTOINIT=4 ( vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL ) -DvtkRenderingFreeType_AUTOINIT=2 ( vtkRenderingFreeTypeFontConfig,vtkRenderingMatplotlib ) -DvtkRenderingLIC_AUTOINIT=1 ( vtkRenderingParallelLIC ) -DvtkRenderingVolume_AUTOINIT=1 ( vtkRenderingVolumeOpenGL ) -DDISABLE_OPENNI2 -DEIGEN_USE_NEW_STDVECTOR -DEIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET -DFLANN_STATIC -Dqh_QHpointer -DUSE_OPENMP -DDISABLE_OPENNI2 -DDISABLE_PCAP -DDISABLE_PNG -DDISABLE_OPENNI2 -DEIGEN_USE_NEW_STDVECTOR -DEIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET -DFLANN_STATIC -Dqh_QHpointer -DObjRecRANSAC_EXPORTS -Xcompiler ,\"-Wno-deprecated\",\"-mfpmath=sse\",\"-msse\",\"-msse2\",\"-msse3\",\"-mssse3\",\"-msse4.1\",\"-O3\",\"-fPIC\",\"-g\" -Xptxas -v -DNVCC -I/usr/local/cuda-8.0/include -I/usr/include -I/usr/include/vtk-6.2 -I/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent -I/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/include -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -I/usr/include/python2.7 -I/usr/include/freetype2 -I/usr/include/x86_64-linux-gnu/freetype2 -I/usr/include/x86_64-linux-gnu -I/usr/include/jsoncpp -I/usr/include/hdf5/openmpi -I/usr/include/libxml2 -I/usr/include/tcl -I/usr/include/pcl-1.7 -I/usr/include/eigen3 -I/usr/include/ni -I/opt/ros/kinetic/include/opencv-3.3.1 -I/opt/ros/kinetic/include/opencv-3.3.1/opencv -I/usr/local/cuda/include -I/home/zyk/git/ObjRecRANSAC/src/ObjRecRANSAC/.. -I/usr/local/cuda-8.0/include
nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning).
nvcc fatal   : A single input file is required for a non-link phase when an outputfile is specified
CMake Error at ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o.cmake:207 (message):
  Error generating
  /home/zyk/git/ObjRecRANSAC/build/src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir//./ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o


src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/build.make:898: recipe for target 'src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o' failed
make[2]: *** [src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/ObjRecRANSAC_generated_AcceptHypothesisAlgo.cu.o] Error 1
make[2]: Leaving directory '/home/zyk/git/ObjRecRANSAC/build'
CMakeFiles/Makefile2:753: recipe for target 'src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/all' failed
make[1]: *** [src/ObjRecRANSAC/CMakeFiles/ObjRecRANSAC.dir/all] Error 2
make[1]: Leaving directory '/home/zyk/git/ObjRecRANSAC/build'
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2

@ahundt
Copy link
Member

ahundt commented Jan 19, 2018

you need to run make VERBOSE=1 so we can see the error. What exact version of ObjRecRANSAC are you using?

@SupetZYK
Copy link
Author

I am using the master version of ObjRecRANSAC

@ahundt
Copy link
Member

ahundt commented Jan 19, 2018

From here?
https://github.com/jhu-lcsr/ObjRecRANSAC

@SupetZYK
Copy link
Author

Yes

@ahundt
Copy link
Member

ahundt commented Jan 25, 2018

I think there is a version built into https://github.com/cpaxton/costar_stack could you give that a shot?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants