[Beowulf] MPICH compilation problems

Timo Mechler timo at luther.edu
Fri Nov 25 14:29:59 PST 2005


Hi all,

I've been trying to compile some parallel fortran code on a Rocks 3.3.0 
cluster, but I'm having some problems.  When I logon as a normal user 
and issue the compile command,

mpif77 -o pi3 pi3.f

I get the following error message back:

pi3.o(.data+0x0): undefined reference to `mpi_win_dup_fn__'
pi3.o(.data+0x4): undefined reference to `mpi_type_dup_fn__'
pi3.o(.data+0x8): undefined reference to `mpi_comm_dup_fn__'
pi3.o(.data+0x10): undefined reference to `mpi_win_null_delete_fn__'
pi3.o(.data+0x14): undefined reference to `mpi_win_null_copy_fn__'
pi3.o(.data+0x18): undefined reference to `mpi_type_null_delete_fn__'
pi3.o(.data+0x1c): undefined reference to `mpi_type_null_copy_fn__'
pi3.o(.data+0x20): undefined reference to `mpi_comm_null_delete_fn__'
pi3.o(.data+0x24): undefined reference to `mpi_comm_null_copy_fn__'
collect2: ld returned 1 exit status

Now I know the code is fine and compiles fine as well, as when I change 
to root and the copy the Fortran file into the MPICH examples directory, 
i.e. /opt/mpich/gnu/examples and then try to compile it using the same 
command as root everything works great.

However, I can't get the code to compile in the normal users directory, 
i.e. /home/username  Any ideas as to what might be going on?  The 
problem seems to be with ld, but I don't know enough about linking files 
on how to fix it myself.  How might I go about fixing this so that 
normal users can compile the code as well?  Thanks in advance for your help.

Best Regards,

-Timo Mechler




More information about the Beowulf mailing list