How to solve the following error during the GEANT4 installation on MacOS? - installation

I encountered the following error during the installation of the GEANT4 software after entering the command "make -j4":
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [BuildProducts/lib/libG4interfaces.dylib] Error 1
make[1]: *** [source/CMakeFiles/G4interfaces.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 15%] Built target G4particles
[ 23%] Built target G4geometry
make: *** [all] Error 2```
I tried "make -j4 -v" as it asks me to, which gave me the following output:
GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for i386-apple-darwin11.3.0

Related

VLC 3.0.12/3.0.14 once command source build fails on macOS

Running mac osx 10.14.6 and have previously successfully built 3.0.10 and 3.0.11. Trying to build VLC 3.0.12 & 3.0.14 from source downloaded from here: http://www.videolan.org/vlc/download-sources.html
and using recommended build from here: https://wiki.videolan.org/MacOSCompile/ AND using the recommended:
../extras/package/macosx/build.sh -c
Build runs for about 20 minutes and then stops here (snip of output):
CCLD libprefetch_plugin.la
CCLD libhds_plugin.la
CCLD librecord_plugin.la
ld: library not found for -lzstd
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [libarchive_plugin.la] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
mysystem:build xx$
What am I missing or doing wrong?
Note: in previous builds I could find a cmake/Utilities/cmzstd/lib directory in vlc-3.0.x/extras/tools that had various zstd files however it is not there in either 3.0.12 or 3.0.14 - only a cmake-enable-ALPN-support-on-macOS-109.14.patch file.
Where do I find zstd? Thanks.
Seems the issue is related to how macOS and packagers (homebrew, etc.) load components. macOS provides a compiled version of libarchive but no headers, so you are unable in trying to compile. You will either need to pass the location of your libarchive respository with headers via your build script or set an environment variable telling the compiler or linker where to look for them. Perhaps someone more familiar with your VLC package can weigh in.

how to install gdb 9.1 on debian from source code

I like to compile and use gdb 9.1. the source is here https://ftp.gnu.org/gnu/gdb/
Plus when I type make in config directory make says make: *** No targets specified and no makefile found. Stop. because there is not make file. on root folder there are Makefile.in and Makefile.tpl and Makefile.def. what are these files. and how can I install gdb 9 from source code.
Update
After the comment changes I made in command by G.M I am getting this error I think almost at the end of compiling process
mv GDBvn.new GDBvn.texi
/home/fawad/Desktop/gdb/gdb/gdb-9.1.1/missing makeinfo --split-size=5000000 --split-size=5000000 -I /home/fawad/Desktop/gdb/gdb
/gdb-9.1.1/gdb/doc/../../readline/readline/doc -I /home/fawad/Desktop
/gdb/gdb/gdb-9.1.1/gdb/doc/../mi -I /home/fawad/Desktop/gdb/gdb/gdb-9.1.1/gdb/doc
-o gdb.info /home/fawad/Desktop/gdb/gdb/gdb-9.1.1/gdb/doc/gdb.texinfo
/home/fawad/Desktop/gdb/gdb/gdb-9.1.1/missing: 81: makeinfo: not found
WARNING: 'makeinfo' is missing on your system.
You should only need it if you modified a '.texi' file, or
any other file indirectly affecting the aspect of the manual.
You might want to install the Texinfo package:
http://www.gnu.org/software/texinfo/
The spurious makeinfo call might also be the consequence of
using a buggy 'make' (AIX, DU, IRIX), in which case you might
want to install GNU make:
http://www.gnu.org/software/make/
make[4]: *** [Makefile:490: gdb.info] Error 127
make[4]: Leaving directory '/home/fawad/Desktop/gdb/gdb/gdb-9.1/build/build/gdb/doc'
make[3]: *** [Makefile:2010: subdir_do] Error 1
make[3]: Leaving directory '/home/fawad/Desktop/gdb/gdb/gdb-9.1/build/build/gdb'
make[2]: *** [Makefile:1655: all] Error 2
make[2]: Leaving directory '/home/fawad/Desktop/gdb/gdb/gdb-9.1/build/build/gdb'
make[1]: *** [Makefile:9564: all-gdb] Error 2
make[1]: Leaving directory '/home/fawad/Desktop/gdb/gdb/gdb-9.1/build/build'
make: *** [Makefile:852: all] Error 2

libtool is installed but build cannot find it

I'm trying to build OpenSSL on macOS for iOS 11. The make command fails with "libtool not found error".
I've checked the output of which command for libtool and result is as expected:
[Amy-MacBook-Pro-3:openssl-fips-ecp-2.0.12 $ which libtool
/usr/bin/libtool
PATH variable shows /usr/bin listed:
[Amy-MacBook-Pro-3:openssl-fips-ecp-2.0.12 $ echo $PATH
/usr/bin:/usr/local/bin:/usr/bin:/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
This is the error:
clang: error: no such file or directory: 'libtool'
make[2]: *** [../libcrypto.a] Error 1
make[1]: *** [all] Error 2
make: *** [build_fips] Error 1
I listed the version of libtool below:
[Amy-MacBook-Pro-3:openssl-fips-ecp-2.0.12 $ libtool --version
libtool (GNU libtool) 2.4.4
Written by Gordon Matzigkeit, 1996
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
I fixed this by doing the following:
export PATH="/Library/Developer/CommandLineTools/usr/bin":$PATH

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

Compile py-fast-rcnn using Cmake and met "Link error" when "make runtest"

Linking CXX executable ../../../test/test.testbin
CMakeFiles/test.testbin.dir/test_benchmark.cpp.o: In function `void boost::this_thread::sleep<boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000l> >(boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000l> const&)':
test_benchmark.cpp:(.text._ZN5boost11this_thread5sleepINS_9date_time18subsecond_durationINS_10posix_time13time_durationELl1000EEEEEvRKT_[_ZN5boost11this_thread5sleepINS_9date_time18subsecond_durationINS_10posix_time13time_durationELl1000EEEEEvRKT_]+0x27d): undefined reference to `boost::this_thread::hidden::sleep_until(timespec const&)'
collect2: error: ld returned 1 exit status
make[3]: *** [test/test.testbin] Error 1
make[2]: *** [src/caffe/test/CMakeFiles/test.testbin.dir/all] Error 2
make[1]: *** [src/caffe/test/CMakeFiles/runtest.dir/rule] Error 2
make: *** [runtest] Error 2
[rbao#ml-01 build]$ gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This error appears at the last steps of Cmake compilation for py-fast-rcnn when I "make runtest". It looks like a linker problem but I don't know how to fix it. My guess is the version of gcc boost may be incompatible.
I solved this problem by remove the Anaconda, seems Anaconda has some disruption upon my manually set dependencies.

Resources