[Beowulf] error while make mpijava on amd_64

Mark Hahn hahn at mcmaster.ca
Tue Mar 2 23:37:06 EST 2010

> i am getting this error when i do make for mpijava:

isn't mpijava very old?

> /usr/local/mpich-1.2.6/bin/mpicc  -o ../../lib/libmpijava.so \
>                -L/usr/local/mpich-1.2.6/lib mpi_MPI.o       mpi_Comm.o
> mpi_Op.o        mpi_Datatype.o mpi_Intracomm.o mpi_Intercomm.o
> mpi_Cartcomm.o  mpi_Gr
> aphcomm.o mpi_Group.o     mpi_Status.o mpi_Request.o mpi_Errhandler.o ;
> /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../../lib64/crt1.o(.text+0x21):
> In function `_start':
> : undefined reference to `main'

which is gcc's way of saying "I'm trying to link an executable not a shared
library."  it needs -shared in there.  likely it also needs -fPIC when 
compiling the .o files.  or maybe just stick to static archives, which 
are generally simpler...
Beowulf mailing list, Beowulf at beowulf.org sponsored by Penguin Computing
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf

More information about the Beowulf mailing list