[CPMD-list] compiling problem on AMD opteron64 under Linux when using MPI and PGI 5.2
Adrain Zhou
adrainzhou at yahoo.com.cn
Wed Oct 13 03:27:45 CEST 2004
Deal all,
The former problem has been solved. Thanks to axel. But I met the follwing new problems at linking stage. Apparently it is due to underscore,
......
.....
.....
: undefined reference to `dcopy_'
friesner_c_p.o(.text+0xed1): In function `frie_c_p__':
: undefined reference to `dscal_'
friesner_c_p.o(.text+0xfd8): In function `frie_c_p__':
: undefined reference to `dcopy_'
matrix_p.o(.text+0x2299): In function `matrix_p__':
: undefined reference to `zgemm_'
matrix_p.o(.text+0x43db): In function `matrix_p__':
: undefined reference to `zgemm_'
matrix_p.o(.text+0x63df): In function `matrix_p__':
: undefined reference to `zgemm_'
ks_ener_p.o(.text+0x87e): In function `ks_ener_p__':
: undefined reference to `zheev_'
ks_ener_p.o(.text+0xa99): In function `ks_ener_p__':
: undefined reference to `dscal_'
kpert_util_p.o(.text+0x3aa): In function `s12k_p__':
: undefined reference to `daxpy_'
kpert_util_p.o(.text+0x287e): In function `hamofk_p__':
: undefined reference to `dgemm_'
kpert_util_p.o(.text+0x28ef): In function `hamofk_p__':
: undefined reference to `dgemm_'
fukui_p.o(.text+0x8e2): In function `fukui_p__':
: undefined reference to `dgemm_'
fukui_p.o(.text+0x9a8): In function `fukui_p__':
: undefined reference to `dcopy_'
fukui_p.o(.text+0xc89): In function `fukui_p__':
: undefined reference to `dscal_'
fukui_p.o(.text+0x19a6): In function `fukui_p__':
: undefined reference to `dcopy_'
mdfile.o(.text+0xbfa): In function `mdfile_':
: undefined reference to `dcopy_'
mdfile.o(.text+0x1784): In function `mdfile_':
: undefined reference to `dcopy_'
mdfile.o(.text+0x17e0): In function `mdfile_':
: undefined reference to `dcopy_'
mdfile.o(.text+0x1a03): In function `mdfile_':
: undefined reference to `dcopy_'
mdfile.o(.text+0x1a5b): more undefined references to `dcopy_' follow
kdp_diag.o(.text+0x803): In function `kdp_diag__':
: undefined reference to `zhpev_'
kdp_rho.o(.text+0x685): In function `kdp_rho__':
: undefined reference to `zgemm_'
kdpoints.o(.text+0x347): In function `kdpoints_':
: undefined reference to `dcopy_'
kdpoints.o(.text+0x36a): In function `kdpoints_':
: undefined reference to `dcopy_'
rhoofr_kdp.o(.text+0x954): In function `rhoofr_kdp__':
: undefined reference to `dcopy_'
rhoofr_kdp.o(.text+0xa44): In function `rhoofr_kdp__':
: undefined reference to `dcopy_'
rhoofr_kdp.o(.text+0xb44): In function `rhoofr_kdp__':
: undefined reference to `dcopy_'
mm_cpmd_esp_charges_f77.o(.text+0x2c8): more undefined references to `dcopy_' follow
/usr/lib64/liblam.a(lammutex.o)(.text+0x7): In function `lam_mutex_init':
: undefined reference to `pthread_mutex_init'
/usr/lib64/liblam.a(lammutex.o)(.text+0x3a): In function `lam_mutex_lock':
: undefined reference to `pthread_mutex_lock'
/usr/lib64/liblam.a(lammutex.o)(.text+0x97): In function `lam_mutex_trylock':
: undefined reference to `pthread_mutex_trylock'
/usr/lib64/liblam.a(lammutex.o)(.text+0x12f): In function `lam_mutex_unlock':
: undefined reference to `pthread_mutex_unlock'
/usr/lib64/liblam.a(lammutex.o)(.text+0x16b): In function `lam_mutex_destroy':
: undefined reference to `pthread_mutex_destroy'
/usr/lib64/liblam.a(lamthreads.o)(.text+0x15): In function `lam_thread_exit':
: undefined reference to `pthread_exit'
/usr/lib64/liblam.a(lamthreads.o)(.text+0x9): In function `lam_thread_create':
: undefined reference to `pthread_create'
/usr/lib64/liblam.a(lamthreads.o)(.text+0x21): In function `lam_thread_join':
: undefined reference to `pthread_join'
/usr/lib64/liblam.a(lamthreads.o)(.text+0x31): In function `lam_thread_self':
: undefined reference to `pthread_self'
/usr/lib64/liblam.a(lamthreads.o)(.text+0x41): In function `lam_thread_compare':
Here is the Makefile I used
FFLAGS = -r8 -pc=64 -Msignextend -Msecond_underscore
#LFLAGS = -Bstatic -L. -latlas_x86-64 $(QMMM_LIBS)
LFLAGS = -Bstatic -L/home1/aijun/bak/lib/-latlas_x86-64
CFLAGS =
CPP = /lib/cpp -P -C -traditional
CPPFLAGS = -D__Linux -D__PGI -DLAPACK -DFFT_DEFAULT -DPOINTER8 -D__pgf90 \
-DPARALLEL -DMP_LIBRARY=__MPI -DMYRINET -DADD_BLAS_TWO_UNDERSCORE
NOOPT_FLAG =
CC = cc
FC = env LAMHF77=pgf90 mpif77 -c -fastsse -tp k8-64
LD = env LAMHF77=pgf90 mpif77 -fastsse -tp k8-64
AR =
#----------------------------------------------------------------------------
CFGDEST = .
CFGMACH = PGI-AMD64-MPI
Any comments on how to remove it are highly appreciated.
Many thanks,
Regards,
Adrain
---------------------------------
Do You Yahoo!?
150ÍòÇúMP3·è¿ñËÑ£¬´øÄú´³ÈëÒôÀÖµîÌÃ
ÃÀÅ®Ã÷ÐÇÓ¦Óо¡ÓУ¬ËѱéÃÀͼ¡¢ÑÞͼºÍ¿áͼ
1G¾ÍÊÇ1000Õ×£¬ÑÅ»¢µçÓÊ×ÔÖúÀ©ÈÝ£¡
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cpmd.org/pipermail/cpmd-list/attachments/20041013/a63d59af/attachment.html
More information about the CPMD-list
mailing list