I am trying to install Abinit-7.8.2 on my MacBook Pro, running snow leopard (10.6.8), Intel core i7 processor. I'm using the gcc48 set of compilers, which I installed from macports. I am using the following config file:
Code: Select all
prefix="/usr/local"
with_trio_flavor="netcdf+etsf_io"
with_netcdf_incs="-I/opt/local/include"
with_netcdf_libs="-L/opt/local/lib -lnetcdf -lnetcdff"
with_etsf_io_incs="-I/opt/local/include/gcc"
with_etsf_io_libs="-L/opt/local/lib -letsf_io_low_level -letsf_io_utils -letsf_io"
with_fft_flavor="fftw3"
with_fft_incs="-I/usr/local/include"
with_fft_libs="-L/usr/local/lib -lfftw3f -lfftw3"
with_linalg_flavor="atlas"
with_linalg_libs="-L/opt/local/lib -llapack -lf77blas -lcblas -latlas"
with_libxc_incs="-I/opt/etsf/include"
with_libxc_libs="-L/opt/etsf/lib -lxc -lxcf90"
with_wannier90_bins="/opt/local/bin"
with_wannier90_incs="-I/opt/local/bin"
with_wannier90_libs="-L/opt/local/lib -lwannier"
with_dft_flavor="libxc+wannier90"
enable_64bit_flags="yes"
enable_shared
enable_optim="safe"
CC=/opt/local/bin/gcc-mp-4.8
CPP=/opt/local/bin/cpp-mp-4.8
FC=/opt/local/bin/gfortran-mp-4.8
FCCPP=/opt/local/bin/cpp-mp-4.8
Everything is fine during the configure step, but I receive the following error during make (I have attached the full make output in make.log):
Code: Select all
Undefined symbols for architecture x86_64:
"__gfortran_backtrace", referenced from:
___m_errors_MOD_show_backtrace in lib16_hideleave.a(m_errors.o)
___m_errors_MOD_msg_hndl in lib16_hideleave.a(m_errors.o)
"_dfftw_cleanup_", referenced from:
___m_fftw3_MOD_fftw3_cleanup in lib52_fft_mpi_noabirule.a(m_fftw3.o)
"_dfftw_destroy_plan_", referenced from:
___m_fftw3_MOD_fftw3_applypot_many in lib52_fft_mpi_noabirule.a(m_fftw3.o)
___m_fftw3_MOD_fftw3_mpiforw_manywf in lib52_fft_mpi_noabirule.a(m_fftw3.o)
___m_fftw3_MOD_fftw3_mpiback_manywf in lib52_fft_mpi_noabirule.a(m_fftw3.o)
___m_fftw3_MOD_fftw3_accrho in lib52_fft_mpi_noabirule.a(m_fftw3.o)
___m_fftw3_MOD_fftw3_applypot in lib52_fft_mpi_noabirule.a(m_fftw3.o)
___m_fftw3_MOD_fftw3_mpiforw in lib52_fft_mpi_noabirule.a(m_fftw3.o)
___m_fftw3_MOD_fftw3_mpiback in lib52_fft_mpi_noabirule.a(m_fftw3.o)
...
"_dfftw_execute_dft_", referenced from:
___m_fftw3_MOD_fftw3_applypot_many in lib52_fft_mpi_noabirule.a(m_fftw3.o)
___m_fftw3_MOD_fftw3_mpiforw_manywf in lib52_fft_mpi_noabirule.a(m_fftw3.o)
___m_fftw3_MOD_fftw3_mpiback_manywf in lib52_fft_mpi_noabirule.a(m_fftw3.o)
___m_fftw3_MOD_fftw3_accrho in lib52_fft_mpi_noabirule.a(m_fftw3.o)
___m_fftw3_MOD_fftw3_applypot in lib52_fft_mpi_noabirule.a(m_fftw3.o)
___m_fftw3_MOD_fftw3_mpiforw in lib52_fft_mpi_noabirule.a(m_fftw3.o)
___m_fftw3_MOD_fftw3_mpiback in lib52_fft_mpi_noabirule.a(m_fftw3.o)
"_dfftw_execute_dft_c2r_", referenced from:
___m_fftw3_MOD_fftw3_c2r_op in lib52_fft_mpi_noabirule.a(m_fftw3.o)
"_dfftw_execute_dft_r2c_", referenced from:
___m_fftw3_MOD_fftw3_r2c_op in lib52_fft_mpi_noabirule.a(m_fftw3.o)
"_dfftw_plan_many_dft_", referenced from:
___m_fftw3_MOD_zplan_many_dft in lib52_fft_mpi_noabirule.a(m_fftw3.o)
___m_fftw3_MOD_dplan_many_dft_1d in lib52_fft_mpi_noabirule.a(m_fftw3.o)
___m_fftw3_MOD_dplan_many_dft_2d.constprop.2 in lib52_fft_mpi_noabirule.a(m_fftw3.o)
"_dfftw_plan_many_dft_c2r_", referenced from:
___m_fftw3_MOD_dplan_many_dft_c2r.constprop.1 in lib52_fft_mpi_noabirule.a(m_fftw3.o)
"_dfftw_plan_many_dft_r2c_", referenced from:
___m_fftw3_MOD_dplan_many_dft_r2c.constprop.0 in lib52_fft_mpi_noabirule.a(m_fftw3.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[3]: *** [abinit] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
libfftw.a, libfftw.la, libfftw3.3.dylib, libfftw3.a, libfftw3.dylib, libfftw3.la, libfftw3f.3.dylib, libfftw3f.a, libfftw3f.dylib, libfftw3f.la, librfftw.a, and librfftw.la are all located in the /usr/local/lib directory (as I specified in the config file), so I'm not sure what's causing the linking error.
Any thoughts or suggestions would be greatly appreciated. For reference, I have also included the config.log.
Thanks!
Ellen