LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: fjcsuper_at_[hidden]
Date: 2005-01-17 05:03:31


Hi all

I am trying to build lam-7.1.1 on an AMD Opteron 64-bit machine, running Solaris 10 x86, build 72.

I use Sun's Studio compilers.
The problem is with the make install step.

This is the script i use to build LAM:
(bash)

export FC=/opt/SUNWspro/bin/f90
export CC=/opt/SUNWspro/bin/cc
export CXX=/opt/SUNWspro/bin/CC
./configure --prefix=/home/fjcsuper/lamMpi64 --enable-shared --without-mpi2cpp --without-romio --with-cflags="-fast -xarch=amd64" --with-fflags="-fast -xarch=amd64"
make
make install

and these are the error messages i got:

Making install in lamclean
/bin/bash ../../libtool --mode=link /opt/SUNWspro/bin/cc -fast -xarch=amd64 -mt -fast -xarch=amd64 -o lamclean lamclean.o ../../share/liblam/liblam.la ../../share/libltdl/libltdlc.la -lsocket -lnsl -lthread -lthread
/opt/SUNWspro/bin/cc -fast -xarch=amd64 -fast -xarch=amd64 -o .libs/lamclean lamclean.o -mt ../../share/liblam/.libs/liblam.so ../../share/libltdl/.libs/libltdlc.a -ldl -lsocket -lnsl -lthread -R/home/fjcsuper/lamMpi64/lib
ld: fatal: file ../../share/liblam/.libs/liblam.so: wrong ELF class: ELFCLASS32
ld: fatal: File processing errors. No output written to .libs/lamclean
*** Error code 1
make: Fatal error: Command failed for target `lamclean'
Current working directory /home/fjcsuper/lam-7.1.1/otb/lamclean
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2; \
dot_seen=no; \
target=`echo install-recursive | sed s/-recursive//`; \
list='bfctl bfstate doom fctl filedr fstate ipcdr kdump lamclean lamexec lamgrow lamhalt lamnodes lamshrink lamtrace loadgo mpimsg mpirun mpitask state sys tping lamcheckpoint lamrestart'; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (cd $subdir && make $local_target) \
   || case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$dot_seen" = "no"; then \
  make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `install-recursive'
Current working directory /home/fjcsuper/lam-7.1.1/otb
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2; \
dot_seen=no; \
target=`echo install-recursive | sed s/-recursive//`; \
list='config doc share otb tools etc man'; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (cd $subdir && make $local_target) \
   || case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$dot_seen" = "no"; then \
  make "$target-am" || exit 1; \
fi; test -z "$fail"
make: Fatal error: Command failed for target `install-recursive'

Can someone help me with this? I would really appreciate it. Please tell me if you need more details.
Thank You.
Juncheng