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: 2005-11-09 11:48:20


On Nov 8, 2005, at 6:58 PM, aas_at_[hidden] wrote:

> Hello,
>
> I' m trying to build LAM-7.1.1 for a SunFire V220 machine
> running recommended patched Solaris 9 with gcc-3.4.2
> (and everything it needs from sunfreeware).
>
> Configuration, making and building of LAM-7.1.1 went just fine with:
>
> '.configure --libdir=/usr/local/lib/64'
>
> CFLAGS=-m64
> FFLAGS=-m64
> CXXFLAGS=-m64
>
> and
>
> LD_LIBRARY_PATH_32=/usr/lib:/usr/openwin/lib:/usr/local/lib
> LD_LIBRARY_PATH_64=/usr/lib/64:/usr/openwin/lib/64:/usr/local/lib/64
>
> which I got from 'man ld.so.1'.
>
> but lamtest configuration says:
>
> ld: warning: file /usr/local/lib/64/liblamf77mpi.a(dupfn_f.o):
> wrong ELF class: ELFCLASS64
> ld: elf error: file /usr/local/lib/64/libmpi.a(MPI.o): elf_getshdr:
> Request error: class file/memory mismatch
> ld: elf error: file /usr/local/lib/64/libmpi.a(MPI.o): elf_getshdr:
> Request error: class file/memory mismatch
> ld: elf error: file /usr/local/lib/64/libmpi.a(MPI.o): elf_getshdr:
> Request error: class file/memory mismatch
> ld: elf error: file /usr/local/lib/64/libmpi.a(MPI.o): elf_getshdr:
> Request error: class file/memory mismatch
> ld: elf error: file /usr/local/lib/64/libmpi.a(MPI.o): elf_getshdr:
> Request error: class file/memory mismatch
> ld: warning: file /usr/local/lib/64/libmpi.a(MPI.o): wrong ELF
> class: ELFCLASS64
> ld: fatal: File processing errors. No output written to conftest
> collect2: ld returned 1 exit status
> mpif77: No such file or directory

You need to make sure that CFLAGS, FFLAGS, and CXXFLAGS are set to -
m64 when running the lamtests configure script as well as the LAM/MPI
configure script. The wrapper compilers in LAM/MPI do not
automatically pick up and include the -m64 flag, so it needs to be
given to the lamtests configure script.

If that doesn't clean things up, please include the full config.log
from running the lamtest configure script.

Thanks,

Brian

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