Comments (6)
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 issueOS: ubuntu 11.10 x64
GCC version 4.4.6
CMake version 2.8.7cmake 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=OFFcmake 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.
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.
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.
Fixed in 6fccd2.
from flann.
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.
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)
- Please explain in README how to run tests
- Link in the README is dead HOT 2
- different dists result on window vs ubuntu HOT 1
- Allow disabling of static library build
- New ANN libraries much faster than flann! HOT 1
- Overwrite install list
- flann_cuda_tests are failing HOT 4
- links in readme outdated
- BIZ
- cannot access ubc website for downloading the source code for FLANN 1.9.1
- 'Composite' mode has duplicate results (nearest neighbors not unique) HOT 1
- How to build Flann on windows? HOT 2
- The knnsearch result seems to be random in C++ version HOT 1
- matlab issues
- 不支持C++ 17,要求版本为C++ 14 HOT 3
- Assessment of the difficulty in porting CPU architecture for the FLANN
- All URLs in the README are broken
- generates broken pkg-config pc file (stray semicolon)
- Flann 1.9.2 is not deterministic HOT 1
- There was a problem compiling the FLANN CADA 9.2,How to fix ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flann.