Intel® C++ Compiler
Support and discussions for creating C++ code that runs on platforms based on Intel® processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Error when configure MPICH2

jglee
Beginner
130 Views

I was configuring MPICH2 using "./configure FC=ifort F90=ifort CC=icc", some errors occur:

checking for gcc... icc
checking for C compiler default output file name...
configure: error: in `/hptc_cluster/software/mpich2-1.2.1':
configure: error: C compiler cannot create executables
See `config.log' for more details.

I'm sure the C++ compiler has been installed correctly, and the environmental variable is also correctly set. How to solve the problem? Thanks!

0 Kudos
2 Replies
jglee
Beginner
130 Views
Maybe the reason is that my C++ compiler version is old. I update the C++ compiler and the error disappears.
TimP
Black Belt
130 Views
If you need more hints, it may default to CXX=g++ if you don't specify use of icpc.
Reply