Skip to Content.
Sympa Menu

forum - Re: [abinit-forum] Configure error with abinit-5.8.4

forum@abinit.org

Subject: The ABINIT Users Mailing List ( CLOSED )

List archive

Re: [abinit-forum] Configure error with abinit-5.8.4


Chronological Thread 
  • From: Alain Jacques <ajs.jacques@gmail.com>
  • To: forum@abinit.org
  • Subject: Re: [abinit-forum] Configure error with abinit-5.8.4
  • Date: Wed, 02 Sep 2009 15:38:11 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=qLZTOaEKFOt+kc6ZPVBJpWX6II/y0wpq9XLc3gThRq+B8gkdHGKtK5E7gYDiIi0R29 xhgKKgzj/hB+AH3EPloNuI+LsEUkhKYyQGzIfNmwdPE82iUS1ePSYLxPfps6hWvXE4eh 6d66/URHx176R316NPSNlIqLq2dXWl8CXr7xE=

Hello John,

john_c_barry@picams.com.au wrote:
> I am running CentOS on a vx50 system. The vx50 has 8 x 4-core AMD Opteron
> (Shanghai) processors in a single box.

Lucky bird :-)

> I recently downloaded abinit-5.8.4 and
> tried to install it. When I run the configure script:
>
> ./configure --enable-mpi="yes"
>
> Configure stops with the following error:
>
> checking whether the C compiler works... configure: error: cannot
> run C compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details.
>
> Does anyone know what this error means, or how I might go about correcting
> it?
>

It means that your C compiler - here mpicc - is not properly invoked or
produces broken executables ... And the "see config.log" is the right
suggestion. Look for failed tests - conftests- outputs in that file to
understand what happens. And maybe show us the relevant part for more
specific replies.
> Openmpi-1.2.7, gcc, gcc-c++ and gcc-gfortran are installed.
>

openmpi-1.2.7 should work but a bit oldish. Abinit will probably not
compile "as-is" with the stock Centos 5 openmpi/gcc - gcc-4.1.2 is too
old and buggy. My suggestion is to build your own compiler toolchain - a
gcc/gfortran-4.3.4 and openmpi-1.3.1 - before trying to compile abinit.
Maybe show us the output of mpif90 -showme, mpicc -showme, gfortran -v,
... . Check with "which gfortran" "which mpif90" ... that the right
compilers are in the PATH

Kind regards,

Alain


> best regards
>
> John Barry
>




Archive powered by MHonArc 2.6.16.

Top of Page