hlrs-vis / covise

Collaborative Visualization and Simulation Environment, OpenCOVER and OddLOT
http://www.hlrs.de/covise/
185 stars 88 forks source link

CUDA related compile errors #14

Closed laurenegts closed 8 years ago

laurenegts commented 9 years ago

Compiling on Ubuntu 12.04 results in the following error log:

[120] [hxgpu0] $make cd /hx/u/legts/covise/pangolin/build.covise//src && make -f /hx/u/legts/covise/pangolin/build.covise//src/Makefile make[1]: Entering directory /hx/u/legts/covise/pangolin/build.covise/src' make[2]: Entering directory/hx/u/legts/covise/pangolin/build.covise' make[3]: Entering directory `/hx/u/legts/covise/pangolin/build.covise' [ 0%] Building NVCC (Device) object src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_vvcudatransfunc.cu.o /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h(432): error: identifier "nullptr" is undefined

/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h(432): error: expected a ";"

/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h(190): error: expected a ";"

/usr/include/c++/4.8/exception(63): error: expected a ";"

/usr/include/c++/4.8/exception(68): error: expected a ";"

/usr/include/c++/4.8/exception(76): error: expected a ";"

/usr/include/c++/4.8/exception(83): error: expected a ";"

/usr/include/c++/4.8/exception(93): error: expected a "{"

/usr/include/c++/4.8/bits/exception_ptr.h(64): error: function "std::current_exception" returns incomplete type "std::__exception_ptr::exception_ptr"

/usr/include/c++/4.8/bits/exception_ptr.h(64): error: expected a "{"

/usr/include/c++/4.8/bits/exception_ptr.h(79): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(81): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(82): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(84): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(86): error: declaration is incompatible with previous "std::current_exception" (64): here

/usr/include/c++/4.8/bits/exception_ptr.h(86): error: use of a local type to declare a function

/usr/include/c++/4.8/bits/exception_ptr.h(86): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(87): error: use of a local type to declare a function

/usr/include/c++/4.8/bits/exception_ptr.h(90): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(92): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(95): error: incomplete type is not allowed

/usr/include/c++/4.8/bits/exception_ptr.h(95): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(116): error: expected a ")"

/usr/include/c++/4.8/bits/exception_ptr.h(116): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(126): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(143): error: use of a local type to declare a function

/usr/include/c++/4.8/bits/exception_ptr.h(144): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(147): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(152): error: use of a local type to declare a function

/usr/include/c++/4.8/bits/exception_ptr.h(153): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(156): error: use of a local type to declare a function

/usr/include/c++/4.8/bits/exception_ptr.h(157): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(160): error: use of a local type to declare a function

/usr/include/c++/4.8/bits/exception_ptr.h(161): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(169): error: expected a ";"

/usr/include/c++/4.8/bits/nested_exception.h(57): error: incomplete type is not allowed

/usr/include/c++/4.8/bits/nested_exception.h(60): error: expected a ";"

/usr/include/c++/4.8/bits/nested_exception.h(64): error: expected a ";"

/usr/include/c++/4.8/bits/nested_exception.h(66): error: expected a ";"

/usr/include/c++/4.8/bits/nested_exception.h(70): error: identifier "rethrow_exception" is undefined

/usr/include/c++/4.8/bits/nested_exception.h(73): error: function "std::nested_exception::nested_ptr" returns incomplete type "std::__exception_ptr::exception_ptr"

/usr/include/c++/4.8/bits/nested_exception.h(80): error: expected a ")"

/usr/include/c++/4.8/bits/nested_exception.h(108): error: expected a ")"

/usr/include/c++/4.8/bits/nested_exception.h(113): error: expected a ")"

/usr/include/c++/4.8/bits/nested_exception.h(120): error: expected a ")"

/usr/include/c++/4.8/bits/nested_exception.h(125): error: expected a ")"

/usr/include/c++/4.8/bits/nested_exception.h(125): error: function template "std::__throw_with_nested" has already been defined

/usr/include/c++/4.8/new(95): error: expected a "{"

/usr/include/c++/4.8/new(110): error: identifier "__p" is undefined

/usr/include/c++/4.8/new(111): error: expected a "{"

/usr/include/c++/4.8/new(115): error: expected a "{"

/usr/include/c++/4.8/new(116): error: expected a "{"

/usr/include/c++/4.8/bits/cpp_type_traits.h(184): error: identifier "char16_t" is undefined

/usr/include/c++/4.8/bits/cpp_type_traits.h(191): error: identifier "char32_t" is undefined

