I tried to installing abinit 6.6.3 but i have error. Please help me!!
I think there is a problem to installing netcdf 4.1.1
First i did inside of the directory ./configure CC=gcc-4.2 FC=ifort, in this process there is only warning.
Code: Select all
==============================================================================
=== 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 malloc.h usability... no
checking malloc.h presence... no
checking for malloc.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: ## ------------------------------------------------- ##
after i did make. Then there is a error:
Code: Select all
make all-recursive
Making all in plugins
Making all in netcdf
make -f ../../plugins/netcdf/netcdf.mk
netcdf-4.1.1 has been uncompressed.
mkdir tmp
mkdir: tmp: File exists
make[4]: [configure-stamp] Error 1 (ignored)
cd netcdf-4.1.1 && \
CPP="gcc-4.2 -E" \
CPPFLAGS="-DNDEBUG -DpgiFortran" \
CC="gcc-4.2" \
CFLAGS="-g -O2 -mtune=native -march=native -mfpmath=sse " \
CXX="g++" \
CXXFLAGS="-g -O2 " \
F77="ifort" \
FFLAGS="-fixed -g -extend-source -vec-report0 -noaltparam -nofpscomp -O3 -xHost" \
F90="ifort" \
F90FLAGS="-free -g -extend-source -vec-report0 -noaltparam -nofpscomp -O3 -xHost" \
FC="ifort" \
FCFLAGS="-free -g -extend-source -vec-report0 -noaltparam -nofpscomp -O3 -xHost" \
./configure \
--prefix=/Users/seba/abinit/abinit-6.6.3/plugins/netcdf/tmp \
--disable-cxx --disable-cxx-4 --disable-dap --disable-hdf4 --disable-netcdf4 --disable-v2 --enable-fortran
configure: netCDF 4.1.1
checking build system type... i386-apple-darwin10.4.0
checking host system type... i386-apple-darwin10.4.0
checking for a BSD-compatible install... /opt/local/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /opt/local/bin/gmkdir -p
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
configure: checking user options
checking whether CXX is set to ''... no
checking whether FC is set to ''... no
checking whether F90 is set to ''... no
checking whether a NCIO_MINBLOCKSIZE was specified... 256
checking whether udunits is to be built... no
checking if fsync support is enabled... yes
checking whether extra valgrind tests should be run... no
checking whether libcf is to be built... no
checking whether reading of HDF4 SD files is to be enabled... no
checking whether to fetch some sample HDF4 files from Unidata ftp site to test HDF4 reading (requires wget)... no
checking whether parallel I/O for classic and 64-bit offset files using parallel-netcdf is to be enabled... no
checking whether a location for the parallel-netcdf library was specified... no
checking whether new netCDF-4 C++ API is to be built... no
checking whether extra example tests should be run... no
checking whether parallel IO tests should be run... no
checking whether a location for the HDF5 library was specified...
checking whether a location for the ZLIB library was specified...
checking whether a location for the SZLIB library was specified...
checking whether a location for the HDF4 library was specified...
checking whether a default chunk size in bytes was specified... 4194304
checking whether a maximum per-variable cache size for HDF5 was specified... 67108864
checking whether a number of chunks for the default per-variable cache was specified... 10
checking whether a default file cache size for HDF5 was specified... 4194304
checking whether a default file cache maximum number of elements for HDF5 was specified... 1009
checking whether a default cache preemption for HDF5 was specified... 0.75
checking whether netCDF-4 logging is enabled... no
checking whether a path for curl-config was specified... no
checking whether a location for curl installation was specified... no
configure: checking whether a location for curl-config is in PATH... yes
checking whether DAP client is to be built... no
checking whether dap remote testing should be enabled (default on)... no
checking whether the time-consuming dap tests should be enabled (default off)... no
checking whether a location for liboc was specified... no
checking whether netCDF extra tests should be run (developers only)... no
checking whether Fortran compiler(s) should be tested during configure... yes
checking whether FFIO will be used... no
checking whether to skip C++, F77, or F90 APIs if compiler is broken... yes
checking whether only the C library is desired... no
checking whether examples should be built... yes
checking whether F77 API is desired... yes
checking whether any Fortran API is desired... yes
checking whether F90 API is desired... yes
checking whether fortran type sizes should be checked... yes
checking whether C API is desired... yes
checking where to get netCDF C-only library for separate fortran libraries...
checking whether CXX API is desired... no
checking whether v2 netCDF API should be built... no
checking whether the ncgen/ncdump should be built... yes
checking whether large file (> 2GB) tests should be run... no
checking whether benchmaks should be run (experimental)... no
checking whether extreme numbers should be used in tests... yes
checking where to put large temp files if large file tests are run... .
checking whether a win32 DLL is desired... no
checking whether separate fortran libs are desired... no
configure: finding C compiler
checking whether the C compiler works... no
configure: error: in `/Users/seba/abinit/abinit-6.6.3/plugins/netcdf/netcdf-4.1.1':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[4]: *** [configure-stamp] Error 77
make[3]: *** [package-ready] Error 2
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
i think the problem is in the installation of netcdf 4.1.1. If i see the file plugins netcdf/netcdf-4.1.1/config.log I see
Code: Select all
configure:5091: $? = 0
configure:5080: gcc-4.2 -v >&5
Using built-in specs.
Target: i686-apple-darwin10
Configured with: /var/tmp/gcc/gcc-5664~38/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-$
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5664)
configure:5091: $? = 0
configure:5080: gcc-4.2 -V >&5
gcc-4.2: argument to `-V' is missing
configure:5091: $? = 1
configure:5080: gcc-4.2 -qversion >&5
i686-apple-darwin10-gcc-4.2.1: no input files
configure:5091: $? = 1
configure:5111: checking whether the C compiler works
configure:5133: gcc-4.2 -g -O2 -mtune=native -march=native -mfpmath=sse -DNDEBUG -DpgiFortran conftest.c >&5
conftest.c:1: error: bad value (native) for -march= switch
conftest.c:1: warning: SSE instruction set disabled, using 387 arithmetics
configure:5137: $? = 1
configure:5175: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "netCDF"
| #define PACKAGE_TARNAME "netcdf"
| #define PACKAGE_VERSION "4.1.1"
| #define PACKAGE_STRING "netCDF 4.1.1"
| #define PACKAGE_BUGREPORT "support-netcdf@unidata.ucar.edu"
| #define PACKAGE_URL ""
| #define PACKAGE "netcdf"
| #define VERSION "4.1.1"
| #define NCIO_MINBLOCKSIZE 256
| #define USE_FSYNC 1
| #define DEFAULT_CHUNK_SIZE 4194304
| #define MAX_DEFAULT_CACHE_SIZE 67108864
| #define DEFAULT_CHUNKS_IN_CACHE 10
| #define CHUNK_CACHE_SIZE 4194304
| #define CHUNK_CACHE_NELEMS 1009
#define CHUNK_CACHE_PREEMPTION 0.75
| #define NO_NETCDF_2 1
| #define USE_EXTREME_NUMBERS 1
| #define TEMP_LARGE "."
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:5180: error: in `/Users/seba/abinit/abinit-6.6.3/plugins/netcdf/netcdf-4.1.1':
configure:5184: error: C compiler cannot create executables
See `config.log' for more details.
Pleas someone help me!
Thanks a lots!!!!