Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

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