/usr/include/c++/4.8/bits/cpp_type_traits.h(191): error: class "std::__is_integer<>" has already been defined

/usr/include/c++/4.8/bits/cpp_type_traits.h(314): error: namespace "std::__gnu_cxx" has no member "__normal_iterator"

/usr/include/c++/4.8/bits/cpp_type_traits.h(314): error: expected a ">"

Segmentation fault CMake Error at cuda_compile_generated_vvcudatransfunc.cu.o.cmake:264 (message): Error generating file /hx/u/legts/covise/pangolin/build.covise/src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_vvcudatransfunc.cu.o

make[3]: * [src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir/./cuda_compile_generated_vvcudatransfunc.cu.o] Error 1 make[3]: Leaving directory /hx/u/legts/covise/pangolin/build.covise' make[2]: *** [src/3rdparty/deskvox/virvo/virvo/CMakeFiles/virvo.dir/all] Error 2 make[2]: Leaving directory/hx/u/legts/covise/pangolin/build.covise' make[1]: *\ [all] Error 2 make[1]: Leaving directory `/hx/u/legts/covise/pangolin/build.covise/src' make: * [first] Error 2 [121] [hxgpu0] $

[120] [hxgpu0] $make cd /hx/u/legts/covise/pangolin/build.covise//src && make -f /hx/u/legts/covise/pangolin/build.covise//src/Makefile make[1]: Entering directory /hx/u/legts/covise/pangolin/build.covise/src' make[2]: Entering directory/hx/u/legts/covise/pangolin/build.covise' make[3]: Entering directory `/hx/u/legts/covise/pangolin/build.covise' [ 0%] Building NVCC (Device) object src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_vvcudatransfunc.cu.o /usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h(432): error: identifier "nullptr" is undefined

/usr/lib/gcc/x86_64-linux-gnu/4.8/include/stddef.h(432): error: expected a ";"

/usr/include/x86_64-linux-gnu/c++/4.8/bits/c++config.h(190): error: expected a ";"

/usr/include/c++/4.8/exception(63): error: expected a ";"

/usr/include/c++/4.8/exception(68): error: expected a ";"

/usr/include/c++/4.8/exception(76): error: expected a ";"

/usr/include/c++/4.8/exception(83): error: expected a ";"

/usr/include/c++/4.8/exception(93): error: expected a "{"

/usr/include/c++/4.8/bits/exception_ptr.h(64): error: function "std::current_exception" returns incomplete type "std::__exception_ptr::exception_ptr"

/usr/include/c++/4.8/bits/exception_ptr.h(64): error: expected a "{"

/usr/include/c++/4.8/bits/exception_ptr.h(79): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(81): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(82): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(84): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(86): error: declaration is incompatible with previous "std::current_exception" (64): here

/usr/include/c++/4.8/bits/exception_ptr.h(86): error: use of a local type to declare a function

/usr/include/c++/4.8/bits/exception_ptr.h(86): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(87): error: use of a local type to declare a function

/usr/include/c++/4.8/bits/exception_ptr.h(90): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(92): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(95): error: incomplete type is not allowed

/usr/include/c++/4.8/bits/exception_ptr.h(95): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(116): error: expected a ")"

/usr/include/c++/4.8/bits/exception_ptr.h(116): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(126): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(143): error: use of a local type to declare a function

/usr/include/c++/4.8/bits/exception_ptr.h(144): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(147): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(152): error: use of a local type to declare a function

/usr/include/c++/4.8/bits/exception_ptr.h(153): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(156): error: use of a local type to declare a function

/usr/include/c++/4.8/bits/exception_ptr.h(157): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(160): error: use of a local type to declare a function

/usr/include/c++/4.8/bits/exception_ptr.h(161): error: expected a ";"

/usr/include/c++/4.8/bits/exception_ptr.h(169): error: expected a ";"

/usr/include/c++/4.8/bits/nested_exception.h(57): error: incomplete type is not allowed

/usr/include/c++/4.8/bits/nested_exception.h(60): error: expected a ";"

/usr/include/c++/4.8/bits/nested_exception.h(64): error: expected a ";"

/usr/include/c++/4.8/bits/nested_exception.h(66): error: expected a ";"

/usr/include/c++/4.8/bits/nested_exception.h(70): error: identifier "rethrow_exception" is undefined

/usr/include/c++/4.8/bits/nested_exception.h(73): error: function "std::nested_exception::nested_ptr" returns incomplete type "std::__exception_ptr::exception_ptr"

