Page 1 of 1

abinit-6.10.2 make fails

Posted: Mon Nov 14, 2011 12:38 pm
by omar11
Dear all,
I'm new to abinit.
I downloaded the abinit-6.10.2 version on Suse and I gunziped and untared it.
I got an error after ./configure
Can you tell me how to correct this error?
I'd appreciate your help.

this is what I get after ./configure



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

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
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... /bin/sed
checking for gawk... (cached) gawk
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
configure: not loading options (no config file available)

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

configure: ABINIT version 6.10.2
configure: M4 010416 - Autoconf 026800 - Automake 011100 - Libtool 020204
configure: reporting user interface changes:
configure: * new option --enable-gw-openmp is available

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

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

==============================================================================
=== Connector startup ===
==============================================================================

configure: MPI support disabled from command-line
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 dvips... dvips
checking for dvipdf... dvipdf
checking for latex... latex
checking for markdown... no
checking for patch... patch
checking for ps2pdf... ps2pdf
checking for tar... tar
checking for wget... wget
checking for curl... curl
configure: using internal version of MarkDown

==============================================================================
=== 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 (SUSE
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 (SUSE

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

checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgfortran... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for g77... g77
checking whether we are using the GNU Fortran compiler... yes
checking whether g77 accepts -g... yes
checking which type of Fortran compiler we have... gnu 3.3
checking fortran 90 modules extension...
configure: setting Fortran module extension to ".mod"
checking for Fortran flag to compile .F90 files... unknown
configure: WARNING: Fortran file extension could not be changed
configure: WARNING: some advanced Fortran tests may fail
configure: determining Fortran module case
configure: error: in `/home/omar/abinit-6.10.2':
configure: error: unable to compile a simple Fortran module
See `config.log' for more details

Re: abinit-6.10.2 configure fails

Posted: Mon Nov 14, 2011 6:43 pm
by pouillon
You have to install a Fortran 95 compiler if you want to build Abinit.

Re: abinit-6.10.2 configure fails

Posted: Tue Nov 15, 2011 2:17 pm
by omar11
Thank you so much for your reply.
now the ./configure works but the make step fails.
please can you tell me what are the packages necessary for building abinit and where I should download them?

this is what I get after make

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... no
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 `/root/Desktop/abinit-6.10.2/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[4]: Leaving directory `/root/Desktop/abinit-6.10.2/plugins/netcdf'
make[3]: *** [package-ready] Error 2
make[3]: Leaving directory `/root/Desktop/abinit-6.10.2/plugins/netcdf'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/Desktop/abinit-6.10.2/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/Desktop/abinit-6.10.2'
make: *** [all] Error 2

Re: abinit-6.10.2 make fails

Posted: Wed Nov 16, 2011 4:55 pm
by pouillon
You should have to look for the last occurence of 'failed' in /path/to/abinit/builddir/plugins/netcdf/netcdf-4.1.1/config.log. It will tell you what's wrong with your C compiler.

Re: abinit-6.10.2 make fails

Posted: Fri Nov 18, 2011 9:38 am
by omar11
thank you for your reply.
this is what I found in /home/omar/abinit-6.10.2/plugins/netcdf/netcdf-4.1.1/config.log.





configure:5111: checking whether the C compiler works
configure:5133: gcc -g -O2 -mtune=native -march=native -mfpmath=sse -DNDEBUG -Df2cFortran conftest.c >&5
cc1: error: invalid option `tune=native'
cc1: error: bad value (native) for -march= switch
cc1: error: bad value (native) for -mcpu= switch
cc1: 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 `/home/omar/abinit-6.10.2/plugins/netcdf/netcdf-4.1.1':
configure:5184: error: C compiler cannot create executables
See `config.log' for more details.

Re: abinit-6.10.2 make fails

Posted: Fri Nov 18, 2011 3:10 pm
by pouillon
Your version of GCC is too old. You should upgrade it or disable NetCDF. If you keep your current version, it is however not even guaranteed that you'll be able to compile Abinit, even with all optional features disabled.