I have successfully run the Scalapack installer v0.91 using Intel compilers with MPICH. I am now trying to do the same with PGI compilers, but am getting the following error:
setup.py --mpibindir=/afs/isis/pkg/mpich/pgi/bin --mpiincdir=/afs/isis/pkg/mpich/pgi/include --downblacs --downblas --downlapack --mpicc=mpicc --mpif77=mpif77
========================================
Setting up the framework
MPI bin dir is /afs/isis/pkg/mpich/pgi/bin
MPI include dir is /afs/isis/pkg/mpich/pgi/include
mpicc is mpicc
mpif77 is mpif77
Checking if mpicc works... yes
Checking if mpif77 works... yes
Setting Fortran mangling... -DAdd_
Setting download command... urllib2
Setting ranlib command... /usr/bin/ranlib
Detecting Fortran compiler... unknown
Detecting C compiler... unknown
Selected C compiler flags: -O3
Selected Fortran77 compiler flags: -O3
Selected loader flags:
Selected NOOPT flags:
Checking loader...
COMMON: in check_linking: cannot link
Cannot link a C main program to a Fortran77 subroutine
Make sure that the appropriate flags are passed to the linker.
command is: mpif77 -o lnk tmpf.o tmpc.o
error is:
****************************************
tmpc.o: In function `main':
tmpc.c:(.text+0x0): multiple definition of `main'
/afs/isis.unc.edu/pkg/pgi-716/linux86-64/7.1-6/lib/pgfmain.o:pgfmain.c:(.text+0x0): first defined here
/usr/bin/ld: Warning: size of symbol `main' changed from 79 in /afs/isis.unc.edu/pkg/pgi-716/linux86-64/7.1-6/lib/pgfmain.o to 31 in tmpc.o
/afs/isis.unc.edu/pkg/pgi-716/linux86-64/7.1-6/lib/pgfmain.o: In function `main':
pgfmain.c:(.text+0x34): undefined reference to `MAIN_'
****************************************
It appears that the framework.py script is unable to detect the PGI compilers. Is there a workaround for this?
Mike

