GALPROP https://galprop.stanford.edu/forum/ |
|
compile error in galprop v54 https://galprop.stanford.edu/forum/viewtopic.php?f=6&t=252 |
Page 1 of 1 |
Author: | Yan-Ping [ Mon Apr 08, 2019 12:45 am ] |
Post subject: | compile error in galprop v54 |
Hi galprop group: I have installed all the dependency package, then i followed the steps: step1: Code: autoreconf -i -v -f step:2 Code: ./configure F77=ifort CXX=g++ --with-healpix=/home/congyanping/Software/healpix/Healpix_311/src/cxx/generic_gcc --prefix=/home/congyanping/Software/galprop --with-galdef=/home/congyanping/Software/galprop/GALDEF --with-fitsdata=/home/congyanping/Software/galprop/fitsdata --datadir=/home/congyanping/Software/galprop/fortran_datadir --enable-openmp Quote: checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... gcc3 checking dependency style of gcc... gcc3 checking for ar... ar checking the archiver (ar) interface... ar checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking whether we are using the GNU Fortran 77 compiler... no checking whether ifort accepts -g... no checking for gfortran... gfortran checking whether we are using the GNU Fortran compiler... yes checking whether gfortran accepts -g... yes checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for fgrep... /bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking the maximum length of command line arguments... 1572864 checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /bin/dd checking how to truncate binary pipes... /bin/dd bs=4096 count=1 checking for mt... mt checking if mt is a manifest tool... no checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... yes checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld -m elf_x86_64 checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for ifort option to produce PIC... -fPIC checking if ifort PIC flag -fPIC works... no checking if ifort static flag -static works... no checking if ifort supports -c -o file.o... no checking if ifort supports -c -o file.o... (cached) no checking whether the ifort linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... yes checking for gfortran option to produce PIC... -fPIC checking if gfortran PIC flag -fPIC works... yes checking if gfortran static flag -static works... yes checking if gfortran supports -c -o file.o... yes checking if gfortran supports -c -o file.o... (cached) yes checking whether the gfortran linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for ANSI C header files... (cached) yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required checking signal.h usability... yes checking signal.h presence... yes checking for signal.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking for size_t... yes checking for working alloca.h... yes checking for alloca... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for pid_t... yes checking for size_t... (cached) yes checking whether time.h and sys/time.h may both be included... yes checking size of void*... 8 checking for uint32_t... yes checking for uint64_t... yes checking size of unsigned int... 4 checking size of unsigned long... 8 checking size of unsigned long long... 8 checking whether gcc needs -traditional... no checking whether lstat correctly handles trailing slash... yes checking whether stat accepts an empty string... no checking for log... no checking for exp... no checking for pow... no checking for sqrt... no checking whether the compiler accepts the __m128d type... yes configure: Architecture specific code: *************************** This is a x86_64 processor: vectorial code: yes *************************** configure: Using CXXFLAGS="-g -pipe -O3 -Wall" configure: Using FFLAGS="-g -O3 -xhost -no-ipo -parallel -gcc -Wall" checking how to get verbose linking output from ifort... configure: WARNING: compilation failed checking for Fortran 77 libraries of ifort... checking for dummy main to link with Fortran 77 libraries... none checking for Fortran 77 name-mangling scheme... configure: error: in `/home/congyanping/Software/galprop': configure: error: cannot compile a simple Fortran program See `config.log' for more details Code: make Quote: In file included from /usr/include/c++/7/iostream:39:0, from Distribution.h:13, from galprop_classes.h:12, from read_gcr.cc:6: /usr/include/c++/7/ostream:502:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, char) operator<<(basic_ostream<_CharT, _Traits>& __out, char __c) ^~~~~~~~ /usr/include/c++/7/ostream:502:5: note: template argument deduction/substitution failed: read_gcr.cc:60:47: note: cannot convert ‘infile’ (type ‘std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}’) to type ‘char’ cout<<" reading nuclei array from file "<<infile<<endl; ^~~~~~ In file included from /usr/include/c++/7/iostream:39:0, from Distribution.h:13, from galprop_classes.h:12, from read_gcr.cc:6: /usr/include/c++/7/ostream:497:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, _CharT) operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c) ^~~~~~~~ /usr/include/c++/7/ostream:497:5: note: template argument deduction/substitution failed: read_gcr.cc:60:47: note: deduced conflicting types for parameter ‘_CharT’ (‘char’ and ‘std::__cxx11::basic_ostringstream<char>’) cout<<" reading nuclei array from file "<<infile<<endl; ^~~~~~ In file included from /usr/include/c++/7/bits/ios_base.h:46:0, from /usr/include/c++/7/ios:42, from /usr/include/c++/7/ostream:38, from /usr/include/c++/7/iostream:39, from Distribution.h:13, from galprop_classes.h:12, from read_gcr.cc:6: /usr/include/c++/7/system_error:217:5: note: candidate: template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::error_code&) operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e) ^~~~~~~~ /usr/include/c++/7/system_error:217:5: note: template argument deduction/substitution failed: read_gcr.cc:60:47: note: cannot convert ‘infile’ (type ‘std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}’) to type ‘const std::error_code&’ cout<<" reading nuclei array from file "<<infile<<endl; ^~~~~~ In file included from /usr/include/c++/7/string:52:0, from Configure.h:9, from galprop_classes.h:9, from read_gcr.cc:6: /usr/include/c++/7/bits/basic_string.h:6275:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&) operator<<(basic_ostream<_CharT, _Traits>& __os, ^~~~~~~~ /usr/include/c++/7/bits/basic_string.h:6275:5: note: template argument deduction/substitution failed: read_gcr.cc:60:47: note: ‘std::ostringstream {aka std::__cxx11::basic_ostringstream<char>}’ is not derived from ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ cout<<" reading nuclei array from file "<<infile<<endl; ^~~~~~ read_gcr.cc:25:15: warning: unused variable ‘ii’ [-Wunused-variable] int status, ii, jj; ^~ read_gcr.cc:25:19: warning: unused variable ‘jj’ [-Wunused-variable] int status, ii, jj; ^~ read_gcr.cc:26:43: warning: unused variable ‘exposure’ [-Wunused-variable] long fpixel = 1, naxis = 4, nelements, exposure; ^~~~~~~~ Makefile:1066: recipe for target 'read_gcr.o' failed make[2]: *** [read_gcr.o] Error 1 make[2]: leave the directory“/home/congyanping/Software/galprop/source” Makefile:734: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: leave the directory“/home/congyanping/Software/galprop” Makefile:594: recipe for target 'all' failed make: *** [all] Error 2 any help would be appreciated sincerely YP |
Page 1 of 1 | All times are UTC - 8 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |