RE: AMBER: Compiling Amber 7

From: Ross Walker <>
Date: Thu, 8 Feb 2007 08:30:30 -0800

Dear David,

> I set the environment variables, AMBERHOME and MPICH_HOME.
> During the
> "make install"
> I got an error making sander. The errors were specifically:
> undefined reference to 'pthread_getspecific'
> and undefined reference to 'pthread_getspecific'

Try adding -lpthread to the loadlib line. I.e.:

setenv LOADLIB "-lm -L$MPICH_LIBDIR -l$MPICH_LIB -lpthread"

The other option, assuming that you have your mpich paths set up correctly
is to replace g77 with mpif77. This is a wrapper for the compiling mpi
programs and should append the correct library options automatically.

All the best

|\oss Walker

| HPC Consultant and Staff Scientist |
| San Diego Supercomputer Center |
| Tel: +1 858 822 0854 | EMail:- |
| | PGP Key available on request |

Note: Electronic Mail is not secure, has no guarantee of delivery, may not
be read every day, and should not be used for urgent or sensitive issues.

The AMBER Mail Reflector
To post, send mail to
To unsubscribe, send "unsubscribe amber" to
Received on Sun Feb 11 2007 - 06:07:22 PST
Custom Search