LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Ralf Wildenhues (Ralf.Wildenhues_at_[hidden])
Date: 2006-03-22 10:22:14


* Robert LeBlanc wrote on Tue, Mar 21, 2006 at 06:14:52PM CET:
> >
> > /opt/intel/cc/9.0/bin/icpc -O3 -pthread -o mpicc mpicc.o wrap_cc.o
> > wrap_engine_cc.o ../../share/liblam/.libs/liblam.a -ldl -lutil
> > mpicc.o(.text+0xca7): In function `main':
> > mpicc.cc: undefined reference to `__gthrw_pthread_once(int*, void (*)())'
> > mpicc.o(.gnu.linkonce.t._ZNSt6vectorISsSaISsEE9push_backERKSs[.gnu.linkonc
> > e.t._ZNSt6vectorISsSaISsEE9push_backERKSs]+0x88f):
> > In function `std::vector<std::string, std::allocator<std::string>
> > >::push_back(std::string const&)':
> > mpicc.cc: undefined reference to `__gthrw_pthread_once(int*, void (*)())'

FWIW, a bit of web searching turned this up:
http://softwareforums.intel.com/ids/board/message?board.id=16&message.id=3484

So you may want to try
  
  ./configure --prefix=/usr/local/lam/lam-7.1.2_intel \
              --without-exflags \
              --with-boot-tm=/var/spool/PBS \
              CC=/opt/intel/cc/9.0/bin/icc \
              CXX=/opt/intel/cc/9.0/bin/icpc \
              FC=/opt/intel/fc/9.0/bin/ifort \
              CPPFLAGS=-D_GLIBCXX_GTHREAD_USE_WEAK=0 \
              CXXFLAGS=-pthread

Hope that helps (feedback appreciated).

Cheers,
Ralf