I have compiled LAM via SRPM with the %configure option --with-fc=pgf90, and
created the rpms with no noticeable errors. After installing the rpms, I am
getting errors compiling Fortran MPI code:
[root_at_cyclades basic]# make fpi
mpif77 -lpgf90 -c fpi.f
pgf90-Warning-Unknown switch: -pthread
mpif77 -lpgf90 -o fpi fpi.o
pgf90-Warning-Unknown switch: -pthread
pgf90-Warning-Unknown switch: -pthread
/usr/lib/liblam.a(lammutex.o): In function `lam_mutex_trylock':
lammutex.o(.text+0xa4): undefined reference to `pthread_mutex_trylock'
/usr/lib/liblam.a(lamthreads.o): In function `lam_thread_create':
lamthreads.o(.text+0x15): undefined reference to `pthread_create'
/usr/lib/liblam.a(lamthreads.o): In function `lam_thread_join':
lamthreads.o(.text+0x3a): undefined reference to `pthread_join'
make: *** [fpi] Error 2
I am assuming that I am missing a -l, but I can't figure out what.
Any thoughts would be greatly appreciated.
Greg
--
Greg M. Kurtzer, CSE: Linux cluster specialist
Lawrence Berkeley National Laboratory
Contact: O=510.495.2307, P=510.448.4540, M=510.928.9953
1 Cyclotron Road MS:50C-3396, Berkeley, CA 94720
http://www.lbl.gov, http://scs.lbl.gov/, http://lug.lbl.gov/
Email: GMKurtzer_at_lbl.gov, Text: 5109289953_at_mobileatt.net
|