LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Robert LeBlanc (leblanc_at_[hidden])
Date: 2006-03-21 13:42:41


Have you tried to add the lib paths to /etc/ld.so.conf and then running
ldconfig?

/opt/intel/cc/9.0/lib
/opt/intel/fc/9.0/lib

In fact, I don't think you need the pthread flag in any case, LAM will still
compile pthreads into MPI applications without this flag. LAM is so small
that you will probably increase runtime by even having pthreads in there.

Robert LeBlanc
BioAg Computer Support
Brigham Young University

> -----Original Message-----
> From: lam-bounces_at_[hidden] [mailto:lam-bounces_at_[hidden]] On Behalf
> Of Paul Van Allsburg
> Sent: Tuesday, March 21, 2006 11:25 AM
> To: General LAM/MPI mailing list
> Subject: Re: LAM: Build LAM 7.1.2 with Intel mpicc.cc undef ref
>
> Still no success. I tried the export of PATH and the flags, I still get
> the same undefined reference to `__gthrw_pthread_once(int*, void (*)())'.
> -paul
>
>
> Robert LeBlanc wrote:
> > I think you may need to export the bin dirs to your path and possibly
> add
> > the libs to /etc/ldconfig.cfg. Not sure, this is what I have in my
> > documentation from the last time I compiled it.
> >
> > export CC=icc
> > export CXX=icpc
> > export FC=ifort
> > export PATH=/opt/intel_cc_80/bin:/opt/intel_fc_80/bin:$PATH
> > export CFLAGS='-O3 -tpp7 -cpu=pentium4 -xN'
> > export CXXFLAGS='-O3 -tpp7 -cpu=pentium4 -xN'
> > export FFLAGS='-O3 -tpp7 -cpu=pentium4 -xN'
> >
> > run in the base of the tar ball:
> >
> > ./configure -prefix=/usr/local/lam/intel_80
> > make
> > make install (as root)
> >
> > Robert LeBlanc
> > BioAg Computer Support
> > Brigham Young University
> >
> >
> >>-----Original Message-----
> >>From: lam-bounces_at_[hidden] [mailto:lam-bounces_at_[hidden]] On Behalf
> >>Of Paul Van Allsburg
> >>Sent: Tuesday, March 21, 2006 9:55 AM
> >>To: lam_at_[hidden]
> >>Subject: LAM: Build LAM 7.1.2 with Intel mpicc.cc undef ref
> >>
> >>I have Intel C & Fortran v9 compilers & Cluster toolkit,
> >>running on fedora core 4, my build fails at "Making all in wrappers"
> >>
> >>export CC=/opt/intel/cc/9.0/bin/icc
> >>export CXX=/opt/intel/cc/9.0/bin/icpc
> >>export FC=/opt/intel/fc/9.0/bin/ifort
> >>./configure --prefix=/usr/local/lam/lam-7.1.2_intel --without-exflags
> >>--with-boot-tm=/var/spool/PBS
> >>make all
> >>
> >>-error generated at:
> >>
> >>/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.linko
> nc
> >>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
> (*)())'
> >>
> >>I've also tried the ./configure without the --without-exflags option but
> >>with the same results. Where did I go wrong?
> >>
> >>Thanks,
> >>Paul
> >>
> >>
> >>--
> >>Paul Van Allsburg
> >>Hope College
> >>Holland, Michigan
>
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/