Page 1 of 1

Configuration error for abinit-6.4.1

Posted: Tue Nov 09, 2010 1:39 am
by sciencemonk
Hey guys,

I got a problem when trying to configure abinit-6.4.1.

Here is my configuration file:

#!/bin/bash

../configure --enable-mpi \
--with-mpi-prefix=/lap/openmpi/1.4.3/intel-11.1
--enable-netcdf="no" \
--enable-bigdft="no" \
--enable-wannier90="no"


I followed the build-examples, in which both "--enable-mpi" and "--with-mpi-prefix=..." were set.

But I got the message that

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

configure: Initializing MPI support
configure: looking for MPI in /lap/openmpi/1.4.3/intel-11.1
configure: error: use --with-mpi-prefix or set CC, not both


Any idea for that? I did not set CC or any other compiler.

Thanks for attention!

Re: Configuration error for abinit-6.4.1

Posted: Tue Nov 09, 2010 10:33 am
by pouillon
Automating the configuration of MPI is a very delicate task. I finally decided that the build system should throw an error and give up every time there is a contradiction somewhere. Thus you cannot ask the build system to set the compilers for you, while at the same time setting them manually yourself.

Just type "env", and you'll see that CC is set. It was probably done by your system administrator.

You should either not use the --with-mpi-prefix option, or unset CC. Idem with CXX and FC.

Re: Configuration error for abinit-6.4.1

Posted: Wed Nov 10, 2010 7:01 pm
by JEJohns
Sciencemonk,
I had a problems compiling abinit-6.4.1 as well, and had to switch from specifying the FC, CC& CXX to the mpi prefix option. The test.ac file that I used is in the threat Compiling abinit 6.4.2 (though I was compiling 6.4.1) just a few posts back if you want an example file. You can ignore all the stuff about the linalg not compiling.
Cheers,
--James