GithubHelp home page GithubHelp logo

Comments (6)

mariusmuja avatar mariusmuja commented on July 1, 2024

Hi,

This error is probably due to the fact that the nvcc compiler cannot locate
the g++ compiler on your system. Try setting the NVCC_COMPILER_BINDIR
variable in cmake using something like this: 'cmake
-DNVCC_COMPILER_BINDIR=/opt/gcc-4.4' (adjust the /opt/gcc-4.4 to where the
g++ compiler is located on your system).

Marius

On Mon, Jan 16, 2012 at 8:32 PM, Wisut Hantanong <
[email protected]

wrote:

Not sure if this duplicated with #21

Hi,
Please see if you can help on this issue

OS: ubuntu 11.10 x64
GCC version 4.4.6
CMake version 2.8.7

cmake command:

/usr/local/bin/cmake /opt/surfscan-dev/depend/source/flann-1.7.1
-DCMAKE_INSTALL_PREFIX=/opt/surfscan-dev/depend/install/flann-1.7.1
-DCMAKE_BUILD_TYPE=Release -DBUILD_CUDA_LIB=ON -DBUILD_C_BINDINGS=OFF
-DBUILD_MATLAB_BINDINGS=OFF -DBUILD_PYTHON_BINDINGS=OFF

cmake output:

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/lib/ccache/gcc
-- Check for working C compiler: /usr/lib/ccache/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/c++
-- Check for working CXX compiler: /usr/lib/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /usr/bin/python (found version "2.7.2+")
-- Found HDF5:
debug;/usr/lib/libhdf5.so;debug;/usr/lib/x86_64-linux-gnu/libpthread.so;debug;/usr/lib/x86_64-linux-gnu/libz.so;debug;/usr/lib/x86_64-linux-gnu/libm.so;optimized;/usr/lib/libhdf5.so;optimized;/usr/lib/x86_64-linux-gnu/libpthread.so;optimized;/usr/lib/x86_64-linux-gnu/libz.so;optimized;/usr/lib/x86_64-linux-gnu/libm.so
-- Found GTest: /usr/lib/libgtest.a
-- Found CUDA: /usr/local/cuda (found version "4.0")
-- CUDA found (include: /usr/local/cuda/include, lib:
/usr/local/cuda/lib64/libcudart.so)
-- checking for module 'tbb'
--   found tbb, version 3.0+r018
-- Found tbb: /usr/lib/libtbb.so
-- Could NOT find tbb_debug (missing:  TBB_DEBUG_LIBRARIES)
-- Only the Intel TBB (release) libraries were found
You have called ADD_LIBRARY for library flann_cuda without any source
files. This typically indicates a problem with your CMakeLists.txt file
-- Install prefix: /opt/surfscan-dev/depend/install/flann-1.7.1
-- Build type: Release
-- Building C bindings: OFF
-- Building python bindings: OFF
-- Building matlab bindings: OFF
-- Building CUDA library: ON
-- Using MPI support: OFF
-- Configuring done
-- Generating done
-- Build files have been written to:
/opt/surfscan-dev/depend/build/flann-1.7.1

make install output:

[ 14%] Scanning dependencies of target flann_cpp_s
Building NVCC (Device) object
src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o
Scanning dependencies of target flann_cpp-gd
Scanning dependencies of target flann_cpp_s-gd
[ 28%] Building CXX object
src/cpp/CMakeFiles/flann_cpp_s.dir/flann/flann_cpp.cpp.o
[ 42%] Building CXX object
src/cpp/CMakeFiles/flann_cpp-gd.dir/flann/flann_cpp.cpp.o
[ 57%] Linking CXX static library ../../lib/libflann_cpp_s.a
No such file or directory
Building CXX object
src/cpp/CMakeFiles/flann_cpp_s-gd.dir/flann/flann_cpp.cpp.o
CMake Error at flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o.cmake:198
(message):
 Error generating

 /opt/surfscan-dev/depend/build/flann-1.7.1/src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o


make[2]: ***
[src/cpp/CMakeFiles/flann_cuda_s.dir/flann/algorithms/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o]
Error 1
Linking CXX shared library ../../lib/libflann_cpp-gd.so
make[1]: *** [src/cpp/CMakeFiles/flann_cuda_s.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 57%] Built target flann_cpp_s
Linking CXX static library ../../lib/libflann_cpp_s-gd.a
[ 57%] Built target flann_cpp_s-gd
[ 57%] Built target flann_cpp-gd
make: *** [all] Error 2

