Thanks, I have configured also for f77 as you suggest.
The configure now completes, however it outputs a strange error message: *** Fortran 90/95 compiler checking whether we are using the GNU Fortran compiler... no checking whether f95 accepts -g... yes checking for Fortran flag to compile .f files... none checking for Fortran flag to compile .f90 files... none checking whether f77 and f95 compilers are compatible... noconfigure: WARNING: *** Fortran 77 and Fortran 90 compilers are not link compatible
configure: WARNING: *** Disabling Fortran 90/95 bindings I have checked f77 invokes the proper Studio11 compiler. And of course the objects are compatible between all Studio 11 compilers... Then the make fails in orte/mca/pls/base with message "pls_base_context.c", line 48: undefined symbol: MAXHOSTNAMELEN Any further idea ? PS. I attach the relevant output. Brian Barrett wrote:
On Feb 24, 2006, at 5:25 AM, Pierre Valiron wrote:I have tried to build the 1.0.2a8 version on Solaris Opteron with Sun Studio 11. The configure fails on attempting to guess the largest fortran integer. I attach my build script, and output from configure.Hopefully there is a simple fix.Open MPI has both a Fortran 77 and Fortran 90 bindings layer, so we configure and test both compilers. You need to add two more environment variables to get Open MPI configured correctly:F77=f77 FCFLAGS="-O -xtarget=opteron -xarch=amd64"The F77 / FFLAGS set the Fortran 77 compiler and its associated flags. FC / FCFLAGS set the Fortran (90,95,03) compiler and its associated flags.Because F77 was unset, configure tried using the g77 it found in your path. But because FFLAGS *was* set, it tried using the arguments in FFLAGS, which are for Sun's compiler, not gcc.Hope this makes sense, Brian
-- Soutenez le mouvement SAUVONS LA RECHERCHE : http://recherche-en-danger.apinc.org/ _/_/_/_/ _/ _/ Dr. Pierre VALIRON _/ _/ _/ _/ Laboratoire d'Astrophysique _/ _/ _/ _/ Observatoire de Grenoble / UJF _/_/_/_/ _/ _/ BP 53 F-38041 Grenoble Cedex 9 (France) _/ _/ _/ http://www-laog.obs.ujf-grenoble.fr/~valiron/ _/ _/ _/ Mail: pierre.vali...@obs.ujf-grenoble.fr _/ _/ _/ Phone: +33 4 7651 4787 Fax: +33 4 7644 8821_/ _/_/
solaris.tar.bz2
Description: Binary data