help to compile Abinit on MAC OX Snow Leopard  [SOLVED]

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
lorenzodona
Posts: 36
Joined: Tue May 14, 2013 12:04 am

help to compile Abinit on MAC OX Snow Leopard

Post by lorenzodona » Tue May 14, 2013 12:20 am

Good evening my name is Lorenzo Donà, I am a stundent in chemistry.Excuse me for my English not so good,but I have a problem to compile Abinit.
I downloaded abinit-7.2.1 and I tryede to compile it whit my Mac Book Pro:
I typed from terminal:./configure: a lots of outputs.....and at the end:
configure complete
and after I typed make a lots of outup and a lots of errors:

Code: Select all

MacBook-Pro-di-Lorenzo-Dona:~ lorenzodona$ cd /Users/lorenzodona/Desktop/abinit-7.2.1/
MacBook-Pro-di-Lorenzo-Dona:abinit-7.2.1 lorenzodona$ ./configure

 ==============================================================================
 === Overall startup                                                        ===
 ==============================================================================

checking build system type... i386-apple-darwin10.8.0
checking host system type... i386-apple-darwin10.8.0
checking target system type... i386-apple-darwin10.8.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/gnu/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... (cached) awk
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
configure: fixing wrong path to mkdir replacement
configure: not loading options (no config file available)

 ==============================================================================
 === Build-system information                                               ===
 ==============================================================================

configure: ABINIT version 7.2.1
configure: M4 010416 - Autoconf 026800 - Automake 011100 - Libtool 020204
configure: reporting user interface changes:
configure:  * --enable-mpi has been modified
configure:    (changed default value to no)
configure:    please check that --enable-mpi="no" is OK for you
configure:  * --enable-mpi-io has been modified
configure:    (changed default value to no)
configure:    please check that --enable-mpi-io="no" is OK for you
configure:  * new option --with-libpspio-incs is available
configure:  * new option --with-libpspio-libs is available
configure:  * --with-trio-flavor has been modified
configure:    (changed permitted values (added 'libpspio'))
configure:    please check that --with-trio-flavor="netcdf+etsf_io" is OK for you

 ==============================================================================
 === Option consistency checking                                            ===
 ==============================================================================

configure: checking consistency of library-related options
configure:  |---> all OK
configure:
configure: checking consistency of experimental options
configure:  |---> all OK
configure:
configure: checking consistency of maintainer options
configure:  |---> all OK
configure:
configure: parsing command-line options

 ==============================================================================
 === Multicore architecture startup                                         ===
 ==============================================================================

configure: MPI support disabled
configure: GPU support disabled from command-line

 ==============================================================================
 === Utilities                                                              ===
 ==============================================================================

checking for sh... /bin/sh
checking for mv... /bin/mv
checking for perl... /usr/bin/perl
checking for rm... /bin/rm
checking for patch... patch
checking for tar... tar

 ==============================================================================
 === C support                                                              ===
 ==============================================================================

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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking which type of compiler we have... gnu
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 whether byte ordering is bigendian... no

 ==============================================================================
 === C++ support                                                            ===
 ==============================================================================

checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking which type of C++ compiler we have... gnu (dot

 ==============================================================================
 === Fortran support                                                        ===
 ==============================================================================

checking for gfortran... gfortran
checking whether we are using the GNU Fortran compiler... yes
checking whether gfortran accepts -g... yes
checking which type of Fortran compiler we have... gnu 4.6
checking fortran 90 modules extension... mod
checking for Fortran flag to compile .F90 files... none
configure: determining Fortran module case
checking whether Fortran modules are upper-case... yes
checking how to get verbose linking output from gfortran... -v
checking for Fortran libraries of gfortran...  -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin11/4.6.2 -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin11/4.6.2/../../.. -lgfortran -lquadmath -lm
checking for dummy main to link with Fortran libraries... none
checking for Fortran name-mangling scheme... lower case, underscore, no extra underscore

 ==============================================================================
 === Python support                                                         ===
 ==============================================================================

checking for python... python
checking for Python CPPFLAGS... -I/System/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -I/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/numpy/core/include
checking for bzr... bzr
checking Python.h usability... yes
checking Python.h presence... yes
checking for Python.h... yes
checking for numpy/arrayobject.h... yes

 ==============================================================================
 === Libraries and linking                                                  ===
 ==============================================================================

checking for ar... ar
checking for ranlib... ranlib

 ==============================================================================
 === Hints                                                                  ===
 ==============================================================================

checking for cpp... cpp
checking for a true C preprocessor... cpp
checking which cpp hints to apply... default/default/default
checking which cc hints to apply... gnu/default/default
checking which xpp hints to apply... none/none/none
checking which cxx hints to apply... gnu/default/default
checking which fpp hints to apply... default/default/default
checking which fc hints to apply... gnu/default/default
checking which ar hints to apply... none/none/none
checking which Fortran preprocessor to use...
checking which Fortran preprocessor flags to apply...
checking whether to wrap Fortran compiler calls... no

 ==============================================================================
 === Debugging                                                              ===
 ==============================================================================

checking debugging status... enabled (profile mode: basic)
configure: setting C debug flags to '-g'
configure: setting C++ debug flags to '-g'
configure: setting Fortran debug flags to '-g'
checking whether to activate debug mode in source files... no
checking which cc debug flags to apply... gnu/default/default
checking which cxx debug flags to apply... none/none/none
checking which fc debug flags to apply... gnu/default/default
checking whether to activate design-by-contract debugging... no

 ==============================================================================
 === Optimizations                                                          ===
 ==============================================================================

checking optimization status... enabled (profile mode: standard)
checking which cc optimizations to apply... gnu/default/default
checking which cxx optimizations to apply... gnu/default/default
checking which fc optimizations to apply... gnu/default/default
checking whether to apply per-directory optimizations... yes

 ==============================================================================
 === 64-bit support                                                         ===
 ==============================================================================

checking for a 64-bit architecture...
checking whether to use 64-bit flags... no
checking for user-defined 64-bit flags...

 ==============================================================================
 === Build flags                                                            ===
 ==============================================================================

configure: WARNING: apple is not able to handle full link information
configure: WARNING: static builds will fail

 ==============================================================================
 === Advanced compiler features                                             ===
 ==============================================================================

checking stddef.h usability... no
checking stddef.h presence... yes
configure: WARNING: stddef.h: present but cannot be compiled
configure: WARNING: stddef.h:     check for missing prerequisite headers?
configure: WARNING: stddef.h: see the Autoconf documentation
configure: WARNING: stddef.h:     section "Present But Cannot Be Compiled"
configure: WARNING: stddef.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------- ##
configure: WARNING:     ## Report this to https://bugs.launchpad.net/abinit/ ##
configure: WARNING:     ## ------------------------------------------------- ##
checking for stddef.h... no
checking stdarg.h usability... no
checking stdarg.h presence... yes
configure: WARNING: stdarg.h: present but cannot be compiled
configure: WARNING: stdarg.h:     check for missing prerequisite headers?
configure: WARNING: stdarg.h: see the Autoconf documentation
configure: WARNING: stdarg.h:     section "Present But Cannot Be Compiled"
configure: WARNING: stdarg.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------- ##
configure: WARNING:     ## Report this to https://bugs.launchpad.net/abinit/ ##
configure: WARNING:     ## ------------------------------------------------- ##
checking for stdarg.h... no
checking stdio.h usability... no
checking stdio.h presence... yes
configure: WARNING: stdio.h: present but cannot be compiled
configure: WARNING: stdio.h:     check for missing prerequisite headers?
configure: WARNING: stdio.h: see the Autoconf documentation
configure: WARNING: stdio.h:     section "Present But Cannot Be Compiled"
configure: WARNING: stdio.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------- ##
configure: WARNING:     ## Report this to https://bugs.launchpad.net/abinit/ ##
configure: WARNING:     ## ------------------------------------------------- ##
checking for stdio.h... no
checking math.h usability... no
checking math.h presence... yes
configure: WARNING: math.h: present but cannot be compiled
configure: WARNING: math.h:     check for missing prerequisite headers?
configure: WARNING: math.h: see the Autoconf documentation
configure: WARNING: math.h:     section "Present But Cannot Be Compiled"
configure: WARNING: math.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------- ##
configure: WARNING:     ## Report this to https://bugs.launchpad.net/abinit/ ##
configure: WARNING:     ## ------------------------------------------------- ##
checking for math.h... no
checking termios.h usability... no
checking termios.h presence... yes
configure: WARNING: termios.h: present but cannot be compiled
configure: WARNING: termios.h:     check for missing prerequisite headers?
configure: WARNING: termios.h: see the Autoconf documentation
configure: WARNING: termios.h:     section "Present But Cannot Be Compiled"
configure: WARNING: termios.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------- ##
configure: WARNING:     ## Report this to https://bugs.launchpad.net/abinit/ ##
configure: WARNING:     ## ------------------------------------------------- ##
checking for termios.h... no
checking errno.h usability... no
checking errno.h presence... yes
configure: WARNING: errno.h: present but cannot be compiled
configure: WARNING: errno.h:     check for missing prerequisite headers?
configure: WARNING: errno.h: see the Autoconf documentation
configure: WARNING: errno.h:     section "Present But Cannot Be Compiled"
configure: WARNING: errno.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------- ##
configure: WARNING:     ## Report this to https://bugs.launchpad.net/abinit/ ##
configure: WARNING:     ## ------------------------------------------------- ##
checking for errno.h... no
checking malloc.h usability... no
checking malloc.h presence... no
checking for malloc.h... no
checking sys/malloc.h usability... no
checking sys/malloc.h presence... yes
configure: WARNING: sys/malloc.h: present but cannot be compiled
configure: WARNING: sys/malloc.h:     check for missing prerequisite headers?
configure: WARNING: sys/malloc.h: see the Autoconf documentation
configure: WARNING: sys/malloc.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/malloc.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------- ##
configure: WARNING:     ## Report this to https://bugs.launchpad.net/abinit/ ##
configure: WARNING:     ## ------------------------------------------------- ##
checking for sys/malloc.h... no
checking mcheck.h usability... no
checking mcheck.h presence... no
checking for mcheck.h... no
checking sys/time.h usability... no
checking sys/time.h presence... yes
configure: WARNING: sys/time.h: present but cannot be compiled
configure: WARNING: sys/time.h:     check for missing prerequisite headers?
configure: WARNING: sys/time.h: see the Autoconf documentation
configure: WARNING: sys/time.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/time.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------- ##
configure: WARNING:     ## Report this to https://bugs.launchpad.net/abinit/ ##
configure: WARNING:     ## ------------------------------------------------- ##
checking for sys/time.h... no
checking sys/resource.h usability... no
checking sys/resource.h presence... yes
configure: WARNING: sys/resource.h: present but cannot be compiled
configure: WARNING: sys/resource.h:     check for missing prerequisite headers?
configure: WARNING: sys/resource.h: see the Autoconf documentation
configure: WARNING: sys/resource.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/resource.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------- ##
configure: WARNING:     ## Report this to https://bugs.launchpad.net/abinit/ ##
configure: WARNING:     ## ------------------------------------------------- ##
checking for sys/resource.h... no
checking for abort... no
checking for mallinfo... no
checking size of char... 0
checking size of short... 0
checking size of int... 0
checking size of long... 0
checking size of long long... 0
checking size of unsigned int... 0
checking size of unsigned long... 0
checking size of unsigned long long... 0
checking size of float... 0
checking size of double... 0
checking size of long double... 0
checking size of size_t... 0
checking size of ptrdiff_t... 0
checking for an ANSI C-conforming const... no
checking for size_t... no
checking whether the Fortran compiler supports EXECUTE_COMMAND_LINE... yes
checking whether the Fortran compiler accepts the CONTIGUOUS attribute... yes
checking whether the Fortran compiler supports allocatable arrays in datatypes... yes
checking whether the Fortran compiler supports IOMSG... yes
checking whether the Fortran compiler provides the iso_c_binding module... yes
checking whether the Fortran compiler accepts exit()... yes
checking whether the Fortran compiler accepts flush()... yes
checking whether the Fortran compiler accepts flush_()... no
checking whether the Fortran compiler accepts gamma()... yes
checking whether the Fortran compiler accepts getenv()... yes
checking whether the Fortran compiler accepts getpid()... no
checking whether the Fortran compiler accepts the null() intrinsic... yes
checking whether the Fortran compiler accepts quadruple integers... yes
checking whether the Fortran compiler accepts long lines... yes
checking whether the Fortran compiler supports stream IO... yes
checking whether the Fortran compiler accepts cpu_time()... yes
checking whether the Fortran compiler accepts etime()... no
checking whether to use C clock for timings... no

 ==============================================================================
 === Multicore architecture support                                         ===
 ==============================================================================

checking whether to enable OpenMP support... no
checking whether to build MPI code... no
checking whether to activate GPU support... no

 ==============================================================================
 === Connectors / Fallbacks                                                 ===
 ==============================================================================

checking for the requested transferable I/O support... netcdf+etsf_io
checking whether to select a fallback for netcdf... no
checking netcdf.h usability... no
checking netcdf.h presence... no
checking for netcdf.h... no
checking for library containing nc_open... no
checking for Fortran module includes... unknown
configure: WARNING: falling back to internal netcdf version
checking whether to select a fallback for etsf_io... no
configure: WARNING: ETSF_IO requires missing NetCDF support
configure: WARNING: falling back to internal etsf_io version
checking for the actual transferable I/O support... netcdf-fallback+etsf_io-fallback
checking for the requested timer support... abinit
checking time.h usability... no
checking time.h presence... yes
configure: WARNING: time.h: present but cannot be compiled
configure: WARNING: time.h:     check for missing prerequisite headers?
configure: WARNING: time.h: see the Autoconf documentation
configure: WARNING: time.h:     section "Present But Cannot Be Compiled"
configure: WARNING: time.h: proceeding with the compiler's result
configure: WARNING:     ## ------------------------------------------------- ##
configure: WARNING:     ## Report this to https://bugs.launchpad.net/abinit/ ##
configure: WARNING:     ## ------------------------------------------------- ##
checking for time.h... no
checking for clock_gettime in -lrt... no
checking for clock_gettime... no
checking for the actual timer support... abinit
checking for the requested linear algebra support... netlib
checking whether to select a fallback for linear algebra... no
checking for AXPBY support in specified BLAS libraries... no
checking for gemm3m in specified libraries... no
checking for library containing zgemm... -lblas
checking for library containing zhpev... -llapack
checking whether we have a serial linear algebra support... yes
checking whether we have a MPI linear algebra support... no
checking whether we have a GPU linear algebra support... no
checking for the actual linear algebra support... netlib
checking for the requested algorithmic support... none
checking for the actual algorithmic support... none
checking for the requested math support... none
checking for the actual math support... none
checking for the requested FFT support... none
checking for the actual FFT support... none
checking for the requested DFT support... atompaw+bigdft+libxc+wannier90
checking whether to select a fallback for libxc... no
checking xc.h usability... no
checking xc.h presence... no
checking for xc.h... no
checking xc_funcs.h usability... no
checking xc_funcs.h presence... no
checking for xc_funcs.h... no
checking for library containing xc_func_init... no
checking for Fortran module includes... unknown
configure: WARNING: falling back to internal libxc version
checking whether to select a fallback for atompaw... no
configure: WARNING: AtomPAW requires missing LibXC support
configure: WARNING: falling back to internal atompaw version
checking whether to select a fallback for bigdft... no
configure: WARNING: BigDFT requires missing LibXC support
configure: WARNING: falling back to internal bigdft version
checking whether to select a fallback for wannier90... no
checking for wannier.x... no
checking for wannier90.x... no
checking for library containing wannier_run... no
configure: WARNING: falling back to internal wannier90 version
checking for the actual DFT support... libxc-fallback+atompaw-fallback+bigdft-fallback+wannier90-fallback
configure: fallbacks to enable => atompaw bigdft etsf_io libxc netcdf wannier90
checking whether to build atompaw... yes
checking whether to build bigdft... yes
checking whether to build etsf_io... yes
checking whether to build fox... no
checking whether to build libxc... yes
checking whether to build linalg... no
checking whether to build netcdf... yes
checking whether to build wannier90... yes
configure: using tarball repository /Users/lorenzodona/.abinit/tarballs

 ==============================================================================
 === Experimental developments and option triggers                          ===
 ==============================================================================

checking whether to accelerate 'make check'... no
checking whether to reduce 'make check' for packaging... no
checking whether to activate maintainer checks... no
configure: setting triggers associated to command-line options
checking whether to activate support for bindings (EXPERIMENTAL)... no
checking whether to activate Bethe-Salpeter unpacking (EXPERIMENTAL)... no
checking whether to enable the Abinit C library (EXPERIMENTAL)... no
checking whether to enable the use of internal timer for developments... no
checking whether to activate build of exported libraries (EXPERIMENTAL)... no
checking whether to activate double-precision GW calculations (EXPERIMENTAL)... no
checking whether to enable build of macroave (EXPERIMENTAL)... yes
configure: triggering the 'DO_BUILD_01_MACROAVNEW_EXT' conditional
configure: triggering the 'DO_BUILD_MACROAVE' conditional
configure: defining the 'USE_MACROAVE' preprocessing macro
checking whether to enable memory profiling...
checking whether to activate support for MPI_IN_PLACE... no
checking whether to activate support for OpenMP (EXPERIMENTAL)... no
checking whether to tell Abinit to read file lists from standard input... yes
checking whether to activate workaround for bugged ZDOTC and ZDOTU... no

 ==============================================================================
 === Subsystems                                                             ===
 ==============================================================================

configure: the Abinit Documentation will never be built
configure: the Abinit FALLBACKS may be built when necessary
configure: the Abinit GUI will never be built
configure: the Abinit Documentation may be built upon request

 ==============================================================================
 === Output                                                                 ===
 ==============================================================================

configure: creating ./config.status
config.status: creating doc/Makefile
config.status: creating config.dump
config.status: creating config.pc
config.status: creating config.sh
config.status: creating config/wrappers/wrap-fc
config.status: creating fallbacks/config.mk
config.status: creating src/incs/Makefile
config.status: creating src/mods/Makefile
config.status: creating src/16_hideleave/m_build_info.F90
config.status: creating tests/config.sh
config.status: creating tests/tests.env
config.status: creating tests/tests-install.env
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating src/01_gsl_ext/Makefile
config.status: creating src/01_interfaces_ext/Makefile
config.status: creating src/01_linalg_ext/Makefile
config.status: creating src/01_macroavnew_ext/Makefile
config.status: creating src/02_clib/Makefile
config.status: creating src/10_defs/Makefile
config.status: creating src/11_memory_mpi/Makefile
config.status: creating src/11_qespresso_ext/Makefile
config.status: creating src/12_hide_mpi/Makefile
config.status: creating src/14_hidewrite/Makefile
config.status: creating src/15_gpu_toolbox/Makefile
config.status: creating src/16_hideleave/Makefile
config.status: creating src/18_timing/Makefile
config.status: creating src/27_toolbox_oop/Makefile
config.status: creating src/28_numeric_noabirule/Makefile
config.status: creating src/32_util/Makefile
config.status: creating src/41_geometry/Makefile
config.status: creating src/42_nlstrain/Makefile
config.status: creating src/42_parser/Makefile
config.status: creating src/43_ptgroups/Makefile
config.status: creating src/43_wvl_wrappers/Makefile
config.status: creating src/44_abitypes_defs/Makefile
config.status: creating src/45_geomoptim/Makefile
config.status: creating src/45_psp_parser/Makefile
config.status: creating src/47_xml/Makefile
config.status: creating src/49_gw_toolbox_oop/Makefile
config.status: creating src/51_manage_mpi/Makefile
config.status: creating src/52_fft_mpi_noabirule/Makefile
config.status: creating src/52_manage_cuda/Makefile
config.status: creating src/53_abiutil/Makefile
config.status: creating src/53_ffts/Makefile
config.status: creating src/53_spacepar/Makefile
config.status: creating src/56_mixing/Makefile
config.status: creating src/56_recipspace/Makefile
config.status: creating src/56_xc/Makefile
config.status: creating src/57_iovars/Makefile
config.status: creating src/59_io_mpi/Makefile
config.status: creating src/61_ionetcdf/Makefile
config.status: creating src/62_cg_noabirule/Makefile
config.status: creating src/62_iowfdenpot/Makefile
config.status: creating src/62_occeig/Makefile
config.status: creating src/62_poisson/Makefile
config.status: creating src/62_wvl_wfs/Makefile
config.status: creating src/63_bader/Makefile
config.status: creating src/64_atompaw/Makefile
config.status: creating src/65_nonlocal/Makefile
config.status: creating src/65_psp/Makefile
config.status: creating src/66_paw/Makefile
config.status: creating src/66_wfs/Makefile
config.status: creating src/67_common/Makefile
config.status: creating src/68_dmft/Makefile
config.status: creating src/68_recursion/Makefile
config.status: creating src/68_rsprc/Makefile
config.status: creating src/69_wfdesc/Makefile
config.status: creating src/70_gw/Makefile
config.status: creating src/71_bse/Makefile
config.status: creating src/72_response/Makefile
config.status: creating src/77_ddb/Makefile
config.status: creating src/77_lwf/Makefile
config.status: creating src/77_suscep/Makefile
config.status: creating src/79_seqpar_mpi/Makefile
config.status: creating src/83_cut3d/Makefile
config.status: creating src/95_drive/Makefile
config.status: creating src/98_main/Makefile
config.status: creating src/libs/Makefile
config.status: creating tests/Nightly/Makefile
config.status: creating bindings/Makefile
config.status: creating bindings/parser/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing dump-optim commands
config.status: executing script-perms commands
config.status: executing long-lines commands
=== configuring in fallbacks (/Users/lorenzodona/Desktop/abinit-7.2.1/fallbacks)
configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local'  '--enable-gui-build=yes' '--enable-atompaw=yes' '--enable-bigdft=yes' '--enable-etsf-io=yes' '--enable-fox=no' '--enable-libxc=yes' '--enable-linalg=no' '--enable-netcdf=yes' '--enable-wannier90=yes' '--with-fc-vendor=gnu' '--with-fc-version=4.6' '--with-tardir=/Users/lorenzodona/.abinit/tarballs' --cache-file=/dev/null --srcdir=.
checking build system type... i386-apple-darwin10.8.0
checking host system type... i386-apple-darwin10.8.0
checking target system type... i386-apple-darwin10.8.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/gnu/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... (cached) awk
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
configure: fixing wrong path to mkdir replacement
configure: setting Fortran compiler vendor to gnu
configure: setting Fortran compiler version to 4.6
configure: setting tarball repository to /Users/lorenzodona/.abinit/tarballs
configure: checking consistency of fallback options
checking for wget... no
checking for curl... curl
configure: using tarball repository /Users/lorenzodona/.abinit/tarballs
checking for patch... patch
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 for style of include used by make... GNU
checking dependency style of gcc... none
checking for gfortran... gfortran
checking whether we are using the GNU Fortran compiler... yes
checking whether gfortran accepts -g... yes
checking whether to enable the LINALG fallback... no
checking whether to enable the FOX fallback... no
checking whether to enable the NETCDF fallback... yes
checking for a source tarball of NETCDF... yes
checking for md5sum... no
checking for md5... md5
configure: tarball MD5 check succeeded
configure: applying NetCDF tricks (vendor: gnu, version: 4.6)
configure: CFGFLAGS_NETCDF =  --disable-cxx --disable-cxx-4 --disable-dap --disable-hdf4 --disable-netcdf4 --enable-fortran --enable-static --disable-shared
configure: CPPFLAGS_NETCDF =  -DNDEBUG -DpgiFortran
configure: FCFLAGS_NETCDF  =  -DNDEBUG -DpgiFortran -g -O2
checking whether to enable the ETSF_IO fallback... yes
checking for a source tarball of ETSF_IO... yes
configure: tarball MD5 check succeeded
configure: applying ETSF_IO tricks (vendor: gnu, version: 4.6)
configure: CFGFLAGS_ETSF_IO =  --with-netcdf-incs="$(lib_netcdf_incs)" --with-netcdf-libs="$(lib_netcdf_libs)" --with-moduledir="$(fallbacks_instdir)/include"
configure: FCFLAGS_ETSF_IO  = -g -O2
checking whether to enable the LIBXC fallback... yes
checking for a source tarball of LIBXC... yes
configure: tarball MD5 check succeeded
configure: applying LIBXC tricks
configure: CFGFLAGS_LIBXC = --enable-fortran --enable-static --disable-shared
configure: CFLAGS_LIBXC   = -g -O2
checking whether to enable the ATOMPAW fallback... yes
checking for a source tarball of ATOMPAW... yes
configure: tarball MD5 check succeeded
configure: applying AtomPAW tricks (vendor: gnu, version: 4.6)
configure: CFGFLAGS_ATOMPAW =  --with-linalg-libs="$(lib_linalg_libs)" --enable-libxc --with-libxc-incs="$(lib_libxc_incs)" --with-libxc-libs="$(lib_libxc_libs)" --enable-static --disable-shared
checking whether to enable the BIGDFT fallback... yes
checking for a source tarball of BIGDFT... yes
configure: tarball MD5 check succeeded
configure: applying BigDFT tricks (vendor: gnu, version: 4.6)
configure: CFGFLAGS_BIGDFT =  --disable-binaries --disable-bindings --enable-libbigdft --without-libxc --without-archives --without-yaml --with-moduledir="$(fallbacks_instdir)/include"
checking whether to enable the WANNIER90 fallback... yes
checking for a source tarball of WANNIER90... yes
configure: tarball MD5 check succeeded
configure: applying Wannier90 tricks (vendor: gnu, version: 4.6)
configure: LIBS_WANNIER90 = $(lib_linalg_libs)  -L$(fallbacks_instdir)/lib -letsf_io_low_level -letsf_io_utils -letsf_io
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands
=== configuring in tests (/Users/lorenzodona/Desktop/abinit-7.2.1/tests)
configure: running /bin/sh ./configure --disable-option-checking '--prefix=/usr/local'  '--enable-gui-build=yes' '--enable-atompaw=yes' '--enable-bigdft=yes' '--enable-etsf-io=yes' '--enable-fox=no' '--enable-libxc=yes' '--enable-linalg=no' '--enable-netcdf=yes' '--enable-wannier90=yes' '--with-fc-vendor=gnu' '--with-fc-version=4.6' '--with-tardir=/Users/lorenzodona/.abinit/tarballs' --cache-file=/dev/null --srcdir=.
checking build system type... i386-apple-darwin10.8.0
checking host system type... i386-apple-darwin10.8.0
checking target system type... i386-apple-darwin10.8.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/gnu/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make sets $(MAKE)... (cached) yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking for gawk... (cached) awk
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
configure: fixing wrong path to mkdir replacement
checking for perl... perl
checking for python... python
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 for style of include used by make... GNU
checking dependency style of gcc... none
checking timeout for automatic tests... none
checking whether to build test timeout code... no
checking run mode for the vdwxc series... default
configure: creating ./config.status
config.status: creating Makefile
config.status: executing depfiles commands

 ==============================================================================
 === Final remarks                                                          ===
 ==============================================================================


Summary of important options:

  * C compiler      : gnu version
  * Fortran compiler: gnu version 4.6
  * architecture    :   ( bits)

  * debugging       : basic
  * optimizations   : standard

  * OpenMP enabled  : no (collapse: ignored)
  * MPI    enabled  : no
  * MPI-IO enabled  : no
  * GPU    enabled  : no (none)

  * TRIO   flavor = netcdf-fallback+etsf_io-fallback
  * TIMER  flavor = abinit (libs: ignored)
  * LINALG flavor = netlib (libs: auto-detected)
  * ALGO   flavor = none (libs: ignored)
  * FFT    flavor = none (libs: ignored)
  * MATH   flavor = none (libs: ignored)
  * DFT    flavor = libxc-fallback+atompaw-fallback+bigdft-fallback+wannier90-fallback

Configuration complete.
You may now type "make" to build ABINIT.
(or, on a SMP machine, "make mj4", or "make multi multi_nprocs=<n>")

MacBook-Pro-di-Lorenzo-Dona:abinit-7.2.1 lorenzodona$ make
make  all-recursive
Making all in fallbacks
make fox
The build of fox has been disabled
Checking build of fox fallback
test -e stamps/fox-install-stamp
make libxc
cd sources/libxc-2.0.1 && make -j 1
make  all-recursive
Making all in build
make[6]: Nothing to be done for `all'.
Making all in src
make  all-am
/bin/sh ../libtool  --tag=FC --tag=F77  --mode=compile gfortran  -ffree-form -g -ffree-line-length-none   -O2 -mtune=native -march=native -g -O2 -I/Users/lorenzodona/Desktop/abinit-7.2.1/fallbacks/exports/include -c -o libxc_la-libxc.lo  `test -f 'libxc.f90' || echo './'`libxc.f90
libtool: ignoring unknown tag F77
libtool: compile:  gfortran -ffree-form -g -ffree-line-length-none -O2 -mtune=native -march=native -g -O2 -I/Users/lorenzodona/Desktop/abinit-7.2.1/fallbacks/exports/include -c libxc.f90 -o libxc_la-libxc.o
libxc.f90:30:

module xc_f90_ ## types_m
1
Error: Unclassifiable statement at (1)
libxc.f90:34.17:

  integer, public, parameter :: xc_f90_kind = selected_real_kind(14)
                 1
Error: PUBLIC attribute at (1) is not allowed outside of the specification part of a module
libxc.f90:37.2:

  type xc_f90_ ## pointer_t
  1
Error: Unclassifiable statement at (1)
libxc.f90:38.11:

    private
           1
Error: PRIVATE statement at (1) is only allowed in the specification part of a module
libxc.f90:40.5:

  end type xc_f90_ ## pointer_t
     1
Error: Expecting END PROGRAM statement at (1)
libxc.f90:42.3:

end module xc_f90_ ## types_m
   1
Error: Expecting END PROGRAM statement at (1)
libxc.f90:46:

module xc_f90_ ## lib_m
1
Error: Unclassifiable statement at (1)
libxc.f90:48.13:

  use xc_f90_ ## types_m
             1
Error: Syntax error in USE statement at (1)
libxc.f90:49.19:

  use libxc_funcs_m
                   1
libxc.f90:39.30:

    integer, pointer :: buffer
                              2
Error: USE statement at (1) cannot follow data declaration statement at (2)
libxc.f90:51.15:

  implicit none
               1
libxc.f90:39.30:

    integer, pointer :: buffer
                              2
Error: IMPLICIT NONE statement at (1) cannot follow data declaration statement at (2)
libxc.f90:53.8:

  public
        1
Error: PUBLIC statement at (1) is only allowed in the specification part of a module
libxc.f90:99.23:

    subroutine xc_f90_ ## version(major, minor)
                       1
Error: Syntax error in SUBROUTINE statement at (1)
libxc.f90:100.42:

      integer, intent(out) :: major, minor
                                          1
Error: Unexpected data declaration statement in INTERFACE block at (1)
libxc.f90:101.7:

    end subroutine xc_f90_ ## version
       1
Error: Expecting END INTERFACE statement at (1)
libxc.f90:106.28:

    integer function xc_f90_ ## info_number(info)
                            1
Error: Expected formal argument list in function definition at (1)
libxc.f90:107.17:

      use xc_f90_ ## types_m
                 1
Error: Syntax error in USE statement at (1)
libxc.f90:108.6:

      type(xc_f90_ ## pointer_t), intent(in) :: info
      1
Error: Unclassifiable statement at (1)
libxc.f90:109.7:

    end function xc_f90_ ## info_number
       1
Error: Expecting END INTERFACE statement at (1)
libxc.f90:111.28:

    integer function xc_f90_ ## info_kind(info)
                            1
Internal Error at (1):
insert_bbt(): Duplicate key found!
make[7]: *** [libxc_la-libxc.lo] Error 1
make[6]: *** [all] Error 2
make[5]: *** [all-recursive] Error 1
make[4]: *** [all] Error 2
make[3]: *** [stamps/libxc-build-stamp] Error 2
make[2]: [all-local] Error 2 (ignored)
Checking build of libxc fallback
test -e stamps/libxc-install-stamp
make[2]: *** [all-local] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
MacBook-Pro-di-Lorenzo-Dona:abinit-7.2.1 lorenzodona$



Excuse me again if I bother you but can you help me to configure Abinit correctly?
Thank you again.
Dearly Lorenzo Donà.

User avatar
Alain_Jacques
Posts: 279
Joined: Sat Aug 15, 2009 9:34 pm
Location: Université catholique de Louvain - Belgium

Re: help to compile Abinit on MAC OX Snow Leopard  [SOLVED]

Post by Alain_Jacques » Tue May 14, 2013 5:16 pm

Hi Lorenzo,

* C compiler : gnu version
* Fortran compiler: gnu version 4.6
* architecture : ( bits)

I don't like too much that the version of your C compiler isn't detected ... which one do you have? You have installed a GNU Fortran 4.6. Try to set the PATH to use the same version for the C compiler and cpp prepro.

Kind regards,

Alain

lorenzodona
Posts: 36
Joined: Tue May 14, 2013 12:04 am

Re: help to compile Abinit on MAC OX Snow Leopard

Post by lorenzodona » Tue May 14, 2013 7:12 pm

Thank you Alain to helm me.
Excuse me but I not so practice whit Mac terminal.
If it's possible can you teach me what must type or do.
Thank you for your patience with me.
Dearly Lorenzo.

Locked