[CPMD-list] run cpmd.x

Axel Kohlmeyer axel.kohlmeyer at theochem.ruhr-uni-bochum.de
Sun Dec 1 09:58:50 CET 2002


On Sun, 1 Dec 2002 10:44:18 +0800  "Xiong Yuming" wrote:

> cpmd-listDear All 
>     Can anybody help me? Last time I compiled the cpmd source using lf95 comp
iler. But this time, when I run cpmd.x using LAM/MPI, it can not find some libr
ary files. so I decide recompile the source. In fact, when I compile the object
s successfully, I can not make link all the objects because there are a lot of 
errors on my_para.o files. I dont know what library files I should apply to the
 compile. some advice will help me great. thanks.when I fail to compile the sou
rce, it gave me some suggestion as followed: 

[ lots of stuff deleted ]

> my_para.o(.data+0xd84): undefined reference to `mpi_comm_null_delete_fn_' 
> 
> my_para.o(.data+0xd88): undefined reference to `mpi_type_null_copy_fn_' 
> 
> my_para.o(.data+0xd8c): undefined reference to `mpi_type_null_delete_fn_' 
> 
> my_para.o(.data+0xd90): undefined reference to `mpi_win_null_copy_fn_' 
> 
> my_para.o(.data+0xd94): undefined reference to `mpi_win_null_delete_fn_' 
> 
> my_para.o(.data+0xd98): undefined reference to `mpi_dup_fn_' 
> 
> my_para.o(.data+0xd9c): undefined reference to `mpi_comm_dup_fn_' 
> 
> my_para.o(.data+0xda0): undefined reference to `mpi_type_dup_fn_' 
> 
> my_para.o(.data+0xda4): undefined reference to `mpi_win_dup_fn_' 
> 
> my_para.o(.data+0xda8): undefined reference to `mpi_wtime_' 
> 
> my_para.o(.data+0xdac): undefined reference to `mpi_wtick_' 
> 
> my_para.o(.data+0xdb0): undefined reference to `pmpi_wtime_' 
> 
> my_para.o(.data+0xdb4): undefined reference to `pmpi_wtick_' 
> 
> my_para.o(.data+0xdf4): undefined reference to `mpi_alltoall_' 
> 
> my_para.o(.data+0xdfc): undefined reference to `mpi_null_copy_fn_' 
> 
> my_para.o(.data+0xe00): undefined reference to `mpi_null_delete_fn_' 
> 
> my_para.o(.data+0xe04): undefined reference to `mpi_comm_null_copy_fn_' 
> 
> my_para.o(.data+0xe08): undefined reference to `mpi_comm_null_delete_fn_' 
> 
> my_para.o(.data+0xe0c): undefined reference to `mpi_type_null_copy_fn_' 
> 
> my_para.o(.data+0xe10): undefined reference to `mpi_type_null_delete_fn_' 
> 
> my_para.o(.data+0xe14): undefined reference to `mpi_win_null_copy_fn_' 
> 
> my_para.o(.data+0xe18): undefined reference to `mpi_win_null_delete_fn_' 

hi, 

the mpi library you use has obviously been compiled for/with the g77 
fortran compiler, which uses different rules to encode function/subroutine
names into libraries than your fortran compiler does. you have to recompile
the mpi libraries for/with your fortran compiler. alternatively you might
check the documentation for your fortran compiler and search for a flag
that turns on g77-style underscoring and then recompile cpmd.

best regards,
	axel kohlmeyer.

--

=======================================================================
Axel Kohlmeyer      e-mail:  axel.kohlmeyer at theochem.ruhr-uni-bochum.de
Lehrstuhl fuer Theoretische Chemie          Phone: ++49 (0)234/32-26673
Ruhr-Universitaet Bochum - NC 03/53         Fax:   ++49 (0)234/32-14045
D-44780 Bochum                   http://www.theochem.ruhr-uni-bochum.de
=======================================================================
If you make something idiot-proof, the universe creates a better idiot.



More information about the CPMD-list mailing list