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-15 08:43:30


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/