/usr/include/c++/4.8/bits/nested_exception.h(80): error: expected a ")"

/usr/include/c++/4.8/bits/nested_exception.h(108): error: expected a ")"

/usr/include/c++/4.8/bits/nested_exception.h(113): error: expected a ")"

/usr/include/c++/4.8/bits/nested_exception.h(120): error: expected a ")"

/usr/include/c++/4.8/bits/nested_exception.h(125): error: expected a ")"

/usr/include/c++/4.8/bits/nested_exception.h(125): error: function template "std::__throw_with_nested" has already been defined

/usr/include/c++/4.8/new(95): error: expected a "{"

/usr/include/c++/4.8/new(110): error: identifier "__p" is undefined

/usr/include/c++/4.8/new(111): error: expected a "{"

/usr/include/c++/4.8/new(115): error: expected a "{"

/usr/include/c++/4.8/new(116): error: expected a "{"

/usr/include/c++/4.8/bits/cpp_type_traits.h(184): error: identifier "char16_t" is undefined

/usr/include/c++/4.8/bits/cpp_type_traits.h(191): error: identifier "char32_t" is undefined

/usr/include/c++/4.8/bits/cpp_type_traits.h(191): error: class "std::__is_integer<>" has already been defined

/usr/include/c++/4.8/bits/cpp_type_traits.h(314): error: namespace "std::__gnu_cxx" has no member "__normal_iterator"

/usr/include/c++/4.8/bits/cpp_type_traits.h(314): error: expected a ">"

Segmentation fault CMake Error at cuda_compile_generated_vvcudatransfunc.cu.o.cmake:264 (message): Error generating file /hx/u/legts/covise/pangolin/build.covise/src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_vvcudatransfunc.cu.o

make[3]: * [src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir/./cuda_compile_generated_vvcudatransfunc.cu.o] Error 1 make[3]: Leaving directory /hx/u/legts/covise/pangolin/build.covise' make[2]: *** [src/3rdparty/deskvox/virvo/virvo/CMakeFiles/virvo.dir/all] Error 2 make[2]: Leaving directory/hx/u/legts/covise/pangolin/build.covise' make[1]: *\ [all] Error 2 make[1]: Leaving directory `/hx/u/legts/covise/pangolin/build.covise/src' make: * [first] Error 2

Any idea what is going on and how to fix it?

Thanks

szellmann commented 9 years ago

It looks like you are trying to compile CUDA files that contain C++-11 code included from standard library headers.

If your CUDA version is sufficiently new (6.5 has experimental, 7.0 official C++-11 support), you can edit $COVISEDIR/pangolin/build.covise/CMakeCache.txt, append "-std=c++11" to CUDA_NVCC_FLAGS.

Alternatively, in the same file, you could deactivate C++-11 builds (COVISE_USE_CPP11) or compile w/o CUDA (COVISE_USE_CUDA).

szellmann commented 9 years ago

A wild guess is that you haven’t sourced covise’s environment. Your environment must be properly set when configuring, compiling or executing covise. You can check by testing if $COVISEDIR is empty. If so, just do the following:

cd /hx/u/legts/covise $ source .covise.sh $ make

If this won’t help, you need to supply more information.

Cheers, Stefan

On 07 Jul 2015, at 14:12, legts notifications@github.com wrote:

I tried to compile without CUDA. In the /covise/pangolin/build.covise/CMakeCache.txt file, I turned the COVISE_USE_CUDA boolean to OFF. That resulted in the following error:

[398] [hxgpu0] $make cd src && make make[1]: Entering directory /hx/u/legts/covise/src' Makefile:1: /src/Makefile.default: No such file or directory make[1]: * No rule to make target/src/Makefile.default'. Stop. make[1]: Leaving directory `/hx/u/legts/covise/src' make: * [covise] Error 2 [399] [hxgpu0] $

Any ideas?

Thanks.

— Reply to this email directly or view it on GitHub https://github.com/hlrs-vis/covise/issues/14#issuecomment-119185657.

laurenegts commented 9 years ago

Yeah, I did that and it worked. My mistake!

However, as I was having such trouble with the compiling, I decided to start from scratch and re-clone everything from GitHub. The cloning works, but when I run "git submodule update --init --recursive" this fails.

Any suggestions?

szellmann commented 9 years ago

Without an error message this is hard to say.

After calling submodule update, are the directories $COVISEDIR/src/3rdparty/deskvox and $COVISEDIR/share/covise/web/noVNC populated?

