Prev: If I get "undefined reference to `mp_barrier_'", which MPI library do I need to link with?
Next: McFor: a MATLAB-to-Fortran 95 Compiler
From: Simon on 30 Jul 2010 09:11 On 30/07/2010 13:58, Andrei wrote: > I am trying to link by > mpif77 -B100 -o runme olib/*.o clib/*.o -L/usr/X11R6/lib64 -L/usr/ > X11R6/lib -lX11 -L$PVM_ROOT/lib/$PVM_ARCH -lfpvm3 -lpvm3 > > I have tried -lmpi and also > export OMPI_LDFLAGS=-lmpi This is a linker problem. Use the -L option to tell the linker where to look and the -l option to tell it what to look for - it isn't black magic. Setting the environment variable OMPI_LDFLAGS will accomplish nothing. > > but the errors persist > > /opt/intel/fce/9.1.036/lib/libimf.so: warning: warning: feupdateenv is > not implemented and will always fail > olib/vtask.o: In function `vtask_': > vtask.f:(.text+0x11c): undefined reference to `mp_barrier_' > vtask.f:(.text+0x147): undefined reference to `mp_barrier_' Which means that you're missing a library in the link stage, possibly libmpi.so from above. Simon
From: nmm1 on 30 Jul 2010 09:32
In article <i2uj3a$n7v$1(a)news.eternal-september.org>, Simon <simon(a)whiteowl.co.uk> wrote: >On 30/07/2010 13:58, Andrei wrote: >> I am trying to link by >> mpif77 -B100 -o runme olib/*.o clib/*.o -L/usr/X11R6/lib64 -L/usr/ >> X11R6/lib -lX11 -L$PVM_ROOT/lib/$PVM_ARCH -lfpvm3 -lpvm3 >> >> /opt/intel/fce/9.1.036/lib/libimf.so: warning: warning: feupdateenv is >> not implemented and will always fail >> olib/vtask.o: In function `vtask_': >> vtask.f:(.text+0x11c): undefined reference to `mp_barrier_' >> vtask.f:(.text+0x147): undefined reference to `mp_barrier_' > >Which means that you're missing a library in the link stage, possibly >libmpi.so from above. But probably not. It's fairly unlikely that an MPI library will provide mp_barrier_ - mpi_barrier_, perhaps. An OpenMP library is far more likely, but God alone knows what PVM is doing calling OpenMP. And anyone who writes a program that uses any of PVM, MPI or OpenMP together with the X Windowing system is asking for trouble! Words fail me trying to describe how insane that is .... I am afraid that I think that the OP is very confused and has got the command totally addled. Regards, Nick Maclaren. |