[Pw_forum] Compilation Error With ICC

Cameron Foss cjfoss at umass.edu
Wed Mar 25 21:23:08 CET 2015


Hello,

I am trying to install Quantum-Espresso on the parallel machine MGHPCC. I
am trying to use intel compilers to do so (ie ifort, icc, and icpc). Note I
have installed and tested the serial version to confirm that the issues I
am seeing are not coming from the cluster environment itself.

I've load the necessary modules containing these compilers:

[cf79a at ghpcc06 espresso-5.1]$ which ifort
/share/pkg/intel/composer_xe_2013_sp1.0.080/bin/intel64/ifort
[cf79a at ghpcc06 espresso-5.1]$ which icc
/share/pkg/intel/composer_xe_2013_sp1.0.080/bin/intel64/icc
[cf79a at ghpcc06 espresso-5.1]$ which icpc
/share/pkg/intel/composer_xe_2013_sp1.0.080/bin/intel64/icpc

however when I run *./configure --enable-parallel* I get the following
error (NOTE: I get the same error when just running ./configure:
setting CC... icc
checking how to run the C preprocessor... icc -E
configure: error: in `/home/cf79a/ESPRESSO-PAR/espresso-5.1':
configure: error: C preprocessor "icc -E" fails sanity check

and in the config.log file it states ac_cv_env_CPP_value=icc
however when I explicitly set CPP via

*export CPP=/share/pkg/intel/composer_xe_2013_sp1.0.080/bin/intel64/icpc*
 I now get this error:
setting CC... icc
checking how to run the C preprocessor...
/share/pkg/intel/composer_xe_2013_sp1.0.080/bin/intel64/icpc
configure: error: in `/home/cf79a/ESPRESSO-PAR/espresso-5.1/install':
configure: error: C preprocessor
"/share/pkg/intel/composer_xe_2013_sp1.0.080/bin/intel64/icpc" fails sanity
check

It sets CC to icc but when checking the C preprocessor it references the
icpc compiler.

Any idea's as to fix this issue? or perhaps why it is happening?

Best,
Cameron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quantum-espresso.org/pipermail/users/attachments/20150325/c21d1a78/attachment.html>


More information about the users mailing list