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-02-28 11:15:30


> -----Original Message-----
> From: lam-bounces_at_[hidden] [mailto:lam-bounces_at_[hidden]] On Behalf
> Of Bogdan Costescu
> Sent: Tuesday, February 28, 2006 8:51 AM
> To: General LAM/MPI mailing list
> Subject: Re: LAM: undefined references when compiling Charmm
>
> On Tue, 28 Feb 2006, Josh Hursey wrote:
>
> > Davide probably has it. Adding -lpthread should help address this.
>
> I'm sorry for stubbornly continuing this thread, but I would like to
> have some clarification. Isn't this flag (-lpthread) supposed to be
> automatically dealt with in a properly done installation ?
>
> With my (I know, not very recent) installation using Intel 8.0
> compilers:
>
> # /usr/local/lam-7.0.3-intel/bin/mpif77 --showme
> ifort -I/usr/local/lam-7.0.3-intel/include -L/usr/local/lam-7.0.3-
> intel/lib -llamf77mpi -lmpi -llam -lutil
> # ldd clf-lam-intel8
> libutil.so.1 => /lib/libutil.so.1 (0x00806000)
> libm.so.6 => /lib/tls/libm.so.6 (0x003bd000)
> libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00c32000)
> libc.so.6 => /lib/tls/libc.so.6 (0x00635000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0028e000)
>
> where the clf-lam-intel8 executable was produced without any extra
> -lpthread specification in the CHARMM Makefile.
>

That was one of the most confusing parts, I was under the impression that
the wrapper would include all the necessary libraries. I rebuilt LAM just in
case. I think I'll download the beta version since it fixes some problems
with the Intel compiler.

BTW That was me with all the stupid questions on the Charmm forum. ;)

Robert LeBlanc
BioAg Computer Support
Brigham Young University

> --
> Bogdan Costescu
>
> IWR - Interdisziplinaeres Zentrum fuer Wissenschaftliches Rechnen
> Universitaet Heidelberg, INF 368, D-69120 Heidelberg, GERMANY
> Telephone: +49 6221 54 8869, Telefax: +49 6221 54 8868
> E-mail: Bogdan.Costescu_at_[hidden]
>
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/