LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Jeff Squyres (jsquyres_at_[hidden])
Date: 2003-06-25 05:52:11


On Wed, 25 Jun 2003, x z wrote:

> To recapture, I am running on a network of 4 Sun Ultra/Blade100 machines
> with Solaris 7. I was not able to run certain testing programs in
> BLACS. Now I have just installed LAM 6.5.9, as suggested by Jeff
> Squyres, with gcc and f77 as the underlying compilers. When I installed
> Lam and "configured" it, I did not change any of the configure
> switches, that is, I simply typed "./configure --prefix=...."

If you're going to be using LAM with high performance computational code,
you more than likely want to use the native Sun compilers, not the GNU
compilers. I would recommend setting the following environment variables:

CC cc
CXX CC
FC f77
F77 f77

before running configure. LAM's configure script unfortunately has a GNU
bias in that it will automatically look for "gcc", "g++", and "g77" before
any other compilers unless you set these environment variables. Although
the GNU compilers are decent, the native Solaris compilers are better.

> I am not able to compile two of the BLACS testing programs:
>
> 1. xtc_CsameF77
>
> prompt% make xtc_CsameF77
> rm -f mpif.h
> ln -s /home/lam6.5.9/include/mpif.h mpif.h
> mpif77 -c -u -f -O4 tc_fCsameF77.f
> tc_fCsameF77.f:
> MAIN tctst:
> mpicc -c -O3 -DSYSINC -I/home/lam6.5.9/include -DAdd_ -DBlacsDebugLvl=1
> -DUseMpi2 tc_cCsameF77.c
> mpif77 -o /home/BLACS/INSTALL/EXE/xtc_CsameF77 tc_fCsameF77.o
> tc_cCsameF77.o /home/lam6.5.9/lib/libmpi.a
> Undefined first referenced
> symbol in file
> __muldi3
> /home/lam6.5.9/lib/libmpi.a(lamonesided.o)
> ld: fatal: Symbol referencing errors. No output written to
> /home/BLACS/INSTALL/EXE/xtc_CsameF77
> *** Error code 1
> make: Fatal error: Command failed for target
> `/home/BLACS/INSTALL/EXE/xtc_CsameF77'

This name (muldi3) rings a distant bell... Doing some searches on the LAM
list, I see a few mails about this issue. For example, check out
http://www.lam-mpi.org/MailArchives/lam/msg02602.php.

This suggests that you may be mixing the Solaris and GNU compilers.
Indeed, in re-reading your above text, it looks like you used the GNU C
compiler (gcc) but the Solaris Fortran compiler (f77). This is almost
never a good idea. You might want to re-configure and recompile LAM and
see if that help.

> 2. xfmpi_sane
> [snipped]
> *** Error code 1
> make: Fatal error: Command failed for target
> `/home/BLACS/INSTALL/EXE/xfmpi_sane'

This will likely be the same issue as #1.

-- 
{+} Jeff Squyres
{+} jsquyres_at_[hidden]
{+} http://www.lam-mpi.org/