Library Linkage problems

One possibility is the OpenMPI version you’re using. Earlier version of OpenMPI have a bug which recognize PGI version “10.x” as “1.0x” and use the wrong flags. (See problem compiling openmpi-1.3.2 with PG Compiles) Make sure that your building OpenMPI 1.4.1 or later.

Also, try setting each of the environment variables before running configure. It’s possible that the env settings aren’t being used.

i.e. in Bash:

export CC=pgcc 
export FC=pgfortran 
export F77=pgfortran 
export CXX=pgcpp 
export CFLAGS=-fast 
export FCFLAGS=-fast 
export FFLAGS=-fast 
export CXXFLAGS=-fast 
./configure --prefix=/usr/local/openmpi > & configure.log

in csh replace ‘export’ with ‘setenv’ and remove the “=”.


Finally, please double check that pgcc is working properly by compiling a simple C program.

If none of these fix the problem, please post the full error from the config.log file (i.e the log file created by the configure script, not the redirected output from configure.log)

  • Mat