I am having problems installing scalapack with the installer and was wondering if anyone can help.
Info on the system is:
~/scalapack_installer_0.96> uname -a
Linux hecate 2.6.5-7.286-sn2 #1 SMP Thu May 31 10:12:58 UTC 2007 ia64 ia64 ia64 GNU/Linux
Info on the compiler:
~/scalapack_installer_0.96> which ifort
/opt/intel/Compiler/11.1/069/bin/ia64/ifort
Info on the MPI lib:
~/scalapack_installer_0.96> mpif77 -show
ifort -I/home/mamat/software/include -pthread -L/home/mamat/software/lib -lmpi_f77 -lmpi -lopen-rte -lopen-pal -ldl -Wl,--export-dynamic -lnsl -lutil
Below is the error I get after issuing the following command: ./setup.py --downblas --downlapack --downblacs --f90=ifort
========================================
Setting up the framework
The Fortran 90/95 compiler is ifort
Looking for MPI binaries... mpicc and mpif77 found.
mpicc : /home/mamat/software/bin/mpicc
mpif77 :/home/mamat/software/bin/mpif77
Looking for mpi.h... found in /home/mamat/software/include
Checking if mpicc works... yes
Checking if mpif77 works... yes
Checking if the Fortran 90/95 compiler works... yes
Setting Fortran mangling... -DAdd_
Setting download command...
Checking availability of urllib... available
Testing urllib... not working
Checking availablility of wget... available
Testing wget... working
Setting ranlib command... /usr/bin/ranlib
Detecting Fortran 77 compiler... unknown
Detecting C compiler... unknown
Selected C compiler flags: -O3
Selected Fortran77 compiler flags: -O3
Selected loader flags (C main):
Selected loader flags (F77 main):
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: /home/mamat/software/bin/mpif77 -o lnk tmpf.o tmpc.o
error is:
****************************************
tmpc.o(.text+0x0): In function `main':
: multiple definition of `main'
/opt/intel/Compiler/11.1/069/lib/ia64/for_main.o(.text+0x0): first defined here
ld: Warning: size of symbol `main' changed from 128 in /opt/intel/Compiler/11.1/069/lib/ia64/for_main.o to 80 in tmpc.o
/opt/intel/Compiler/11.1/069/lib/ia64/for_main.o(.text+0x42): In function `main':
: undefined reference to `MAIN__'
****************************************

