Hi there,

I'm having some trouble installing Openmpi and, not being too savvy with
these sorts of things, I'm in need of some help. I think the problem is
something to do with locating the lf2c libraries.

Here's what I've done:

>From the openmpi directory I do a *./configure* it spits out loads of stuff
until I get:

*** Fortran 90/95 compiler
checking for gfortran... gfortran
checking whether we are using the GNU Fortran compiler... yes
checking whether gfortran accepts -g... yes
checking if Fortran 77 compiler works... no
**********************************************************************
* It appears that your Fortran 77 compiler is unable to produce working
* executables.  A simple test application failed to properly
* execute.  Note that this is likely not a problem with Open MPI,
* but a problem with the local compiler installation.  More
* information (including exactly what command was given to the
* compiler and what error resulted when the command was executed) is
* available in the config.log file in this directory.
**********************************************************************
configure: error: Could not run a simple Fortran 77 program.  Aborting.

So after a bit of messing around making sure gfortran is installed - I
thought it came with XCode - I compile a simple "Hello World" fortran file
just to make sure it works, and it did. I also checked (after looking at
the config.log) that f2c was working, and it does.

I think the relevant text from the output log is below, but the whole thing
is attached.

configure:28274: checking for gfortran
configure:28290: found /usr/local/bin/gfortran
configure:28301: result: gfortran
configure:28327: checking for Fortran compiler version
configure:28336: gfortran --version >&5
GNU Fortran (GCC) 4.8.0 20120603 (experimental)
Copyright (C) 2012 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING

configure:28347: $? = 0
configure:28336: gfortran -v >&5
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin11.4.0/4.8.0/lto-wrapper
Target: x86_64-apple-darwin11.4.0
Configured with: ../gcc-4.8-20120603/configure --enable-languages=fortran
Thread model: posix
gcc version 4.8.0 20120603 (experimental) (GCC)
configure:28347: $? = 0
configure:28336: gfortran -V >&5
gfortran: error: unrecognized command line option '-V'
gfortran: fatal error: no input files
compilation terminated.
configure:28347: $? = 1
configure:28336: gfortran -qversion >&5
gfortran: error: unrecognized command line option '-qversion'
gfortran: fatal error: no input files
compilation terminated.
configure:28347: $? = 1
configure:28356: checking whether we are using the GNU Fortran compiler
configure:28369: gfortran -c   conftest.F >&5
configure:28369: $? = 0
configure:28378: result: yes
configure:28384: checking whether gfortran accepts -g
configure:28395: gfortran -c -g  conftest.f >&5
configure:28395: $? = 0
configure:28403: result: yes
configure:28580: checking if Fortran 77 compiler works
configure:28609: /usr/local/scisoft//packages/iraf/iraf/unix/hlib//f77.sh
-o conftest  -L/usr/local/scisoft/lib/ conftest.f  >&5
+ PATH=/v/bin:/bin:/usr/bin:/usr/local/bin
+ s=/tmp/stderr_45833
+ t=/tmp/f77_45833
+ CC=cc
+ CFLAGS='-O3 -DNDEBUG -I/usr/local/scisoft/include/ -finline-functions
-fno-strict-aliasing'
+ EFL=/v/bin/efl
+ EFLFLAGS='system=portable deltastno=10'
+ F2C=/usr/local/scisoft//packages/iraf/iraf/unix/bin.macintel//f2c.e
+ F2CFLAGS='-KRw8 -Nn802'
+ keepc=0
+ warn=1
+ xsrc=0
+ rc=0
+ lib=/lib/num/lib.lo
+ trap 'rm -f /tmp/stderr_45833 ; exit $rc' 0
+ OUTF=a.out
+ cOPT=1
+ G=
+ CPP=/bin/cat
+ CPPFLAGS=
+ case $? in
+ test X-o '!=' X--
+ case "$1" in
+ OUTF=conftest
+ shift 2
+ test X-L/usr/local/scisoft/lib/ '!=' X--
+ case "$1" in
+ echo 'invalid parameter -L/usr/local/scisoft/lib/'
invalid parameter -L/usr/local/scisoft/lib/
+ shift
+ test Xconftest.f '!=' X--
+ case "$1" in
+ set -- -- conftest.f
+ test X-- '!=' X--
+ shift
+ test -n conftest.f
+ case "$1" in
+ case "$1" in
+ f=.f
++ basename conftest.f .f
+ b=conftest
+ '[' 1 = 0 ']'
+ /usr/local/scisoft//packages/iraf/iraf/unix/bin.macintel//f2c.e -KRw8
-Nn802 conftest.f
conftest.f:
   MAIN main:
+ '[' 0 = 1 ']'
+ cc -c -O3 -DNDEBUG -I/usr/local/scisoft/include/ -finline-functions
-fno-strict-aliasing conftest.c
+ rc=0
+ sed '/parameter .* is not referenced/d;/warning: too many parameters/d'
/tmp/stderr_45833
conftest.c:17:1: warning: control reaches end of non-void function
[-Wreturn-type]
} /* MAIN__ */
^
conftest.c:19:52: warning: control reaches end of non-void function
[-Wreturn-type]
/* Main program alias */ int main_ () { MAIN__ (); }
                                                   ^
2 warnings generated.
+ case $rc in
+ '[' 0 = 0 ']'
+ rm -f conftest.c
+ OFILES=' conftest.o'
+ case $cOPT in
+ cOPT=2
+ shift
+ test -n ''
+ case $cOPT in
+ cc -o conftest conftest.o -lf2c -lm
ld: library not found for -lf2c
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
+ rc=1
+ exit 1
+ rm -f /tmp/stderr_45833
+ exit 1
configure:28609: $? = 1
configure: program exited with status 1
configure: failed program was:
|       program main
|
|       end
configure:28625: result: no
configure:28639: error: Could not run a simple Fortran 77 program.
 Aborting.

----------------------


System Software Overview:

      System Version: Mac OS X 10.7.4 (11E53)
      Kernel Version: Darwin 11.4.0

Hardware Overview:

      Model Name: iMac
      Model Identifier: iMac12,1
      Processor Name: Intel Core i7

----------------------

I hope I've provided the right/enough info, as I said I'm no whizz-kid at
this stuff! I'd be glad of any help you can offer, please try and
"dumb-it-down" for me!

Thanks,

Matt.

Attachment: terminal_out.rtf.bz2
Description: BZip2 compressed data

Attachment: config.log.bz2
Description: BZip2 compressed data

Reply via email to