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 : Stray '"' character #2

Closed
djspecialagent opened this issue Jul 4, 2017 · 15 comments
Closed

nvcc fatal : Stray '"' character #2

djspecialagent opened this issue Jul 4, 2017 · 15 comments

Comments

@djspecialagent
Copy link

On arch linux 4.11.3-1 using cmake 3.8.2, I get the following when following the linux build instructions:

CMake Warning (dev) at cuda_compile_ptx_1_generated_cuda_gvdb_copydata.cu.ptx.Release.cmake:77:
Syntax Warning in cmake code at column 56

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

nvcc fatal : Stray '"' character
CMake Error at cuda_compile_ptx_1_generated_cuda_gvdb_copydata.cu.ptx.Release.cmake:214 (message):
Error generating
/tmp/gvdb-voxels-master/build/gvdb_library/cuda_compile_ptx_1_generated_cuda_gvdb_copydata.cu.ptx

make[2]: *** [CMakeFiles/gvdb.dir/build.make:65: cuda_compile_ptx_1_generated_cuda_gvdb_copydata.cu.ptx] Error 1
make[1]: *** [CMakeFiles/Makefile2:67: CMakeFiles/gvdb.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

@djspecialagent
Copy link
Author

djspecialagent commented Jul 4, 2017

here is cmake echo so you can see configuration details:

- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.0
-- Check for working C compiler: /opt/cuda/bin/gcc
-- Check for working C compiler: /opt/cuda/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /opt/cuda/bin/g++
-- Check for working CXX compiler: /opt/cuda/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- -------------------------------
-- Processing Project gvdb:
-- found sub-folder cmake
-- BASE_DIRECTORY = /home/cc/Downloads/tmp/gvdb-voxels-master/source/gvdb_library
-- CMAKE_CURRENT_SOURCE_DIR = /home/cc/Downloads/tmp/gvdb-voxels-master/source/gvdb_library
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/libX11.so
-- Found OpenGL: /usr/lib/libGL.so  
-- Found GLEW: /home/cc/Downloads/tmp/gvdb-voxels-master/source/gvdb_library/glew/include  
-- found Glew source code. Using it instead of library
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- 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: /opt/cuda (found version "8.0") 
-- --> Using package CUDA (ver 8.0)
-- --> NOTE: OPENVDB is not enabled. Enable with the USE_OPENVDB option.
-- Located CUDA kernels: kernels/cuda_gvdb_copydata.cu;kernels/cuda_gvdb_module.cu;kernels/cuda_gvdb.cuh;kernels/cuda_gvdb_dda.cuh;kernels/cuda_gvdb_geom.cuh;kernels/cuda_gvdb_nodes.cuh;kernels/cuda_gvdb_operators.cuh;kernels/cuda_gvdb_particles.cuh;kernels/cuda_gvdb_raycast.cuh;kernels/cuda_gvdb_scene.cuh;kernels/cuda_math.cuh
-- Build:   /home/cc/Downloads/tmp/gvdb-voxels-master/build/gvdb_library
-- Lib:     /usr/local/gvdb/lib
-- Inc:     /usr/local/gvdb/include
-- Share:   /usr/local/gvdb/lib
-- Libraries used:
  /usr/lib/libcuda.so
   /opt/cuda/lib64/libcudart.so
-- Shaders used: /home/cc/Downloads/tmp/gvdb-voxels-master/source/gvdb_library/shaders/voxelize.frag.glsl;/home/cc/Downloads/tmp/gvdb-voxels-master/source/gvdb_library/shaders/voxelize.geom.glsl;/home/cc/Downloads/tmp/gvdb-voxels-master/source/gvdb_library/shaders/voxelize.vert.glsl
-- PTX files: /home/cc/Downloads/tmp/gvdb-voxels-master/build/gvdb_library/d_cuda_gvdb_copydata.ptx;/home/cc/Downloads/tmp/gvdb-voxels-master/build/gvdb_library/d_cuda_gvdb_module.ptx
-- 
GVDB INSTALL PATH: /usr/local/gvdb
-- GVDB will be installed to this path post-build (win32) or during make install (linux)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/cc/Downloads/tmp/gvdb-voxels-master/build/gvdb_library

@dcoeurjo
Copy link

I also have this issue on a fresh ubuntu 17.04 install

@dcoeurjo
Copy link

Ok... I think I have a workaround.. The issue is due to recent cmake and escaping characters policy.

If you install an older cmake (cmake 3.5 for instance), the project compliles without this error.

@djspecialagent
Copy link
Author

Thank you for the response, dcoeurjo! Much appreciated. I am too now having this issue on ubuntu 17.04.

Certainly, this can be made to compile under more recent cmake somehow, as many will want to use latest ubuntu as their dev machines.

@djspecialagent
Copy link
Author

actually just got this to compile under stock ubuntu 17.04 install using cmake that it ships with (cmake 3.7.2). The issue is that nvidia developers are putting quotes in their paths in the cmake files to help with paths that contain spacing. However, my paths don't have any spacing and their workaround is causing me trouble. nvidia needs a better workaround.

@djspecialagent
Copy link
Author

to compile have to go into source/gvdb_library/cmake/CMakeLists_include.txt and remove quotes from lines 11, 12, 114, 115, 116.

@MarcSeebold
Copy link

This patch fixes it: https://gitlab.kitware.com/cmake/cmake/commit/c1f4f13dbfa7caf6bbf4d8b70a7f09f786c7eed6

@Kaju-Bubanja
Copy link

Kaju-Bubanja commented Aug 7, 2018

I got a similar error as above:

Syntax Warning in cmake code at column 49

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

nvcc fatal   : Stray '"' character
CMake Error at kinectFusion_generated_voxelGrid.cu.o.Release.cmake:222 (message):

I downloaded cmake switched to the branch linked above that should fix the issue, build it without errors, then replaced ccmake, cmake, cpack and ctest with the newly build binaries and tried to build anew with the patch, but I still get the same error, any ideas why this could be?

@q8wwe
Copy link

q8wwe commented Mar 30, 2020

I'm facing sane probkem ,How to solve the problem and how to use the mentioned patch ?

@NBickford-NV
Copy link
Collaborator

Hi q8wwe! We changed the build system a lot since this issue was originally created, so some things might have changed in the meantime. Could you let me know what version of CMake you're using (and which version of Linux), as well as the command line that nvcc's failing on, if possible?

Thanks!

@q8wwe
Copy link

q8wwe commented Mar 30, 2020

Ubuntu 16.04
Cuda 9
Cmake 3.8++
All on jetson Tx2

Thank very much for reply back , I tried to solve this problem but no luck .

What can I do to overcome this problem and I have no idea how to use the mentioned patch !!!

@NBickford-NV
Copy link
Collaborator

OK, the version of CMake's probably the issue here! The minimum version of CMake for the new GVDB build system is 3.10 - see https://github.com/NVIDIA/gvdb-voxels/blob/master/CMakeLists.txt#L4 (this was determined based off of trying to balance the new CMake features we wanted to use to simplify the build system with the fact that Ubuntu 18.04 LTS only has CMake 3.10, if I recall correctly).

If possible, maybe the simplest way to apply the patch above (essentially) would be to update to a more recent version of CMake (3.10 or higher)? That should hopefully help with the issue, since it looks like the patch above was committed into the CMake code base about two years ago. Thanks!

@q8wwe
Copy link

q8wwe commented Mar 30, 2020

Thank you I will try this solution tomorrow.

@q8wwe
Copy link

q8wwe commented Mar 31, 2020

Thank you for your suggestion.
It worked , I updated cmake to 3.11.4

Steps :-
Download : 1.https://cmake.org/files/v3.11/cmake-11.4.tar.Z
2.un-tar it .
3. ./configure
4. sudo make install

@NBickford-NV
Copy link
Collaborator

Awesome, I'm glad that worked - and thanks for posting the instructions showing how to install it here!

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

7 participants