On 07 Jul 2015, at 15:32, legts notifications@github.com wrote:

Yeah, I did that and it worked. My mistake!

However, as I was having such trouble with the compiling, I decided to start from scratch and re-clone everything from GitHub. The cloning works, but when I run "git submodule update --init --recursive" this fails.

Any suggestions?

— Reply to this email directly or view it on GitHub https://github.com/hlrs-vis/covise/issues/14#issuecomment-119203250.

laurenegts commented 9 years ago

Both of the directories are nonexistent. This is the error I'm getting: [457] [hxgpu0] $git submodule update --init --recursive Cloning into 'share/covise/web/noVNC'... fatal: unable to connect to github.com: github.com[0: 192.30.252.131]: errno=Connection timed out Clone of 'git://github.com/kanaka/noVNC.git' into submodule path 'share/covise/web/noVNC' failed

szellmann commented 9 years ago

It is telling that it cannot connect to github.com http://github.com/

I double-checked and can locally clone noVNC from github.

This seems like a network issue. Are you sure that the IP address is routed? You presumably cloned from an interactive shell, so is the shell you’re issuing git submodule update from also interactive? Or are you using some kind of batch process?

On 07 Jul 2015, at 15:50, legts notifications@github.com wrote:

This is the error I'm getting:

[457] [hxgpu0] $git submodule update --init --recursive Cloning into 'share/covise/web/noVNC'... fatal: unable to connect to github.com: github.com[0: 192.30.252.131]: errno=Connection timed out

Clone of 'git://github.com/kanaka/noVNC.git' into submodule path 'share/covise/web/noVNC' failed [458] [hxgpu0] $

— Reply to this email directly or view it on GitHub https://github.com/hlrs-vis/covise/issues/14#issuecomment-119207246.

laurenegts commented 9 years ago

I'm running on a server in the basement of my building. I don't know any of the specifics, but I can find out when someone gets back from a meeting. I'm running Ubuntu 12.04 and I think I'm using the default terminal.

Edit: I can ping the GitHub IP that the error message gives me when it times out.

laurenegts commented 9 years ago

My version of CUDA was 5.5, but I just updated it to 7. I'm still getting an error though. I'm not sure that I have implemented your first suggestion correctly. In my CMakeCache.txt, the only mention of "-std" is here:

//Flags used by the compiler during all build types CMAKE_C_FLAGS:STRING= -march=native -std=c99

Is this where I should "edit $COVISEDIR/pangolin/build.covise/CMakeCache.txt, append "-std=c++11" to CUDA_NVCC_FLAGS."

By the way, even when I utilize your suggestions, I still get the following output:

