scalapack_installer_0.96 problem

Open discussion regarding features, bugs, issues, vendors, etc.

scalapack_installer_0.96 problem

Postby linfengfeiye » Wed Jun 30, 2010 7:07 am

Hi,i am using scalapack_installer_0.96 to install scalapack
my script and error is as follows.
can someone help me to solve this problem?

root@node8:/softwareBAK/mathlibs/scalapack/scalapack_installer_0.96 # ./ --prefix=/opt/mathlibs/scalapack --mpibindir=/opt/mpich/intel/bin --mpiincdir=/opt/mpich/intel/include --blaslib=/opt/mathlibs/gotolib/1.1.26/libgoto.a --f90=gfortran --downblacs --downlapack
Setting up the framework

Install directory is... /opt/mathlibs/scalapack
MPI bin dir is /opt/mpich/intel/bin
MPI include dir is /opt/mpich/intel/include
The Fortran 90/95 compiler is gfortran
mpicc : /opt/mpich/intel/bin/mpicc
mpif77 : /opt/mpich/intel/bin/mpif77
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: /opt/mpich/intel/bin/mpif77 -o lnk tmpf.o tmpc.o
error is:
tmpc.o: In function `main':
tmpc.c:(.text+0x0): multiple definition of `main'
/opt/intel/Compiler/11.1/059/lib/intel64/for_main.o:/export/users/nbtester/efi2linux_nightly/branch-11_1/20091013_000000/libdev/frtl/src/libfor/for_main.c:(.text+0x0): first defined here
ld: Warning: size of symbol `main' changed from 80 in /opt/intel/Compiler/11.1/059/lib/intel64/for_main.o to 64 in tmpc.o
/opt/intel/Compiler/11.1/059/lib/intel64/for_main.o: In function `main':
/export/users/nbtester/efi2linux_nightly/branch-11_1/20091013_000000/libdev/frtl/src/libfor/for_main.c:(.text+0x38): undefined reference to `MAIN__'

root@node8:/softwareBAK/mathlibs/scalapack/scalapack_installer_0.96 #
Posts: 1
Joined: Wed Jun 30, 2010 7:03 am

Re: scalapack_installer_0.96 problem

Postby admin » Thu Jul 01, 2010 10:17 am

Hi, I would try to give the following linking flag
Code: Select all

to the installer.
Intel compilers assume by default that the main program is written in Fortran.
See ... r_main.htm
Site Admin
Posts: 616
Joined: Wed Dec 08, 2004 7:07 pm

Re: scalapack_installer_0.96 problem

Postby shanec » Sun Dec 06, 2015 10:07 pm

FYI, the way to do this via command line options is,

Code: Select all
python --ldflags_fc="-nofor_main"

Took me a little while to figure that out.
Posts: 1
Joined: Sun Dec 06, 2015 10:05 pm

Return to User Discussion

Who is online

Users browsing this forum: No registered users and 6 guests