the latest version of abinit dev does not compile with bigdft support on my Mac. The problem is 2fold:
1) there are 2 files called locreg.F90 and logReg.F90 (resp in init/ and linear/) - this is very bad form big dfters, and confuses my mac who doesn't really know if it should be case sensitive or not.
2) the default archiving order in libbigdft.a is incorrect and init/locreg.o should come after linear/locReg.o - most compilers appear to deal with this ok, but gfortran 4.5 on mac osx 10.6.8 does not. Perhaps the compilation flags are too picky:
Code: Select all
gfortran -I. -Imodules -I../src/modules -IPSolver -I./PSolver -I./wavelib -I./convolutions -I../libABINIT/src -ffree-form -g -ffree-line-length-none -Wstrict-aliasing=2 -fPIC -g -Wall -pedantic -march=native -funroll-loops -O3 -ffast-math -fgcse-lm -fgcse-sm -ffast-math -ftree-vectorize -fexternal-blas -fbounds-check -finit-integer=-666 -finit-real=zero -ffree-line-length-0 -O2 -mtune=native -march=native -mfpmath=sse -g -O2 -I/Users/mverstra/CODES/ABINIT/abinitrepository/6.15.0-private/tmp-gfortran/fallbacks/exports/include -c -o locreg.o `test -f 'init/locreg.f90' || echo './'`init/locreg.f90
Perhaps the mac ranlib is at fault, but no other code complains, and inverting the "ar" order fixes the problem...