[514] [hxgpu0] $make cd src && make make[1]: Entering directory /hx/u/legts/covise/src' cd /hx/u/legts/covise/pangolin/build.covise//src && make -f /hx/u/legts/covise/pangolin/build.covise//src/Makefile make[2]: Entering directory/hx/u/legts/covise/pangolin/build.covise/src' CMAKE_BUILD_TYPE=Debug COVISEDIR=/hx/u/legts/covise ARCHSUFFIX=pangolin, BASEARCHSUFFIX=pangolin COVISE_VERSION = 2015.7-81b0091, Last git change on 2015-07-06 USING list: ABAQUS;ALVAR;ARTOOLKIT;ARTOOLKITPLUS;BOOST;BULLET;CGNS;CUDPP;CAL3D;CAVEUI;CG;CURSES;E57;EIGEN;FFMPEG;FLEX;FMOD;FREETYPE;GDAL;GLEW;GLUT;GSOAP;GEOTIFF;HDF5;ITK;INVENTOR;JPEG;JT;JPEGTURBO;LIBUSB;MICROHTTPD;MPI;MOTIF;NETCDF;OPENTHREADS;OSC;OSGTERRAIN;OVR;OPENCV;OPENGL;OSGCAL;OSGEARTH;OSGEPHEMERIS;OSGQT;OSSIMPLANET;PCL;PNG;PROJ4;PTHREADS;SLAM6D;SNAPPY;SIXENSE;STEEREO;TIFF;TCL;VRML;VRPN;VTK;VIDEOINPUT;VIRVO;WIIYOURSELF;XERCESC;ZLIB -- Found GLUT: /usr/lib/x86_64-linux-gnu/libglut.so
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.50") -- checking for module 'libswresample' -- package 'libswresample' not found -- Could NOT find FFMPEG_SWRESAMPLE (missing: FFMPEG_SWRESAMPLE_LIBRARY FFMPEG_SWRESAMPLE_INCLUDE_DIR) -- Could NOT find Steereo (missing: STEEREO_LIBRARY STEEREO_INCLUDE_DIR) -- Could NOT find INVENTOR (missing: INVENTOR_INCLUDE_DIR INVENTOR_LIBRARY INVENTOR_XT_LIBRARY) -- Could NOT find Cg (missing: CG_LIBRARY CG_GL_LIBRARY CG_INCLUDE_DIR CG_COMPILER) -- Boost version: 1.54.0 -- Found the following Boost libraries: -- serialization -- Adding executable: vconv (Tools)... -- Boost version: 1.54.0 -- Adding executable: vserver (Tools)... -- Boost version: 1.54.0 -- Found GLUT: /usr/include
-- Adding executable: vview (Tools)... -- Checking whether Bonjour/Avahi is supported -- Boost version: 1.54.0 -- Found the following Boost libraries: -- chrono -- date_time -- filesystem -- serialization -- system -- thread -- Could NOT find Cg (missing: CG_LIBRARY CG_GL_LIBRARY CG_INCLUDE_DIR CG_COMPILER) -- checking for module 'libswresample' -- package 'libswresample' not found -- Could NOT find FFMPEG_SWRESAMPLE (missing: FFMPEG_SWRESAMPLE_LIBRARY FFMPEG_SWRESAMPLE_INCLUDE_DIR) -- Could NOT find Protokit (missing: PROTOKIT_LIBRARIES PROTOKIT_INCLUDE_DIR) -- Could NOT find NORM (missing: NORM_LIBRARY NORM_INCLUDE_DIR PROTOKIT_LIBRARIES PROTOKIT_INCLUDE_DIR) -- Found PNG: /usr/include;/usr/include
-- Could NOT find Protokit (missing: PROTOKIT_LIBRARIES PROTOKIT_INCLUDE_DIR) -- Could NOT find SNAPPY (missing: SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIR) -- Could NOT find Teem (missing: TEEM_INCLUDE_DIR TEEM_LIBRARY) -- Could NOT find VOLPACK (missing: VOLPACK_LIBRARY VOLPACK_INCLUDE_DIR) -- Adding library virvo... -- Boost version: 1.54.0 -- Adding library rayrendcuda... -- Boost version: 1.54.0 -- Adding library rayrendfpu... -- Boost version: 1.54.0 -- Adding library rayrendsse2... -- Boost version: 1.54.0 -- Adding library rayrendsse4_1... -- Boost version: 1.54.0 -- Adding executable: vox-desk-qt (Tools)... -- Adding plugin servermon... -- Could NOT find FMOD (missing: FMOD_LIBRARY FMOD_INCLUDE_DIR) -- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) SWIG Executable not found! Skipping GuiRenderMessage (_coGRMsg) -- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) SWIG Executable not found! Skipping ScriptingInterface (_covise) -- Could NOT find Motif (missing: MOTIF_LIBRARIES MOTIF_INCLUDE_DIR) -- Could NOT find Microhttpd (missing: MICROHTTPD_LIBRARY MICROHTTPD_INCLUDE_DIR) -- Could NOT find Coin3D (missing: COIN3D_LIBRARIES COIN3D_INCLUDE_DIRS) -- Could NOT find SoQt (missing: SOQT_LIBRARIES SOQT_INCLUDE_DIRS) -- Could NOT find Motif (missing: MOTIF_LIBRARIES MOTIF_INCLUDE_DIR) -- Could NOT find CGNS (missing: CGNS_LIBRARY CGNS_INCLUDE_DIR) -- Could NOT find CGNS (missing: CGNS_LIBRARY CGNS_INCLUDE_DIR) -- Could NOT find CFX (missing: CFX_IMPORT_LIBRARY CFX_EXPORT_LIBRARY CFX_PGT_LIBRARY CFX_UNITS_LIBRARY CFX_CCLAPILT_LIBRARY CFX_IO_LIBRARY CFX_INCLUDE_DIR) -- Could NOT find ABAQUS (missing: ABAQUS_LIBRARY ABAQUS_INCLUDE_DIR)

-- Could NOT find CGNS (missing: CGNS_LIBRARY CGNS_INCLUDE_DIR)

-- The following OPTIONAL packages have been found:

-- The following REQUIRED packages have been found:

-- The following OPTIONAL packages have not been found:

