Fortran could not compile .f90 files during 'make'
Posted: Fri Oct 06, 2017 12:43 am
Hi all,
I am attempting to install the latest version of ABINIT (8.4.4). After successfully linking the mkl libraries and configuring abinit, I run into an error during the 'make' procedure:
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc -m64 accepts -g... (cached) yes
checking for gcc -m64 option to accept ISO C89... (cached) none needed
checking whether gcc -m64 understands -c and -o together... (cached) yes
checking dependency style of gcc -m64... (cached) gcc3
checking for inline... inline
checking for ANSI C header files... (cached) yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking size of void*... 8
checking for sqrtf in -lm... yes
checking for cbrt in -lm... yes
checking for cbrtf in -lm... yes
checking for feenableexcept in -lm... yes
checking whether we are using the GNU Fortran compiler... no
checking whether ifort accepts -g... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
libtool.m4: error: problem compiling FC test program
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/x86_64-suse-linux/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 Fortran flag to compile .f90 files... unknown
configure: error: Fortran could not compile .f90 files
Makefile:766: recipe for target 'stamps/libxc-config-stamp' failed
make[3]: *** [stamps/libxc-config-stamp] Error 1
make[3]: Leaving directory '/home/ferris/ABINIT-8.4.4/abinit-8.4.4/fallbacks'
Makefile:731: recipe for target 'all-local' failed
make[2]: [all-local] Error 2 (ignored)
Checking build of libxc fallback
test -e stamps/libxc-install-stamp
Makefile:731: recipe for target 'all-local' failed
make[2]: *** [all-local] Error 1
make[2]: Leaving directory '/home/ferris/ABINIT-8.4.4/abinit-8.4.4/fallbacks'
Makefile:2457: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ferris/ABINIT-8.4.4/abinit-8.4.4'
Makefile:2385: recipe for target 'all' failed
make: *** [all] Error 2
Currently I have the following flags in my configuration file
Additionally you may find the config.log file attached.
Any help would be greatly appreciated.
Kind Regards,
Kaelyn Ferris
I am attempting to install the latest version of ABINIT (8.4.4). After successfully linking the mkl libraries and configuring abinit, I run into an error during the 'make' procedure:
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc -m64 accepts -g... (cached) yes
checking for gcc -m64 option to accept ISO C89... (cached) none needed
checking whether gcc -m64 understands -c and -o together... (cached) yes
checking dependency style of gcc -m64... (cached) gcc3
checking for inline... inline
checking for ANSI C header files... (cached) yes
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking size of void*... 8
checking for sqrtf in -lm... yes
checking for cbrt in -lm... yes
checking for cbrtf in -lm... yes
checking for feenableexcept in -lm... yes
checking whether we are using the GNU Fortran compiler... no
checking whether ifort accepts -g... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
libtool.m4: error: problem compiling FC test program
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/x86_64-suse-linux/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 Fortran flag to compile .f90 files... unknown
configure: error: Fortran could not compile .f90 files
Makefile:766: recipe for target 'stamps/libxc-config-stamp' failed
make[3]: *** [stamps/libxc-config-stamp] Error 1
make[3]: Leaving directory '/home/ferris/ABINIT-8.4.4/abinit-8.4.4/fallbacks'
Makefile:731: recipe for target 'all-local' failed
make[2]: [all-local] Error 2 (ignored)
Checking build of libxc fallback
test -e stamps/libxc-install-stamp
Makefile:731: recipe for target 'all-local' failed
make[2]: *** [all-local] Error 1
make[2]: Leaving directory '/home/ferris/ABINIT-8.4.4/abinit-8.4.4/fallbacks'
Makefile:2457: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ferris/ABINIT-8.4.4/abinit-8.4.4'
Makefile:2385: recipe for target 'all' failed
make: *** [all] Error 2
Currently I have the following flags in my configuration file
Code: Select all
enable_64bit_flags="yes"
enable_debug="verbose"
enable_optim="safe"
prefix="${HOME}/ABINIT"
enable_mpi="no"
with_fft_flavor="fftw3"
with_fft_incs="-I/opt/intel/composer_xe_2015.0.090/mkl/include -I/opt/intel/composer_xe_2015.0.090/mkl/include/fftw"
with_fft_libs="-L/opt/intel/composer_xe_2015.0.090/mkl/lib/intel64 -Wl,--start-group -lmkl_blas95_ilp64 -lmkl_lapack95_ilp64 -lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -Wl,--end-group -lpthread"
with_linalg_flavor="mkl"
with_linalg_incs="-I/opt/intel/composer_xe_2015.0.090/mkl/include -I/opt/intel/composer_xe_2015.0.090/mkl/include/intel64/ilp64"
with_linalg_libs="-L/opt/intel/composer_xe_2015.0.090/mkl/lib/intel64/ -Wl,--start-group -lmkl_intel_ilp64 -lmkl_sequential -lmkl_core -Wl,--end-group -lpthread"
with_dft_flavor="libxc-fallback"
Additionally you may find the config.log file attached.
Any help would be greatly appreciated.
Kind Regards,
Kaelyn Ferris