I am trying to install Elemental. I cloned it from the GitHub directory. Made a build directory and ran cmake command in it. But when I do a make, it shows the following error message:
[ 73%] Linking CUDA device code
CMakeFiles/EntrywiseMap.dir/cmake_device_link.o
nvcc fatal : Unknown option 'pthread'
tests/CMakeFiles/EntrywiseMap.dir/build.make:99: recipe for target
'tests/CMakeFiles/EntrywiseMap.dir/cmake_device_link.o' failed
make[2]: *** [tests/CMakeFiles/EntrywiseMap.dir/cmake_device_link.o]
Error 1
CMakeFiles/Makefile2:1506: recipe for target
'tests/CMakeFiles/EntrywiseMap.dir/all' failed
make[1]: *** [tests/CMakeFiles/EntrywiseMap.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
I am using ubuntu 18, with cuda 10 and cmake version 3.13.4
What's the version of Cmake? This issue seems to be on CMake 3.12 and fixed on CMake 3.13
For me moving to the newer version of CMake 3.14.0 helped get past the issue.
Related
During the installation of SUMO (https://github.com/eclipse/sumo) on Ubuntu 16.04 VBox I face an error when i want to build (when i use make i get an error):
[ 80%] Built target _libsumo
[ 80%] Linking CXX shared module ../../../../bin/liblibsumojni.so
/usr/lib/java/bin/javac: 1: /usr/lib/java/bin/javac: Syntax error: word unexpected (expecting ")")
src/libsumo/CMakeFiles/libsumojni.dir/build.make:147: recipe for target '../../bin/liblibsumojni.so' failed
make[2]: *** [../../bin/liblibsumojni.so] Error 2
make[2]: *** Deleting file '../../bin/liblibsumojni.so'
CMakeFiles/Makefile2:1484: recipe for target 'src/libsumo/CMakeFiles/libsumojni.dir/all' failed
make[1]: *** [src/libsumo/CMakeFiles/libsumojni.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
Any suggestions please ?
Thank you!
It is probably a problem with your java version. Unless you really need those Java bindings you can simply disable them when calling cmake like this:
cmake -DENABLE_JAVA_BINDINGS=OFF ../..
(this assumes you have a build dir like build/cmake-build as in the docs).
I installed the cudnn 7.1.2 by anaconda, and then install the coffe2 via anaconda following https://caffe2.ai/docs/getting-started.html?platform=mac&configuration=prebuilt ,but it reports that cannot find cudnn.h.
The error reports are:
In file included from /home/wangqm/anaconda3/conda-bld/caffe2-cuda9.0-cudnn7_1530109091069/work/caffe2/operators/depthwise_3x3_conv_op.cu:1:0:
/home/wangqm/anaconda3/conda-bld/caffe2-cuda9.0-cudnn7_1530109091069/work/caffe2/core/common_cudnn.h:7:19: fatal error: cudnn.h: No such file or directory
compilation terminated.
CMake Error at caffe2_gpu_generated_depthwise_3x3_conv_op.cu.o.Release.cmake:219 (message):
Error generating
/home/wangqm/anaconda3/conda-bld/caffe2-cuda9.0-cudnn7_1530109091069/work/build/caffe2/CMakeFiles/caffe2_gpu.dir/operators/./caffe2_gpu_generated_depthwise_3x3_conv_op.cu.o
caffe2/CMakeFiles/caffe2_gpu.dir/build.make:252: recipe for target 'caffe2/CMakeFiles/caffe2_gpu.dir/operators/caffe2_gpu_generated_depthwise_3x3_conv_op.cu.o' failed
make[2]: *** [caffe2/CMakeFiles/caffe2_gpu.dir/operators/caffe2_gpu_generated_depthwise_3x3_conv_op.cu.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CMakeFiles/Makefile2:1458: recipe for target 'caffe2/CMakeFiles/caffe2_gpu.dir/all' failed
make[1]: *** [caffe2/CMakeFiles/caffe2_gpu.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
I'm no Caffe2 expert, but this error means that you do not have the CUDNN library installed.
This means that you are trying to use the CUDA enabled Caffe framework and will want to install CUDA (probably version 9+) with the associated CUDNN libraries.
https://docs.nvidia.com/cuda/cuda-installation-guide-mac-os-x/index.html
I'm getting this error when I try to install VTK.
CMake Error at CMake/ExternalData.cmake:1005 (message):
Object MD5=66006f09007bd56bde48a899d4cebd47 not found at:
http://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=66006f09007bd56bde48a899d4cebd47&algorithm=MD5 (wrong hash MD5=a0a85923331d4faa2ba6ff130a19d946)
http://www.vtk.org/files/ExternalData/MD5/66006f09007bd56bde48a899d4cebd47 ("Timeout was reached")
Call Stack (most recent call first):
CMake/ExternalData.cmake:1027 (_ExternalData_download_object)
CMakeFiles/VTKData.dir/build.make:8742: recipe for target 'ExternalData/Domains/Chemistry/Testing/Data/Baseline/TestVASPAnimationReader.png.md5-stamp' failed
make[2]: [ExternalData/Domains/Chemistry/Testing/Data/Baseline/TestVASPAnimationReader.png.md5-stamp] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/VTKData.dir/all' failed
make[1]: [CMakeFiles/VTKData.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: * [all] Error 2**
Here's what I did:
I unzipped my VTK downloaded files into a folder VTK
cd VTK
ccmake .
After configuring and generating in ccmake
make
The command executes for a while and then the above error shows. How do I fix this?
When I try to build Artery on Ubuntu 16.04. the following happens after invoking
$ cmake --build /home/hardt/Veins/artery-master/build
[ 23%] Linking CXX shared library libartery.so
/usr/bin/ld: /usr/local/lib/libvanetza_btp.a(data_request.cpp.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared
object; recompile with -fPIC
/usr/local/lib/libvanetza_btp.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
src/artery/CMakeFiles/artery.dir/build.make:954: recipe for target'src/artery/libartery.so' failed
make[2]: *** [src/artery/libartery.so] Error 1
CMakeFiles/Makefile2:229: recipe for target 'src/artery/CMakeFiles/artery.dir/all' failed
make[1]: *** [src/artery/CMakeFiles/artery.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
As I am not all that familiar with building source on Unix systems I am not quite sure how to deal with this error.
I am using cmake version 3.9.3, boost 1.65.1 and crypto++ 5.6.4 the geographiclib built without error as well.
As one can read in the comments, the problem is solved.
The path to the vanetza directory VANETZA_DIR in the cmake configuration was wrong. Correcting this via ccmake solved the problem.
Trying to compile ITK software using Cmake on a Linux system. Build fails after 39% complete with following error:
"make[2]: * [Wrapping/Generators/GccXML/llvm-prefix/src/llvm-stamp/llvm-configure] Error 1
make[1]: * [Wrapping/Generators/GccXML/CMakeFiles/llvm.dir/all] Error 2
make: *** [all] Error 2"
Help?
Also mentions that gcc needs to be version 4.7 or higher, but system has 4.8 installed.