-- Configuring done -- Generating done -- Build files have been written to: /hx/u/legts/covise/pangolin/build.covise make[3]: Entering directory /hx/u/legts/covise/pangolin/build.covise' make[4]: Entering directory/hx/u/legts/covise/pangolin/build.covise' [ 0%] Building NVCC (Device) object src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_vvcudatransfunc.cu.o CMake Error at cuda_compile_generated_vvcudatransfunc.cu.o.cmake:206 (message): Error generating /hx/u/legts/covise/pangolin/build.covise/src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_vvcudatransfunc.cu.o

make[4]: * [src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir/./cuda_compile_generated_vvcudatransfunc.cu.o] Error 1 make[4]: Leaving directory `/hx/u/legts/covise/pangolin/build.covise' make[3]: * [src/3rdparty/deskvox/virvo/virvo/CMakeFiles/virvo.dir/all] Error 2 make[3]: Leaving directory/hx/u/legts/covise/pangolin/build.covise' make[2]: **\* [all] Error 2 make[2]: Leaving directory/hx/u/legts/covise/pangolin/build.covise/src' make[1]: [first] Error 2 make[1]: Leaving directory`/hx/u/legts/covise/src' make: \ [covise] Error 2

szellmann commented 9 years ago

The variable CUDA_NVCC_FLAGS may well be initially empty. If this is the case, please alter it:

CUDA_NVCC_FLAGS:STRING=-std=c++11

Otherwise, just append -std=c++11. This tells nvcc to compile w/ C++-11 (the default is, I think, C++-03).

If you don’t depend on any features that use CUDA, I’d however recommend to deactivate it completely. If you can’t answer the question for certain, you probably don’t need CUDA features.

The 3rd alternative would be to not compile with C++11 activated - I can’t tell which features aren’t there when building w/o C++-11, but they are probably few.

covise has a two-stage build process. First covise is built, and then opencover, the VR renderer. It may well be that you have to do similar adjustments for opencover, the file is then called pangolin/build.cover/CMakeCache.txt

On 07 Jul 2015, at 20:15, legts <notifications@github.com mailto:notifications@github.com> wrote:

My version of CUDA was 5.5, but I just updated it to 7. I'm still getting an error though. I'm not sure that I have implemented your first suggestion correctly. In my CMakeCache.txt, the only mention of "-std" is here:

//Flags used by the compiler during all build types CMAKE_C_FLAGS:STRING= -march=native -std=c99

Is this where I should "edit $COVISEDIR/pangolin/build.covise/CMakeCache.txt, append "-std=c++11" to CUDA_NVCC_FLAGS."

— Reply to this email directly or view it on GitHub https://github.com/hlrs-vis/covise/issues/14#issuecomment-119289796.

laurenegts commented 9 years ago

I have deactivated CUDA, but I still get an error message. Should the CMakeCache.txt file be at the original settings when I run the make command without CUDA.\

This is the error message I get when I try to compile:

-- Configuring done -- Generating done -- Build files have been written to: /hx/u/legts/covise/pangolin/build.covise make[3]: Entering directory /hx/u/legts/covise/pangolin/build.covise' make[4]: Entering directory/hx/u/legts/covise/pangolin/build.covise' [ 0%] Building NVCC (Device) object src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_vvcudatransfunc.cu.o CMake Error at cuda_compile_generated_vvcudatransfunc.cu.o.cmake:206 (message): Error generating /hx/u/legts/covise/pangolin/build.covise/src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_vvcudatransfunc.cu.o

make[4]: * [src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir/./cuda_compile_generated_vvcudatransfunc.cu.o] Error 1 make[4]: Leaving directory `/hx/u/legts/covise/pangolin/build.covise' make[3]: * [src/3rdparty/deskvox/virvo/virvo/CMakeFiles/virvo.dir/all] Error 2 make[3]: Leaving directory/hx/u/legts/covise/pangolin/build.covise' make[2]: **\* [all] Error 2 make[2]: Leaving directory/hx/u/legts/covise/pangolin/build.covise/src' make[1]: [first] Error 2 make[1]: Leaving directory`/hx/u/legts/covise/src' make: \ [covise] Error 2 [505] [hxgpu0] $

szellmann commented 9 years ago

In CMakeCache.txt there must be a line

COVISE_USE_CUDA:BOOL=OFF

Would you please check again? The error message below really suggests that COVISE_USE_CUDA is set to ON. If CUDA is deactivated, will not get invoked.

On 07 Jul 2015, at 21:20, legts <notifications@github.com mailto:notifications@github.com> wrote:

