Configuration error for abinit-6.4.1

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
sciencemonk
Posts: 1
Joined: Tue Nov 09, 2010 1:33 am

Configuration error for abinit-6.4.1

Post by sciencemonk » Tue Nov 09, 2010 1:39 am

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!

User avatar
pouillon
Posts: 651
Joined: Wed Aug 19, 2009 10:08 am
Location: Spain
Contact:

Re: Configuration error for abinit-6.4.1

Post by pouillon » Tue Nov 09, 2010 10:33 am

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.
Yann Pouillon
Simune Atomistics
Donostia-San Sebastián, Spain

JEJohns
Posts: 55
Joined: Sun May 02, 2010 5:30 pm

Re: Configuration error for abinit-6.4.1

Post by JEJohns » Wed Nov 10, 2010 7:01 pm

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

Locked