[Pw_forum] Compiling problems on AMD opteron64 under Linux using MPI
Adrain Zhou
adrainzhou at yahoo.com.cn
Wed Oct 13 03:38:36 CEST 2004
Dear all,
Many thanks to Axel and Nicola . The former problem has been solved. But I met the following new problems at linking stages.
.....
.....
: undefined reference to `mpi_barrier_'
init_pool.o(.text+0x74): In function `init_pool_':
: undefined reference to `mpi_comm_split_'
init_pool.o(.text+0xaf): In function `init_pool_':
: undefined reference to `mpi_barrier_'
init_pool.o(.text+0xeb): In function `init_pool_':
: undefined reference to `mpi_comm_split_'
init_us_1.o(.text+0x2783): In function `init_us_1_':
: undefined reference to `dscal__'
interpolate.o(.text+0x2087): In function `cinterpolate_':
: undefined reference to `zcopy__'
interpolate.o(.text+0x2617): In function `cinterpolate_':
: undefined reference to `zcopy__'
invmat.o(.text+0x57): In function `invmat_':
: undefined reference to `dcopy__'
invmat.o(.text+0x75): In function `invmat_':
: undefined reference to `dgetrf__'
invmat.o(.text+0xcf): In function `invmat_':
: undefined reference to `dgetri__'
irrek.o(.text+0xee4): In function `irrek_':
: undefined reference to `dscal__'
maximum.o(.text+0x17): In function `extreme_':
: undefined reference to `mpi_barrier_'
maximum.o(.text+0x49): In function `extreme_':
: undefined reference to `mpi_allreduce_'
maximum.o(.text+0x78): In function `extreme_':
: undefined reference to `mpi_allreduce_'
mix_pot.o(.text+0x243): In function `mix_potential_':
: undefined reference to `dnrm2__'
mix_pot.o(.text+0xcd5): In function `mix_potential_':
: undefined reference to `dnrm2__'
mix_pot.o(.text+0xd50): In function `mix_potential_':
: undefined reference to `dscal__'
mix_pot.o(.text+0xd9f): In function `mix_potential_':
: undefined reference to `dscal__'
mix_pot.o(.text+0xf9f): In function `mix_potential_':
: undefined reference to `dcopy__'
mix_pot.o(.text+0x1098): In function `mix_potential_':
: undefined reference to `ddot__'
mix_pot.o(.text+0x119b): In function `mix_potential_':
: undefined reference to `dsytrf__'
mix_pot.o(.text+0x11f9): In function `mix_potential_':
: undefined reference to `dsytri__'
mix_pot.o(.text+0x1606): In function `mix_potential_':
: undefined reference to `ddot__'
mix_pot.o(.text+0x1b94): In function `mix_potential_':
: undefined reference to `dcopy__'
mix_pot.o(.text+0x1bcd): In function `mix_potential_':
: undefined reference to `dcopy__'
mix_rho.o(.text+0x2866): In function `mix_rho_':
: undefined reference to `dcopy__'
mix_rho.o(.text+0x2e20): In function `mix_rho_':
: undefined reference to `daxpy__'
mix_rho.o(.text+0x308d): In function `mix_rho_':
: undefined reference to `daxpy__'
mix_rho.o(.text+0x30ec): In function `mix_rho_':
: undefined reference to `daxpy__'
mix_rho.o(.text+0x3174): In function `mix_rho_':
: undefined reference to `daxpy__'
mix_rho.o(.text+0x31ed): In function `mix_rho_':
: undefined reference to `daxpy__'
mix_rho.o(.text+0x376a): In function `mix_rho_':
: undefined reference to `dcopy__'
mix_rho.o(.text+0x37a8): In function `mix_rho_':
: undefined reference to `dcopy__'
mix_rho.o(.text+0x37fe): In function `mix_rho_':
: undefined reference to `dcopy__'
mix_rho.o(.text+0x3845): In function `mix_rho_':
: undefined reference to `dcopy__'
mix_rho.o(.text+0x39b7): In function `mix_rho_':
: undefined reference to `dsytrf__'
mix_rho.o(.text+0x3a15): In function `mix_rho_':
: undefined reference to `dsytri__'
mix_rho.o(.text+0x4058): In function `mix_rho_':
: undefined reference to `daxpy__'
mix_rho.o(.text+0x40d3): In function `mix_rho_':
: undefined reference to `daxpy__'
mix_rho.o(.text+0x4170): In function `mix_rho_':
: undefined reference to `daxpy__'
mix_rho.o(.text+0x41f9): In function `mix_rho_':
: undefined reference to `daxpy__'
mix_rho.o(.text+0x43eb): In function `mix_rho_':
: undefined reference to `dcopy__'
mix_rho.o(.text+0x445e): In function `mix_rho_':
: undefined reference to `dcopy__'
mix_rho.o(.text+0x450d): In function `mix_rho_':
: undefined reference to `dcopy__'
mix_rho.o(.text+0x4565): In function `mix_rho_':
: undefined reference to `dcopy__'
mix_rho.o(.text+0x4640): In function `mix_rho_':
: undefined reference to `daxpy__'
mix_rho.o(.text+0x4ba0): In function `mix_rho_':
: undefined reference to `daxpy__'
mix_rho.o(.text+0x4c12): In function `mix_rho_':
: undefined reference to `daxpy__'
mix_rho.o(.text+0x7630): In function `approx_screening2_':
: undefined reference to `dscal__'
mix_rho.o(.text+0x906a): In function `approx_screening2_':
: undefined reference to `dcopy__'
mix_rho.o(.text+0x90af): In function `approx_screening2_':
: undefined reference to `dsytrf__'
mix_rho.o(.text+0x910d): In function `approx_screening2_':
: undefined reference to `dsytri__'
mix_rho.o(.text+0x9a4b): In function `approx_screening2_':
: undefined reference to `daxpy__'
mix_rho.o(.text+0x9ac1): In function `approx_screening2_':
: undefined reference to `daxpy__'
move_ions.o(.text+0x1a6a): In function `new_force_':
: undefined reference to `ddot__'
move_ions.o(.text+0x1aae): In function `new_force_':
: undefined reference to `daxpy__'
move_ions.o(.text+0x1ada): In function `new_force_':
: undefined reference to `ddot__'
move_ions.o(.text+0x1b68): In function `new_force_':
: undefined reference to `ddot__'
move_ions.o(.text+0x22a9): In function `check_constrain_':
: undefined reference to `daxpy__'
new_ns.o(.text+0xd65): In function `new_ns_':
: undefined reference to `ddot__'
new_ns.o(.text+0xebc): In function `new_ns_':
: undefined reference to `zdotc__'
newd.o(.text+0x13a1): In function `newd_':
: undefined reference to `ddot__'
poolbcast.o(.text+0x28): In function `poolbcast_':
: undefined reference to `mpi_barrier_'
poolbcast.o(.text+0x48): In function `poolbcast_':
: undefined reference to `mpi_bcast_'
poolextreme.o(.text+0x24): In function `poolextreme_':
: undefined reference to `mpi_barrier_'
poolextreme.o(.text+0x75): In function `poolextreme_':
: undefined reference to `mpi_allreduce_'
poolextreme.o(.text+0xc8): In function `poolextreme_':
: undefined reference to `mpi_allreduce_'
poolrecover.o(.text+0x95): In function `poolrecover_':
: undefined reference to `mpi_barrier_'
poolrecover.o(.text+0xe1): In function `poolrecover_':
: undefined reference to `mpi_send_'
poolrecover.o(.text+0x1de): In function `poolrecover_':
: undefined reference to `mpi_recv_'
poolrecover.o(.text+0x2c5): In function `ipoolrecover_':
: undefined reference to `mpi_barrier_'
poolrecover.o(.text+0x311): In function `ipoolrecover_':
: undefined reference to `mpi_send_'
poolrecover.o(.text+0x40e): In function `ipoolrecover_':
: undefined reference to `mpi_recv_'
poolreduce.o(.text+0x4d): In function `poolreduce_':
: undefined reference to `mpi_barrier_'
poolreduce.o(.text+0xc8): In function `poolreduce_':
: undefined reference to `mpi_allreduce_'
poolreduce.o(.text+0x104): In function `poolreduce_':
: undefined reference to `dcopy__'
poolreduce.o(.text+0x165): In function `poolreduce_':
: undefined reference to `mpi_allreduce_'
poolreduce.o(.text+0x1c1): In function `poolreduce_':
: undefined reference to `dcopy__'
poolscatter.o(.text+0xbc): In function `poolscatter_':
: undefined reference to `dcopy__'
potinit.o(.text+0xb5e): In function `potinit_':
: undefined reference to `dcopy__'
potinit.o(.text+0xcb9): In function `potinit_':
: undefined reference to `dcopy__'
potinit.o(.text+0xde5): In function `potinit_':
: undefined reference to `daxpy__'
pw_gemm.o(.text+0x100): In function `pw_gemm_':
: undefined reference to `dgemm__'
pw_gemm.o(.text+0x151): In function `pw_gemm_':
: undefined reference to `dger__'
rdiaghg.o(.text+0x134): In function `rdiaghg_':
: undefined reference to `ilaenv__'
rdiaghg.o(.text+0x503): In function `rdiaghg_':
: undefined reference to `dcopy__'
Apparently, it is due to underscore. Could anybody tell me how to remove it by just adding some options. Here is the makefile
# Use the local copy of fftw
CPPFLAGS = -DADD_BLAS_ONE_UNDERSCORE -D__LINUX64 -D__PGI -D__PARA -D_MPI -D_LAM -D__FFTW -D__USE_INTERNAL_FFTW \
-I$(OSHOME)/include -I./
#
# Fortran compiler:
F90 =mpif90
F77 =mpif77
CC =mpicc
#
# Please note: -r8 is necessary for numerical stability ..
#
F90FLAGS = -fast -r8
F77FLAGS = -fast -r8
CCFLAGS = $(CPPFLAGS)
#
# This is needed to tell the compiler where modules are
#
MODULEFLAG= -I$(OSHOME)/Modules -I$(OSHOME)/PW -I$(OSHOME)/PH
#
# Loader:
# this below uses precompiled pgi libraries ( not very efficient but stable )
#
LIBS = -L/opt/pgi/linux86-64/5.2/lib -llapack -lblas $(FFTW_LIB)
#
# for cineca machines:
#
#LIBS = -L/usr/local/pgi/linux86/lib/ -llapack -L/cineca/lib/ATLAS -lf77blas -latlas $(FFTW_LIB)
#
LD=$(F90)
LDFLAGS = $(OSHOME)/flib/ptools.a $(OSHOME)/flib/flib.a $(OSHOME)/clib/clib.a $(LIBS) $(MODULEFLAG)
---------------------------------
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
美女明星应有尽有,搜遍美图、艳图和酷图
1G就是1000兆,雅虎电邮自助扩容!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quantum-espresso.org/pipermail/users/attachments/20041013/e4787acd/attachment.html>
More information about the users
mailing list