Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

From: Hein Blöd (pelotudo_at_[hidden])
Date: 2006-05-03 15:19:39


Hi,

I found two bugs in the M4-macros
        
        openmpi-1.0.2/config/f90_get_sizeof.m4
        openmpi-1.0.2/config/f90_get_alignment.m4

In both files a Fortran90 and a C module is created as test files for
compilation. Anyway, they suffer from missing $LDFLAGS entries in the
right position, since compilation on Mac OS X generally requires the
user to specify

        export LDFLAGS=-lSystemStubs

to be able to perform the compilation of openmpi at all.

Bugfix: Replace in both files the line:

OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -
o conftest]

with

OMPI_LOG_COMMAND([$FC $FCFLAGS $FCFLAGS_f90 conftestf.f90 conftest.o -
o conftest $LDFLAGS],

and you are done.

I tested this with:
gcc: powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 20041026 (Apple
Computer, Inc. build 4061)
g95: G95 (GCC 4.0.3 (g95!) Apr 27 2006)
on an iMac G5 running Mac OS X 10.4.6.

The non-standard fortran compilers have been set by
        export F77=g95
        export FC=g95
prior to the ./configure step.

Kind regards,
Hein Bloed