At 11:33 PM 12/14/2004, Huy Tran wrote:
>Hi,
>I'm trying to compile lam-7.1.1 with Intel compiler 8.1. I've already set
>environment variables by iccvars.sh. After configuring successfully, I got
>compiling/linking errors as follows:
>
>.... ( truncated by author )
>
>laminfo.o(.text+0x90e9): In function `__sti__$E':
>: undefined reference to `std::allocator<char>::~allocator()'
>laminfo.o(.text+0x90fc): In function `destr_detour315':
>: undefined reference to `std::allocator<char>::~allocator()'
>laminfo.o(.text+0x9116): In function `destr_detour316':
>: undefined reference to `std::allocator<char>::~allocator()'
>laminfo.o(.text+0x9130): In function `destr_detour317':
>: undefined reference to `std::allocator<char>::~allocator()'
>laminfo.o(.text+0x914a): In function `destr_detour318':
>: undefined reference to `std::allocator<char>::~allocator()'
>laminfo.o(.text+0x9164): more undefined references to
>`std::allocator<char>::~allocator()' follow
>laminfo.o(.eh_frame+0x12): In function `.eh_frame_seg':
>: undefined reference to `__gxx_personality_v0'
>make[2]: *** [laminfo] Error 1
>make[2]: Leaving directory `/data/parallel/lam-7.1.1/tools/laminfo'
>make[1]: *** [all-recursive] Error 1
>make[1]: Leaving directory `/data/parallel/lam-7.1.1/tools'
>make: *** [all-recursive] Error 1
>
>In Makefile, I already add LDFLAGS and CXXLDFLAGS as in
>http://www.lam-mpi.org/MailArchives/lam/msg08149.php. I guest that that is
>error in linking STL libraries? Please help me solve this problem.
You picked some advice given for Intel 7.1 compilers, given by someone who
didn't believe in using PATH or LD_LIBRARY_PATH variables as set by the
intel compiler scripts. You have specified icc (C compiler) as your C++
compiler. Invoking the compiler as icpc sets the C++ linking options,
including the path to the STL chosen at installation time.
Tim Prince
|