LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Tim Prince (tprince_at_[hidden])
Date: 2004-11-30 14:21:30


At 08:59 AM 11/30/2004, Luciano Pezzi wrote:

>Dear All,
>
>I have not succeded on my LAM-MPI compiling. I have a toshiba laptop
>with Suse Linux 8.1 in it and I am using the icc and ifort (intel)
>compilers. To compile LAM-MPI I am using the following commands and libs:
>
>>export CC=/opt/intel_cc_80/bin/icc
>>export CXX=/opt/intel_cc_80/bin/icc
>>export FC=/opt/intel_fc_80/bin/ifort
>
>>export CFLAGS='-static -L/opt/intel_cc_80/lib -lcprts -lguide'
>>export CXXFLAGS='-static -L/opt/intel_cc_80/lib -lcprts -lguide'
>>export FFLAGS='-static -L/opt/intel_fc_80/lib -lcprts -lguide'
>
>>./configure --prefix=/opt/lam_intel
>
>
>Up to here is fine, however when I do make I get
>the error messages listed below. Does anybody have a
>suggestion? Thanks a lot in advance for any help.
>
>regards,
>
>Luciano Pezzi
>
>--------------------------------------------
>
>make[2]: Entering directory `/home2/lpp/LAM-MPI/lam-7.1.1/otb/lamclean'
>/bin/sh ../../libtool --mode=link /opt/intel_cc_80/bin/icc -O3 -static
>-L/opt/intel_cc_80/lib -lcprts -lguide -pthread -o lamclean lamclean.o
>.../../share/liblam/liblam.la ../../share/libltdl/libltdlc.la -lutil
>/opt/intel_cc_80/bin/icc -O3 -o lamclean
>lamclean.o -L/opt/intel_cc_80/lib -pthread
>../../share/liblam/.libs/liblam.a .../../share/libltdl/.libs/libltdlc.a
>-lcprts -lguide -ldl -lutil
>/opt/intel_cc_80/lib/libcxa.so.5: undefined reference to `_uw_parse_lsda_info'
>/opt/intel_cc_80/lib/libcxa.so.5: undefined reference to
>`_dw2_size_of_encoded_value'
>/opt/intel_cc_80/lib/libcxa.so.5: undefined reference to
>`_dw2_read_encoded_value'
>/opt/intel_cc_80/lib/libcxa.so.5: undefined reference to `_ReadULEB'
>/opt/intel_cc_80/lib/libcxa.so.5: undefined reference to `_ReadSLEB'
>make[2]: *** [lamclean] Error 1
>make[2]: Leaving directory `/home2/lpp/LAM-MPI/lam-7.1.1/otb/lamclean'
>make[1]: *** [all-recursive] Error 1
>make[1]: Leaving directory `/home2/lpp/LAM-MPI/lam-7.1.1/otb'
>make: *** [all-recursive] Error 1

My WAG of the day is you have the alternate STL library options mixed
up. In addition to specifying CXX to be icpc, you should let both the icpc
compile and the CXXFLAGS link default to use libstdc++ (assuming you
installed a suitable g++ prior to installing icpc). If you wish to use the
-lcprts library from Dinkumware, you should be using the -cxxlib-icc flag
with icpc. You need compatible C++ header files and libraries. I expect
your C++ application will need to use the same STL as your lam build.

Tim Prince