Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Unsuccessful OpenMPI configuration

Jakub_S_1
Beginner
748 Views

Dear Community,

Could you please help me out with the following issue:

1. I have installed Intel Package and source compilers (i.e. icc compiler) in my system:   /opt/intel/compilers_and_libraries_2017.4.196/linux/bin/intel64/icc

2. I try to run ./configure with flags:   $ ./configure --prefix=/usr/local CC=icc CXX=icpc F77=ifort FC=ifort

3. Finally the system says that there is no icc existed, but it is recognizable from which icc command.

Please tell me what I do wrong...

I paste small part of the output log from OpenMPI configuration and also send the whole file in the attachment.

 

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by Open MPI configure 1.10.7, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --prefix=/usr/local CC=icc CXX=icpc F77=ifort FC=ifort

## --------- ##
## Platform. ##
## --------- ##

hostname = d25
uname -m = x86_64
uname -r = 4.4.0-83-generic
uname -s = Linux
uname -v = #106-Ubuntu SMP Mon Jun 26 17:54:43 UTC 2017

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /snap/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:5535: checking build system type
configure:5549: result: x86_64-pc-linux-gnu
configure:5569: checking host system type
configure:5582: result: x86_64-pc-linux-gnu
configure:5602: checking target system type
configure:5615: result: x86_64-pc-linux-gnu
configure:5744: checking for gcc
configure:5771: result: icc
configure:6000: checking for C compiler version
configure:6009: icc --version >&5
./configure: line 6011: icc: command not found
configure:6020: $? = 127
configure:6009: icc -v >&5
./configure: line 6011: icc: command not found
configure:6020: $? = 127
configure:6009: icc -V >&5
./configure: line 6011: icc: command not found
configure:6020: $? = 127
configure:6009: icc -qversion >&5
./configure: line 6011: icc: command not found
configure:6020: $? = 127
configure:6040: checking whether the C compiler works
configure:6062: icc    conftest.c  >&5
./configure: line 6064: icc: command not found
configure:6066: $? = 127
configure:6104: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Open MPI"
| #define PACKAGE_TARNAME "openmpi"
| #define PACKAGE_VERSION "1.10.7"
| #define PACKAGE_STRING "Open MPI 1.10.7"
| #define PACKAGE_BUGREPORT "http://www.open-mpi.org/community/help/"
| #define PACKAGE_URL ""
| #define OPAL_ARCH "x86_64-pc-linux-gnu"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:6109: error: in `/tmp/openmpi-1.10.7':
configure:6111: error: C compiler cannot create executables
See `config.log' for more details

 

0 Kudos
2 Replies
Jakub_S_1
Beginner
748 Views

Hi there,

Problem solved. I used sudo along with ./configure so the system tried to use default root compilers as they weren't configured the error appeared. Just get rid of sudo, and then OpenMPI installer will look for compilers configured in the user profile.

 

0 Kudos
TimP
Honored Contributor III
748 Views

Apparently, you didn't source the compilervars.sh script in your Intel compiler installation under sudo so as to be able to run them as root.  As you figured out, it's normal to build openmpi as a plain user, then sudo install (never running the compilers as root).

0 Kudos
Reply