I have deactivated CUDA, but I still get an error message. Should the CMakeCache.txt file be at the original settings when I run the make command without CUDA.\

This is the error message I get when I try to compile:

-- Configuring done -- Generating done -- Build files have been written to: /hx/u/legts/covise/pangolin/build.covise make[3]: Entering directory /hx/u/legts/covise/pangolin/build.covise' make[4]: Entering directory/hx/u/legts/covise/pangolin/build.covise' [ 0%] Building NVCC (Device) object src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_vvcudatransfunc.cu.o CMake Error at cuda_compile_generated_vvcudatransfunc.cu.o.cmake:206 (message): Error generating /hx/u/legts/covise/pangolin/build.covise/src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_vvcudatransfunc.cu.o

make[4]: * [src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir/./cuda_compile_generated_vvcudatransfunc.cu.o] Error 1 make[4]: Leaving directory /hx/u/legts/covise/pangolin/build.covise' make[3]: * [src/3rdparty/deskvox/virvo/virvo/CMakeFiles/virvo.dir/all] Error 2 make[3]: Leaving directory/hx/u/legts/covise/pangolin/build.covise' make[2]: * [all] Error 2 make[2]: Leaving directory /hx/u/legts/covise/pangolin/build.covise/src' make[1]: * [first] Error 2 make[1]: Leaving directory/hx/u/legts/covise/src' make: *\ [covise] Error 2 [505] [hxgpu0] $

— Reply to this email directly or view it on GitHub https://github.com/hlrs-vis/covise/issues/14#issuecomment-119308462.

Dr. Stefan Zellmann

Universität zu Köln Lehrstuhl für Informatik Weyertal 121 50931 Köln-Lindenthal Telefon: +49 (0) 221 470 89615 E-Mail : zellmann@uni-koeln.de mailto:zellmann@uni-koeln.de Web : http://vis.uni-koeln.de/zellmann.html http://vis.uni-koeln.de/zellmann.html

szellmann commented 9 years ago

In CMakeCache.txt there must be a line

COVISE_USE_CUDA:BOOL=OFF

Would you please check again? The error message below really suggests that COVISE_USE_CUDA is set to ON. If CUDA is deactivated, will not get invoked.

On 07 Jul 2015, at 21:20, legts notifications@github.com wrote:

I have deactivated CUDA, but I still get an error message. Should the CMakeCache.txt file be at the original settings when I run the make command without CUDA.\

This is the error message I get when I try to compile:

-- Configuring done -- Generating done -- Build files have been written to: /hx/u/legts/covise/pangolin/build.covise make[3]: Entering directory /hx/u/legts/covise/pangolin/build.covise' make[4]: Entering directory/hx/u/legts/covise/pangolin/build.covise' [ 0%] Building NVCC (Device) object src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_vvcudatransfunc.cu.o CMake Error at cuda_compile_generated_vvcudatransfunc.cu.o.cmake:206 (message): Error generating /hx/u/legts/covise/pangolin/build.covise/src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_vvcudatransfunc.cu.o

make[4]: * [src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir/./cuda_compile_generated_vvcudatransfunc.cu.o] Error 1 make[4]: Leaving directory /hx/u/legts/covise/pangolin/build.covise' make[3]: * [src/3rdparty/deskvox/virvo/virvo/CMakeFiles/virvo.dir/all] Error 2 make[3]: Leaving directory/hx/u/legts/covise/pangolin/build.covise' make[2]: * [all] Error 2 make[2]: Leaving directory /hx/u/legts/covise/pangolin/build.covise/src' make[1]: * [first] Error 2 make[1]: Leaving directory/hx/u/legts/covise/src' make: *\ [covise] Error 2 [505] [hxgpu0] $

— Reply to this email directly or view it on GitHub https://github.com/hlrs-vis/covise/issues/14#issuecomment-119308462.

laurenegts commented 9 years ago

These are the lines that I have modified.

//enable C++ 11 features COVISE_USE_CPP11:BOOL=ON //originally ON

//Use CUDA COVISE_USE_CUDA:BOOL=OFF //originally ON

szellmann commented 9 years ago

Those settings look alright and nvcc should never be invoked - could you:

$ cd $COVISEDIR/build.covise $ cmake . $ cd - $ make

and report if the error still occurs?

On 07 Jul 2015, at 21:31, legts <notifications@github.com mailto:notifications@github.com> wrote:

These are the lines that I have modified.

//enable C++ 11 features COVISE_USE_CPP11:BOOL=ON //originally ON

