AMBER Archive (2007)

Subject: Re: AMBER: amber9 parralel compiling

From: Seaclear Theory (oceanclear_at_gmail.com)
Date: Sat Jan 27 2007 - 17:16:19 CST


Hi! David,

Thanks for quick help very much! Your suggestion really helpful!

Now I got your point.
I did not recompile lam because I have several applications built on it.
What I did is to replace the "-fno-second-underscore" with
"-fsecond-underscore" in the config.h. Then the compile works fine now.

Thanks again.

Best,

Ocean

On 1/27/07, David A. Case <case_at_scripps.edu> wrote:
>
> On Sat, Jan 27, 2007, Seaclear Theory wrote:
>
> > When I did "> *> nm liblamf77mpi.a | grep bcast"
> > I got
> > bcast_f.o:
> > 0000000000000000 T mpi_bcast__
> ^^^^^^^^^^^
> (note the second underscore)
>
> >
> >
> > The compiling error is :
> > ../lmod/lmod.a ../lapack/lapack.a ../blas/blas.a \
> > ../lib/nxtsec.o ../lib/sys.a -L/usr/local/lib -L/usr/local/lib
> -llammpio
> > -llamf77mpi -lmpi -llam -lutil -lpthread
> > evb_init.o(.text+0x4f7): In function `evb_init_':
> > : undefined reference to `mpi_bcast_'
> ^^^^^^^^^^^^
> (no second underscore here)
>
> It looks like you have compiled lam and sander with different compiler
> options. You need to either recompile lam use
> "-fno-second-underscore" OR
> remove that flag from your config.h file and recompile sander. I would
> recommend the former course of action, since there may be some reason for
> the flag being there for sander.
>
> ...good luck....dac
> -----------------------------------------------------------------------
> The AMBER Mail Reflector
> To post, send mail to amber_at_scripps.edu
> To unsubscribe, send "unsubscribe amber" to majordomo_at_scripps.edu
>

-----------------------------------------------------------------------
The AMBER Mail Reflector
To post, send mail to amber_at_scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo_at_scripps.edu