Reply to this email directly or view it on GitHub:
#25

from flann.

hauptmech avatar hauptmech commented on July 1, 2024

I'm having problems too. I'm running cuda-toolkit 4.1 rc2. Here's the output with --verbose in NVCC flags and set(verbose ON) in the crazy flann_cuda_s_generated......cmake file

-- Removing /home/teh/archlinux/packages/libflann/src/flann-1.7.1-src/build/src/cpp/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o
/usr/bin/cmake -E remove /home/teh/archlinux/packages/libflann/src/flann-1.7.1-src/build/src/cpp/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o
-- Generating dependency file: /home/teh/archlinux/packages/libflann/src/flann-1.7.1-src/build/src/cpp/CMakeFiles/flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o.NVCC-depend
/opt/cuda-toolkit/bin/nvcc -M -D__CUDACC__ /home/teh/archlinux/packages/libflann/src/flann-1.7.1-src/src/cpp/flann/algorithms/kdtree_cuda_3d_index.cu -o /home/teh/archlinux/packages/libflann/src/flann-1.7.1-src/build/src/cpp/CMakeFiles/flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o.NVCC-depend -m64 -D_FLANN_VERSION=1.7.1 -Xcompiler ,\"-O2\",\"-g\" --verbose -Xcompiler -fPIC -arch=sm_13 --compiler-bindir= -DNVCC -I/opt/cuda-toolkit/include -I/opt/cuda-toolkit/include -I/usr/include -I/home/teh/archlinux/packages/libflann/src/flann-1.7.1-src/src/cpp
#$ _SPACE_= 
#$ _CUDART_=cudart
#$ _HERE_=/opt/cuda-toolkit/bin
#$ _THERE_=/opt/cuda-toolkit/bin
#$ _TARGET_SIZE_=64
#$ TOP=/opt/cuda-toolkit/bin/..
#$ LD_LIBRARY_PATH=/opt/cuda-toolkit/bin/../lib:/opt/cuda-toolkit/bin/../extools/lib:
#$ PATH=/opt/cuda-toolkit/bin/../open64/bin:/opt/cuda-toolkit/bin/../nvvm:/opt/cuda-toolkit/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/cuda-toolkit/bin:/usr/bin/vendor_perl:/usr/bin/core_perl:/netus/gnu/bin
#$ INCLUDES="-I/opt/cuda-toolkit/bin/../include" "-I/opt/cuda-toolkit/bin/../include/cudart"  
#$ LIBRARIES=  "-L/opt/cuda-toolkit/bin/../lib64" -lcudart
#$ CUDAFE_FLAGS=
#$ OPENCC_FLAGS=
#$ PTXAS_FLAGS=
No such file or directory
CMake Error at CMakeFiles/flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o.cmake:199 (message):
  Error generating
  /home/teh/archlinux/packages/libflann/src/flann-1.7.1-src/build/src/cpp/./flann_cuda_s_generated_kdtree_cuda_3d_index.cu.o

from flann.

hauptmech avatar hauptmech commented on July 1, 2024

It appears the problem was an empty NVCC_COMPLIRE_BINDIR. I removed '--compiler-bindir=' from src/cpp/CMakeLists.txt and got a clean compile.

Even when I was using cuda-toolkit 4.0 this was set in my nvcc.profile so I didn't need it in my NVCC_FLAGS.

Consider testing for an empty bindir and either failing or removing the flag.

from flann.

mariusmuja avatar mariusmuja commented on July 1, 2024

Fixed in 6fccd2.

from flann.

zoulzubazz avatar zoulzubazz commented on July 1, 2024

hello guys, i am new to github, facing similar issues when compiling, could you please tell me what you are referring to by 'fixed in 6fccd2'. thank you very much.

from flann.

mariusmuja avatar mariusmuja commented on July 1, 2024

It means it's been fixed in the commit with hash 6fccd2 (see 6fccd22). If you are not using flann trunk, try applying those changes and see if it solves the problem.

from flann.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.