//Use CUDA COVISE_USE_CUDA:BOOL=OFF //originally ON

— Reply to this email directly or view it on GitHub https://github.com/hlrs-vis/covise/issues/14#issuecomment-119310690.

szellmann commented 9 years ago

On 07 Jul 2015, at 21:39, Stefan Zellmann info@szellmann.de wrote:

Those settings look alright and nvcc should never be invoked - could you:

$ cd $COVISEDIR/build.covise

Ah, sorry:

$ cd $COVISEDIR/pangolin/build.covise

$ cmake . $ cd - $ make

and report if the error still occurs?

On 07 Jul 2015, at 21:31, legts <notifications@github.com mailto:notifications@github.com> wrote:

These are the lines that I have modified.

//enable C++ 11 features COVISE_USE_CPP11:BOOL=ON //originally ON

//Use CUDA COVISE_USE_CUDA:BOOL=OFF //originally ON

— Reply to this email directly or view it on GitHub https://github.com/hlrs-vis/covise/issues/14#issuecomment-119310690.

laurenegts commented 9 years ago

Same error as before, though the cmake . worked in the /pangolin/build.covise directory. It says that it has found CUDA, though I believe that CUDA has been deactivated. Could this be problematic?

Edit: When I run make in the covise directory, I get this error: [522] [hxgpu0] $make cd src && make make[1]: Entering directory /hx/u/legts/covise/src' cd /hx/u/legts/covise/pangolin/build.covise//src && make -f /hx/u/legts/covise/pangolin/build.covise//src/Makefile make[2]: Entering directory/hx/u/legts/covise/pangolin/build.covise/src' make[3]: Entering directory /hx/u/legts/covise/pangolin/build.covise' make[4]: Entering directory/hx/u/legts/covise/pangolin/build.covise' [ 0%] Building NVCC (Device) object src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_vvcudatransfunc.cu.o CMake Error at cuda_compile_generated_vvcudatransfunc.cu.o.cmake:206 (message): Error generating /hx/u/legts/covise/pangolin/build.covise/src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir//./cuda_compile_generated_vvcudatransfunc.cu.o

make[4]: * [src/3rdparty/deskvox/virvo/virvo/CMakeFiles/cuda_compile.dir/./cuda_compile_generated_vvcudatransfunc.cu.o] Error 1 make[4]: Leaving directory `/hx/u/legts/covise/pangolin/build.covise' make[3]: * [src/3rdparty/deskvox/virvo/virvo/CMakeFiles/virvo.dir/all] Error 2 make[3]: Leaving directory/hx/u/legts/covise/pangolin/build.covise' make[2]: **\* [all] Error 2 make[2]: Leaving directory/hx/u/legts/covise/pangolin/build.covise/src' make[1]: [first] Error 2 make[1]: Leaving directory`/hx/u/legts/covise/src' make: \ [covise] Error 2

szellmann commented 9 years ago

Right now I have no explanation, the COVISE_USE_CUDA switch works for me, I just checked, but then I’m on Mac OS X.

Just to make absolutely sure, could you reiterate the aforementioned procedure but replace the "cmake ." call with

cmake . -DCOVISE_USE_CUDA:BOOL=OFF

In case this won’t work either, this is a bug that needs further investigation.

For the time being, you could try to convince cmake that CUDA was not found, e.g. by emptying CUDA_NVCC_EXECUTABLE and maybe CUDA_CUDART_LIBRARY variables in CMakeCache.txt

On 07 Jul 2015, at 21:43, legts notifications@github.com wrote:

Same error as before, though the cmake . worked in the /pangolin/build.covise directory. It says that it has found CUDA, though I believe that CUDA has been deactivated. Could this be problematic?

— Reply to this email directly or view it on GitHub https://github.com/hlrs-vis/covise/issues/14#issuecomment-119314910.

laurenegts commented 9 years ago

I replaced the cmake call as you said, switched back to the covise directory and ran make. It seems to be building, but has not yet completed. I'll keep you posted.

By the way, I'm running Ubuntu 12.04 with CUDA version 7.

laurenegts commented 9 years ago

Hi, this is Herb Schilling. I work with Lauren. COVISE built with no errors! OpenCOVER came so close! It died when it found that PyQT5 was not installed. We should be able to fix that tomorrow and try again.

Thanks for all your help.

Say hello to Uwe. We are at NASA Glenn Research Center and we know him well.

aumuell commented 8 years ago

Closing as Stefan's suggestion of disabling CUDA seems to have helped.