ITK build Cmake (Gcc compiler) error - gcc

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.

Related

Clang error following 'make' when building project from github

I'm building a project from github (https://github.com/marsicoLab/PROmiRNA) and have the following requirements on my mac (Big Sur 11.4); gcc 9.4, cmake 3.21.1, R 4.1.0.
After using cmake, which runs without error, I use make however this gives me the below errors:
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Apple clang version 12.0.5 (clang-1205.0.22.9)
Target: x86_64-apple-darwin20.5.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
clang: note: diagnostic msg: Error generating preprocessed source(s).
make[2]: *** [CMakeFiles/PROmiRNA.dir/PROmiRNA.cpp.o] Error 254
make[1]: *** [CMakeFiles/PROmiRNA.dir/all] Error 2
make: *** [all] Error 2
A lot of other questions online with the same issue refer to XCode but I don't have it installed and am not a developer myself so don't think I need it..?
If anyone has any suggestions I'd really appreciate it, thanks :)

nvcc fatal : Unknown option 'pthread'

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.

Makefile:605 in caffe make

When I make caffe makefile with command make all -j4, there is an error on line 605 of makeprofile, Im not sure is there anything wrong or not, I didn't edit this line. It seem to be a wrong version of cuda? or for other reason...
error message:
NVCC src/caffe/layers/swish_layer.cu
NVCC src/caffe/layers/cudnn_lrn_layer.cu
NVCC src/caffe/layers/im2col_layer.cu
nvcc fatal : Option '--generate-code arch=-gencode', missing code
NVCC src/caffe/layers/dropout_layer.cu
nvcc fatal : Option '--generate-code arch=-gencode', missing code
nvcc fatal : Option '--generate-code arch=-gencode', missing code
Makefile:605: recipe for target '.build_release/cuda/src/caffe/layers/swish_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/swish_layer.o] Error 1
Makefile:605: recipe for target '.build_release/cuda/src/caffe/layers/cudnn_lrn_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/cudnn_lrn_layer.o] Error 1
nvcc fatal : Option '--generate-code arch=-gencode', missing code
Makefile:605: recipe for target '.build_release/cuda/src/caffe/layers/im2col_layer.o' failed
make: *** [.build_release/cuda/src/caffe/layers/im2col_layer.o] Error 1
environment:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.2 LTS
Release: 18.04
Codename: bionic
CUDA Version 10.0.130
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:07:56_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85

Why cannot find cudnn.h

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

Qt dependencies not found

I am trying to compile the bitcoin-core on my Mac and I want to use QT to develop the project also. Here is the instruction on GitHub:
https://github.com/bitcoin/bitcoin/blob/0.14/doc/build-osx.md
And I have set up my QT:
$ qmake --version
QMake version 3.0
Using Qt version 5.5.1 in /usr/local/Cellar/qt#5.5/5.5.1_1/lib
then when i run
./configure --with-gui
it throws the error below:
checking for Qt5Core Qt5Gui Qt5Network Qt5Widgets... no
checking for QtCore QtGui QtNetwork... no
configure: error: Qt dependencies not found
and i can't run ./src/qt in QT. It throws these error:
make[1]: *** No rule to make target `bitcoin_qt'. Stop.
make: *** [all] Error 2
11:24:14: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project bitocin (kit: Desktop)
When executing step "Make"
My English's bad, hope you could understand. Thank you for help!

Resources