Skip to Content.
Sympa Menu

forum - Re: [abinit-forum] trouble with making abinit after compilation

forum@abinit.org

Subject: The ABINIT Users Mailing List ( CLOSED )

List archive

Re: [abinit-forum] trouble with making abinit after compilation


Chronological Thread 
  • From: "Anglade Pierre-Matthieu" <anglade@gmail.com>
  • To: forum@abinit.org
  • Subject: Re: [abinit-forum] trouble with making abinit after compilation
  • Date: Tue, 15 Jan 2008 15:57:45 +0100
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=dXmur3zLy/PjD0cEqWf6s7HZ5njKUDL2d93hYO7SN9edqKw5w7imGQAsXNOkmuSY1OlsS5lckbHgU/s8OG55v5MMh8eMyI0FDhiHYqnv8O5t7tk3WlaytpKfMT+ZITR6ZoC9xbCQhqYl6qXPV5GBsXeeYLOb7DF3507tOrNGbeE=

Hi,

You have to install a fortran 90 compiler.
Actually configure find only the old gnu f77 compiler which is not able to compile most of Abinit's code.
You can find some free fortran 90 compilers at:
gcc.gnu.org/ and www.g95.org/
Install them, check that the compiler binaries are in your $PATH:
e.g.:
get gcc.4.2.2 on the net
$ tar jxf gcc-4.2.2.tar.bz2
$ cd gcc-4.2.2
$ ./configure
(check that gfortran will be build it require  you to have a few libraries on your system)
$ make
(pretty long)
$ make install
(also quite long)
$ gfortran
bash: gfortran: command not found
(gfortran is not in your path)
$ PATH=$PATH:/usr/local/bin
(put gfortran in you $PATH)
$LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
(put the fortran libraries in your path)
$gfortran
gfortran: no input files
(this time you are ready to run again Abinit's configure)

Installing gfortran is much longer than installing g95 but for instance on my machine
the binaries run almost twice faster with gfortran than with g95.
Also any other f90 compiler will fit as long as its binaries and libraries are in your PATHs (see above example).

Regards

PMA


On Jan 15, 2008 12:52 PM, < ilukacevic@fizika.unios.hr> wrote:
Hi everyone!

I'm sorry for bothering you all with this minor problem, but my knowledge is insufficient here.
After a successful compilation of abinit 5.4.4 (the result of ./configure is listed below) and upon uttering a make command, I get an error (also below). Could someone, please, help me with understanding what this error means.

Thanks in advance,

Yours
Igor Lukacevic




ilukacevic@delta:~/abinit-5.4.4$ ./configure

 ==============================================================================
 === 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 gawk... gawk
checking whether make sets $(MAKE)... yes

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

configure: checking consistency of MPI options
configure:  |---> all OK
configure:
configure: checking consistency of external library options
configure:  |---> all OK
configure:

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

checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for sh... /bin/sh
checking for perl... /usr/local/bin/perl
checking for python... /usr/bin/python
checking for rm... /bin/rm
checking for mv... /bin/mv
checking for tar... /bin/tar
checking for markdown... /usr/bin/markdown
checking for latex... /usr/bin/latex
checking for dvips... /usr/bin/dvips
checking for dvipdf... /usr/bin/dvipdf
checking for ps2pdf... /usr/bin/ps2pdf
checking for egrep... grep -E
configure: using internal version of MarkDown

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

checking for ranlib... ranlib
checking for a sed that does not truncate output... /bin/sed
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 ANSI C... none needed
checking dependency style of gcc... gcc3
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for ar... /usr/bin/ar
checking for sed... /bin/sed

 ==============================================================================
 === Preprocessing                                                          ===
 ==============================================================================

checking how to run the C preprocessor... gcc -E
checking for the true C preprocessor... /lib/cpp
checking for C preprocessor options... -P -std=c89

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

checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ANSI C... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking if we are using the Intel C compiler... no
checking if we are using the GNU C compiler... yes
checking whether byte ordering is bigendian... no
configure: applying C compiler tricks (type: gnu, version: 3.3.5)

 ==============================================================================
 === 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 if we are using the Intel C++ compiler... no
checking if we are using the GNU C++ compiler... yes
configure: applying C++ compiler tricks (type: gnu, version: 3.3.5 )

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

checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking for f90... no
checking for xlf90... no
checking for pgf90... 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 if we are using the G95 Fortran compiler... no
checking if we are using the Intel Fortran compiler... no
checking if we are using the GNU Fortran compiler... no
checking if we are using the PathScale Fortran compiler... no
checking if we are using the Portland Group Fortran compiler... no
checking if we are using the Compaq Fortran compiler... no
checking if we are using the ABSoft Fortran compiler... no
checking if we are using the MIPSpro Fortran compiler... no
checking if we are using the Fujitsu Fortran compiler... no
checking if we are using the Sun WorkShop Fortran compiler... no
checking if we are using the IBM XL Fortran compiler... no
checking whether the Fortran compiler accepts exit()... no
checking whether to activate Fortran interfaces... yes
checking whether to use C clock for timings... no

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

configure: enabling per-directory Fortran optimizations

 ==============================================================================
 === MPI support                                                            ===
 ==============================================================================

checking for a native MPI support... no
checking whether to build parallel code... no

 ==============================================================================
 === External libraries                                                     ===
 ==============================================================================

checking whether to use the BIGDFT library... no
checking whether to build the BIGDFT library... no
checking whether to use the LINALG library... yes
checking whether to build the LINALG library... yes
checking whether to use the STRING_F library... no
checking whether to build the STRING_F library... no
checking whether to use the NETCDF library... no
checking whether to build the NETCDF library... no
checking whether to use the ETSF_IO library... no
checking whether to build the ETSF_IO library... no
checking whether to use the ETSF_XC library... no
checking whether to build the ETSF_XC library... no
checking whether to use the FOX library... no
checking whether to build the FOX library... no
checking whether to use the XMLF90 library... no
checking whether to build the XMLF90 library... no
checking whether to use the FFTW library... no
checking whether to use the WANNIER90 library... no
checking whether to build the WANNIER90 library... no

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

configure: creating ./config.status
config.status: creating config.mk
config.status: creating config.sh
config.status: creating lib/xmlf90/build.mk
config.status : creating src/defs/defs_infos.F90
config.status: creating tests/tests.env
config.status: creating config/wrappers/wrap-fc
config.status: creating Makefile
config.status: creating lib/Makefile
config.status : creating src/Makefile
config.status: creating lib/light/Makefile
config.status: creating lib/macroav/Makefile
config.status: creating lib/numeric/Makefile
config.status: creating lib/numericf90/Makefile
config.status : creating lib/linalg/Makefile
config.status: creating lib/netcdf/Makefile
config.status: creating lib/etsf_io/Makefile
config.status: creating lib/string_f/Makefile
config.status: creating lib/etsf_xc/Makefile
config.status: creating lib/fox/Makefile
config.status: creating lib/xmlf90/Makefile
config.status: creating lib/wannier90/Makefile
config.status: creating src/defs/Makefile
config.status: creating src/lib01fftnew/Makefile
config.status: creating src/lib01cg/Makefile
config.status: creating src/lib01hidempi/Makefile
config.status: creating src/00basis/Makefile
config.status: creating src/01manage_mpi/Makefile
config.status: creating src/11util/Makefile
config.status: creating src/11contract/Makefile
config.status: creating src/12spacepar/Makefile
config.status: creating src/12parser/Makefile
config.status: creating src/12geometry/Makefile
config.status: creating src/12ffts/Makefile
config.status: creating src/12nlstrain/Makefile
config.status: creating src/13xml/Makefile
config.status: creating src/13xc/Makefile
config.status: creating src/13recipspace/Makefile
config.status: creating src/13paw/Makefile
config.status: creating src/13iovars/Makefile
config.status: creating src/13nonlocal/Makefile
config.status: creating src/13psp/Makefile
config.status: creating src/13ionetcdf/Makefile
config.status: creating src/13io_mpi/Makefile
config.status: creating src/14poisson/Makefile
config.status: creating lib/bigdft/Makefile
config.status: creating src/14wfs/Makefile
config.status: creating src/14wvl_wfs/Makefile
config.status: creating src/14iowfdenpot/Makefile
config.status: creating src/14bader/Makefile
config.status: creating src/14occeig/Makefile
config.status: creating src/15common/Makefile
config.status: creating src/15gw/Makefile
config.status: creating src/15rsprc/Makefile
config.status: creating src/16response/Makefile
config.status: creating src/16geomoptim/Makefile
config.status: creating src/17suscep/Makefile
config.status: creating src/17lwf/Makefile
config.status: creating src/17ddb/Makefile
config.status: creating src/18seqpar/Makefile
config.status: creating src/19cut3d/Makefile
config.status: creating src/21paral_md/Makefile
config.status: creating src/21drive/Makefile
config.status: creating src/21rdm/Makefile
config.status: creating src/main/Makefile
config.status: creating doc/Makefile
config.status: creating tests/Makefile
config.status: creating vms/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing build-exec commands

Configuration complete.
You may now type "make" (or "make multi" or "make multi_alt" on a SMP machine)
to build ABINIT.


And when I try make


root@delta:~/abinit-5.4.4# make
make  all-recursive
make[1]: Entering directory `/home/ilukacevic/abinit-5.4.4'
Making all in lib
make[2]: Entering directory `/home/ilukacevic/abinit- 5.4.4/lib'
Making all in light
make[3]: Entering directory `/home/ilukacevic/abinit-5.4.4/lib/light'
g77 -DHAVE_CONFIG_H -I. -I. -I../.. -I../defs -I./../defs     -c -o types_def.o types_def.F90
g77: types_def.F90: linker input file unused because linking not done
g77 -DHAVE_CONFIG_H -I. -I. -I../.. -I../defs -I./../defs     -c -o aluminum.o aluminum.F90
g77: aluminum.F90: linker input file unused because linking not done
g77 -DHAVE_CONFIG_H -I. -I. -I../.. -I../defs -I./../defs     -c -o dens.o dens.F90
g77: dens.F90: linker input file unused because linking not done
g77 -DHAVE_CONFIG_H -I. -I. -I../.. -I../defs -I./../defs     -c -o embedd.o embedd.F90
g77: embedd.F90: linker input file unused because linking not done
g77 -DHAVE_CONFIG_H -I. -I. -I../.. -I../defs -I./../defs     -c -o ener.o ener.F90
g77: ener.F90: linker input file unused because linking not done
g77 -DHAVE_CONFIG_H -I. -I. -I../.. -I../defs -I./../defs     -c -o enerpot.o enerpot.F90
g77: enerpot.F90: linker input file unused because linking not done
g77 -DHAVE_CONFIG_H -I. -I. -I../.. -I../defs -I./../defs     -c -o forc.o forc.F90
g77: forc.F90: linker input file unused because linking not done
g77 -DHAVE_CONFIG_H -I. -I. -I../.. -I../defs -I./../defs     -c -o inicell.o inicell.F90
g77: inicell.F90: linker input file unused because linking not done
g77 -DHAVE_CONFIG_H -I. -I. -I../.. -I../defs -I./../defs     -c -o inipos.o inipos.F90
g77: inipos.F90: linker input file unused because linking not done
g77 -DHAVE_CONFIG_H -I. -I. -I../.. -I../defs -I./../defs     -c -o inivel.o inivel.F90
g77: inivel.F90: linker input file unused because linking not done
g77 -DHAVE_CONFIG_H -I. -I. -I../.. -I../defs -I./../defs     -c -o lightweight.o lightweight.F90
g77: lightweight.F90: linker input file unused because linking not done
g77 -DHAVE_CONFIG_H -I. -I. -I../.. -I../defs -I./../defs     -c -o move_li.o move_li.F90
g77: move_li.F90: linker input file unused because linking not done
g77 -DHAVE_CONFIG_H -I. -I. -I../.. -I../defs -I./../defs     -c -o output.o output.F90
g77: output.F90: linker input file unused because linking not done
g77 -DHAVE_CONFIG_H -I. -I. -I../.. -I../defs -I./../defs     -c -o readinput.o readinput.F90
g77: readinput.F90: linker input file unused because linking not done
g77 -DHAVE_CONFIG_H -I. -I. -I../.. -I../defs -I./../defs     -c -o screen.o screen.F90
g77: screen.F90: linker input file unused because linking not done
g77 -DHAVE_CONFIG_H -I. -I. -I../.. -I../defs -I./../defs     -c -o testforce.o testforce.F90
g77: testforce.F90: linker input file unused because linking not done
g77 -DHAVE_CONFIG_H -I. -I. -I../.. -I../defs -I./../defs     -c -o v.o v.F90
g77: v.F90: linker input file unused because linking not done
rm -f liblight.a
/usr/bin/ar cru liblight.a types_def.o aluminum.o dens.o embedd.o ener.o enerpot.o forc.o inicell.o inipos.o inivel.o lightweight.o move_li.o output.o readinput.o screen.o testforce.o v.o
/usr/bin/ar: types_def.o: No such file or directory
make[3]: *** [liblight.a] Error 1
make[3]: Leaving directory `/home/ilukacevic/abinit-5.4.4/lib/light'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/ilukacevic/abinit-5.4.4/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ilukacevic/abinit-5.4.4'
make: *** [all] Error 2



--
Pierre-Matthieu Anglade



Archive powered by MHonArc 2.6.16.

Top of Page