LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Borenstein, Bernard S (bernard.s.borenstein_at_[hidden])
Date: 2006-09-20 12:07:26


Thomas :
 
  Please set your CXX option to icpc for C++ and everything will be
fine.
 
Bernie Borenstein
The Boeing Company

        -----Original Message-----
        From: McCabe, Thomas [mailto:Thomas_McCabe_at_[hidden]]
        Sent: Tuesday, September 19, 2006 1:54 PM
        To: lam_at_[hidden]
        Subject: LAM: Make error with Intel Compiler
        
        

        Hi,

        I have already installed the Intel C++ Compiler for Linux
(9.1.043) and am trying to install LAM. Before I use the configure
script, I run:

        CC=icc; CXX=icc; export CC CXX

        So that LAM is build using the Intel compiler. Also, I need
mpicc to pass calls to icc, not gcc. I run the configure script with no
issues. When I run make, I get this error:

        make[2]: Leaving directory `/opt/lam-7.1.2/tools/lamboot'
        Making all in laminfo
        make[2]: Entering directory `/opt/lam-7.1.2/tools/laminfo'
        if icc -DHAVE_CONFIG_H -I. -I. -I../../share/include
-DLAM_PREFIX="\"/opt/lam\"
        " -DLAM_BINDIR="\"/opt/lam/bin\""
-DLAM_LIBDIR="\"/opt/lam/lib\"" -DLAM_INCDIR="
        \"/opt/lam/include\"" -DLAM_PKGLIBDIR="\"/opt/lam/lib/lam\""
-DLAM_SYSCONFDIR="\
        "/opt/lam/etc\"" -I../../share/include -DLAM_BUILDING=1 -O3
-pthread -MT lam
        info.o -MD -MP -MF ".deps/laminfo.Tpo" -c -o laminfo.o
laminfo.cc; \
        then mv -f ".deps/laminfo.Tpo" ".deps/laminfo.Po"; else rm -f
".deps/laminfo.Tpo
        "; exit 1; fi
        /bin/sh ../../libtool --tag=CXX --mode=link icc -O3 -pthread
-o laminfo la
        minfo.o ../../share/libmpi/libmpi.la
../../share/liblam/liblam.la -laio -lutil

        icc -O3 -pthread -o laminfo laminfo.o
../../share/libmpi/.libs/libmpi.a ../../s
        hare/liblam/.libs/liblam.a -ldl -laio -lutil
        laminfo.o: In function `main':
        laminfo.cc:(.text+0x2fb): undefined reference to
`std::allocator<char>::allocato
        r()'
        laminfo.cc:(.text+0x310): undefined reference to
`std::basic_string<char, std::c
        har_traits<char>, std::allocator<char> >::basic_string(char
const*, std::allocat
        or<char> const&)'
        laminfo.cc:(.text+0x32a): undefined reference to
`std::basic_string<char, std::c
        har_traits<char>, std::allocator<char> >::~basic_string()'
        ....
        ...
        ..
        laminfo.o:laminfo.cc:(.text+0x86f4): more undefined references
to `std::allocato
        r<char>::~allocator()' follow
        laminfo.o:(.eh_frame+0x12): undefined reference to
`__gxx_personality_v0'
        make[2]: *** [laminfo] Error 1
        make[2]: Leaving directory `/opt/lam-7.1.2/tools/laminfo'
        make[1]: *** [all-recursive] Error 1
        make[1]: Leaving directory `/opt/lam-7.1.2/tools'
        make: *** [all-recursive] Error 1

        The "....." represents many lines of the same
"laminfo.cc/laminfo.c" error lines.

        Any idea what the problem is?