The LAPACK forum has moved to https://github.com/Reference-LAPACK/lapack/discussions.

Scalapack Installer problem on Mac OS X 10.6

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

Scalapack Installer problem on Mac OS X 10.6

Postby sreedharmanchu » Fri Mar 05, 2010 8:13 pm

Hello,
I've been trying to install scalapack package on my macbook using scalapack installer. I checked this forum in every possible way to make it work. Some how I'm not able to get through it. I have tried different options for linking, but some how everything is failing. Could you please help me with it? I'd greatly appreciate any help. Here is the message I'm getting on terminal:

Sreedhar:scalapack_installer Sreedhar$ setup.py --downblas --downblacs --downlap
ack --mpif77=/Users/Sreedhar/Desktop/mpi_install/bin/mpif77 --mpicc=/Users/Sreed
har/Desktop/mpi_install/bin/mpicc --mpibindir=/Users/Sreedhar/Desktop/mpi_instal
l/bin/ --mpiincdir=/Users/Sreedhar/Desktop/mpi_install/include/
========================================
Setting up the framework

mpif77 is /Users/Sreedhar/Desktop/mpi_install/bin/mpif77
mpicc is /Users/Sreedhar/Desktop/mpi_install/bin/mpicc
MPI bin dir is /Users/Sreedhar/Desktop/mpi_install/bin/
MPI include dir is /Users/Sreedhar/Desktop/mpi_install/include/
Checking if mpicc works.../Users/Sreedhar/Desktop/scalapack_installer/script/uti
ls.py:39: DeprecationWarning: The popen2 module is deprecated. Use the subproce
ss module.
import popen2
yes
Checking if mpif77 works... yes
Setting Fortran mangling... -DAdd_
Setting download command... 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: /Users/Sreedhar/Desktop/mpi_install/bin/mpif77 -o lnk tmpf.o tmpc.
o
error is:
****************************************
ipo: warning #11015: Warning unknown option -no_compact_unwind
ld: duplicate symbol _main in tmpc.o and /usr/bin/ifort-11.1-base/lib/for_main.o

****************************************
sreedharmanchu
 
Posts: 1
Joined: Fri Mar 05, 2010 8:07 pm

Re: Scalapack Installer problem on Mac OS X 10.6

Postby admin » Sat Mar 06, 2010 1:28 am

I believe the flag -nofor_main as linker flag for --ldflags_c may help.
Usually the flag is set automatically when you are using the INTEL compiler.
Not sure why the installer did not catch it this time.
Detecting Fortran compiler... unknown

Let me know if it fixes the problem.
Also you may want to use mpif90 instead of mpif77 (LAPACK has now some f90 features)
Julie
admin
Site Admin
 
Posts: 616
Joined: Wed Dec 08, 2004 7:07 pm


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 5 guests