LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Brian Barrett (brbarret_at_[hidden])
Date: 2003-11-21 18:55:47


On Nov 19, 2003, at 9:53 PM, Praveen Agrawal wrote:

> I have been trying to get LAM work in 64bit on
> Solaris8, but after the installation is complete, I
> cann't pass
> '-xarch=v9' flag to mpicc. The message is 'wrong ELF
> class: ELFCLASS32'
>
> I had specified CFLAGS='-xarch=v9' &
> CXXFLAGS='-xarch=v9'
> before the 'configure' step.

It sounds like you've done most everything right. You should also add
FLAGS='-xarch=v9', but that shouldn't kill you. On our Solaris 8
machines with LAM 7.0.3, I can do the following without problems:

   % ./configure CFLAGS='-xarch=v9' CXXFLAGS='-xarch=v9'
FFLAGS='-xarch=v9' CC=cc \
     CXX=CC FC=f77 --prefix=<DIR>
   % make all install
   % rehash
   % mpicch -xarch=v9 foo.c -o foo

You may want to double check that you are using the mpicc that you
think you are - On more than one occasion, my problem has been that I
forgot to rehash (I'm a tcsh guy) and grabbed a random mpicc.

Hope this helps,

Brian

-- 
   Brian Barrett
   LAM/MPI developer and all around nice guy
   Have a LAM/MPI day: http://www.lam-mpi.org/