Archives


- Beowulf
- Beowulf Announce
- Scyld-users
- Beowulf on Debian

[Beowulf] error while make mpijava on amd_64

Many of your questions may have already been answered in earlier discussions or in the FAQ. The search results page will indicate current discussions as well as past list serves, articles, and papers.

Search

Mark Hahn hahn at mcmaster.ca
Tue Mar 2 20:37:06 PST 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...



More information about the Beowulf mailing list