LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Siew Yin Chan (sychan131_at_[hidden])
Date: 2008-12-17 04:50:07


Dear Anthony Chan,

/opt/lam is preinstalled in the Rocks v.4.2 cluster distribution. Since I don't need fortran at the moment, I'll use the "disable" option

Thanks,
Chan

--- On Mon, 12/15/08, Anthony Chan <chan_at_[hidden]> wrote:
From: Anthony Chan <chan_at_[hidden]>
Subject: Re: LAM: Configuration error on MPE2 with LAM 7.1.3
To: "General LAM/MPI mailing list" <lam_at_[hidden]>
Date: Monday, December 15, 2008, 10:53 AM

Since /opt/lam/bin/mpif77 is broken as shown in config.log,
configure just stops there. If you don't need fortran support,
configure with --disable-f77. If you do need fortran support,
I think you want to find out why /opt/lam/bin/mpif77 isn't working.
Is /opt/lam preinstalled or installed by you ?

A.Chan

configure:4011: checking for the linkage of the supplied MPI F77 definitions
configure:4053: /opt/lam/bin/mpif77 -o conftest conftest.f >&5
/tmp/cc82bQ0u.o(.text+0xe): In function `MAIN__':
: undefined reference to `mpi_init__'
/tmp/cc82bQ0u.o(.text+0x26): In function `MAIN__':
: undefined reference to `mpi_comm_rank__'
/tmp/cc82bQ0u.o(.text+0x35): In function `MAIN__':
: undefined reference to `mpi_finalize__'
/tmp/cc82bQ0u.o(.data+0x0): undefined reference to `mpi_win_dup_fn__'
/tmp/cc82bQ0u.o(.data+0x4): undefined reference to `mpi_type_dup_fn__'
/tmp/cc82bQ0u.o(.data+0x8): undefined reference to `mpi_comm_dup_fn__'
/tmp/cc82bQ0u.o(.data+0xc): undefined reference to `mpi_dup_fn__'
/tmp/cc82bQ0u.o(.data+0x10): undefined reference to
`mpi_win_null_delete_fn__'
/tmp/cc82bQ0u.o(.data+0x14): undefined reference to
`mpi_win_null_copy_fn__'
/tmp/cc82bQ0u.o(.data+0x18): undefined reference to
`mpi_type_null_delete_fn__'
/tmp/cc82bQ0u.o(.data+0x1c): undefined reference to
`mpi_type_null_copy_fn__'
/tmp/cc82bQ0u.o(.data+0x20): undefined reference to
`mpi_comm_null_delete_fn__'
/tmp/cc82bQ0u.o(.data+0x24): undefined reference to
`mpi_comm_null_copy_fn__'
/tmp/cc82bQ0u.o(.data+0x28): undefined reference to `mpi_null_delete_fn__'
/tmp/cc82bQ0u.o(.data+0x2c): undefined reference to `mpi_null_copy_fn__'

----- "Siew Yin Chan" <sychan131_at_[hidden]> wrote:

> Dear Anthony Chan,
>
> I followed your instruction:
> Tried mpe2-1.0.7rc3Set CC=gcc and F77=g77 as
> accordance:"/opt/lam/bin/mpicc -showme" returns "gcc
> -I/opt/lam/include -pthread -L/opt/lam/lib -llammpio -llamf77mpi -lmpi
> -llam -lutil -ldl""/opt/lam/bin/mpif77 -showme" returns
"g77
> -I/opt/lam/include -pthread -L/opt/lam/lib -llammpio -llamf77mpi -lmpi
> -llam -lutil -ldl"
> But still it got stuck with the config error "Cannot link with basic
> MPI F77 program", both with and without --with-mpilibs and/or
> --with-f2cmpilibs.
>
> BTW, is it possible to set LAM_INSTALL_DIR as /opt/lam/gnu/ instead of
> /op/lam/? I saw both mpicc and mpif77 is in /opt/lam/gnu/ too. I once
> tried mpe2-1.0.6p1 with this setting - running config returned no
> error, but
> make-install-check returned:
>
> *** Link C program with the MPI tracing library
> .......................... No.
>     The failed command is :
> make[2]: *** No rule to make target `cpi.o', needed by
`cpi_trace'. 
> Stop.
> <omit>
> *** Link F77 program with the MPI and manual logging libraries
> ........... No.
>     The failed command is :
> make[2]: *** No rule to make target `fpilog.o', needed by
`fpilog'. 
> Stop.
> <omit>
>
> Is this the expected output?
>
> Attached are the files when trying mpe2-1.0.7rc3 and mpe2-1.0.6p1. Any
> idea what else should I try?
>
>
> Cheers,
> Chan
>
>
>
> --- On Fri, 12/5/08, Anthony Chan <chan_at_[hidden]> wrote:
> From: Anthony Chan <chan_at_[hidden]>
> Subject: Re: LAM: Configuration error on MPE2 with LAM 7.1.3
> To: "General LAM/MPI mailing list"
> <lam_at_[hidden]>
> Date: Friday, December 5, 2008, 1:36 AM
>
> Your config.log suggests the fortran MPI symbols are not found.
> Instead of setting --with-mpilibs and --with-f2cmpilibs, you should
> just simply set CC, F77, MPI_CC and MPI_F77, i.e.
>
> Set CC to the native C compiler used by lam's mpicc, e.g.
> "/opt/lam/bin/mpicc -showme" will say "gcc4 ....",
then set
> CC=gcc4.
> Set F77 to the native Fortran compiler used by lam's mpif77, e.g.
> "/opt/lam/bin/mpif77 -showme" will say "gfortran ...",
then
> set F77=gfortran.
>
> The whole configure command should be:
>
> <mpe2>/configure CC=gcc4 F77=gfortran \
> MPI_CC=/opt/lam/bin/mpicc MPI_F77=/opt/lam/bin/mpif77 \
> --prefix=....
>
> BTW, you should try using mpe2-1.0.7rc3 which is newer.
> wget ftp://ftp.mcs.anl.gov/pub/mpi/mpe/beta/mpe2-1.0.7rc3.tar.gz .
>
> A.Chan
>
> ----- "Siew Yin Chan" <sychan131_at_[hidden]> wrote:
>
> >
> Dear All,
> >
> > I compile MPE2-1.0.6p1 with LAM/MPI 7.1.3, and encounter the config
> > error of "Cannot link with basic MPI F77 program". The
INSTALL
> > guideline highlights the problem and solution of using MPE with LAM
> > for Fortran MPI programs. I follow the suggestion (i.e. included
> > --with-f2cmpilibs and/or omitted --with-mpilibs) but it fails. Hope
> > someone would point out what I have missed.
> >
> > Related outputs are attached hereby.
> >
> >
> > Thanks,
> > Chan
> >
> >
> >
> >
> > _______________________________________________
> > This list is archived at http://www.lam-mpi.org/MailArchives/lam/
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
>
>
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/

_______________________________________________
This list is archived at http://www.lam-mpi.org/MailArchives/lam/