Skip to Content.
Sympa Menu

forum - Re: [abinit-forum] configure error mpicc does not find ac_nonexistent.h

forum@abinit.org

Subject: The ABINIT Users Mailing List ( CLOSED )

List archive

Re: [abinit-forum] configure error mpicc does not find ac_nonexistent.h


Chronological Thread 
  • From: Yann Pouillon <yann.pouillon@ehu.es>
  • To: forum@abinit.org
  • Subject: Re: [abinit-forum] configure error mpicc does not find ac_nonexistent.h
  • Date: Wed, 21 Oct 2009 08:21:27 +0200

Hi,

leonardoal@missouri.edu ha escrito:

I am trying to compile abinit and I am incapable. I am pretty sure that is due
to my huge ignorance but after surfing the archive and googling during one week
I still did not have success.

This is not due to your ignorance. I'm explaining below.

The configure log gives the error:

configure:10235: /opt/mpich2-intel-11//bin/mpicc -E conftest.c
configure:10242: $? = 0
configure:10273: /opt/mpich2-intel-11//bin/mpicc -E conftest.c
conftest.c(16): error #5: could not open source file "ac_nonexistent.h"
#include <ac_nonexistent.h>
^

configure:10280: $? = 2

This error is not linked to your problem. It is supposed to happen, as it is a test to determine the behaviour of the compiler to non-existing header files (hence the name: ac_nonexistent.h).

ANY HELP IS WELCOME and THANK YOU ALL IN ADVANCE.

Here it is.

The build of Abinit fails because the build system mistakenly detects icc as being gcc (abi_cc_vendor=gnu), and then applies optimization flags for gcc (see e.g. CFLAGS_OPT), which in turn causes the build of NetCDF and LibXC to fail. This came out as a side effect of the efforts of Intel to be more compatible with GCC, and unfortunately I fixed it after the release of Abinit 5.8.4.

The workaround is to use the following configure options:

* --with-cc-optflags="-O2"
* --with-cxx-optflags="-O2"

This problem will not appear anymore in future versions of Abinit, and you will then be able to let again the build system automatically set the optimizations for Intel compilers.

Best regards,

Yann.

--
Yann Pouillon European Theoretical Spectroscopy Facility (ETSF)
Tel: (+34) 943 01 83 94 Centro Joxe Mari Korta, Avenida de Tolosa, 72
Fax: (+34) 943 01 83 90 20018 Donostia-San Sebastián (Gipuzkoa)
Web: http://www.etsf.es/ España





Archive powered by MHonArc 2.6.16.

Top of Page