Can you confirm that your C++ compiler is installed properly such that
it is able to create shared libraries that use the STL and the std
namespace?
On Feb 27, 2008, at 3:32 PM, Albert Babinskas wrote:
Hi i am running Red hat linux in school
I am trying to compile open mpi and it gives me
this error:
make[3]: Entering directory `/home/acct2/babinsk3/research/
openmpi-1.2.5/Albert/
ompi/mpi/cxx'
/bin/sh ../../../libtool --tag=CXX --mode=link g++ -O3 -DNDEBUG -
m64 -finline
-functions -pthread -export-dynamic -o libmpi_cxx.la
-rpath /usr/local/lib mpicxx.lo intercepts.lo comm.lo datatype.lo
file.lo win.lo
-lnsl -lutil -lm libtool: link: g++ -shared -nostdlib /usr/lib/../
lib64/crti.o /net/apps/packages
/gcc-3.4.1/x86_64-unknown-linux-gnu/lib/gcc/x86_64-unknown-linux-gnu/
3.4.1/crtbe
ginS.o .libs/mpicxx.o .libs/intercepts.o .libs/comm.o .libs/
datatype.o .libs/fi
le.o .libs/win.o
-lnsl -lutil -L/net/apps/packages/gcc-3.4.1/x86_64-unknown-li
nux-gnu/lib/gcc/x86_64-unknown-linux-gnu/3.4.1 -L/net/apps/packages/
gcc-3.4.1/x8
6_64-unknown-linux-gnu/lib/gcc/x86_64-unknown-linux-gnu/
3.4.1/../../../../lib64
-L/net/apps/packages/gcc-3.4.1/x86_64-unknown-linux-gnu/lib/gcc/
x86_64-unknown-l
inux-gnu/3.4.1/../../.. -L/lib/../lib64 -L/usr/lib/../lib64 /net/
apps/packages/g
cc-3.4.1/x86_64-unknown-linux-gnu/lib/../lib64/libstdc++.a -L/local/
home/source/linux/2.4/gcc-3.4.1-obj/x86_64-unknown-linux-gnu/libstdc+
+-v3/src -L/local/home/source/linux/2.4/gcc-3.4.1-obj/x86_64-unknown-
linux-gnu/libstdc++-v3/src/.libs -L/local/home/source/linux/2.4/
gcc-3.4.1-obj/gcc -lm -lpthread -lc -lgcc /net/apps/packages/
gcc-3.4.1/x86_64-unknown-linux-gnu/lib/gcc/x86_64-unknown-linux-gnu/
3.4.1/crtendS.o /usr/lib/../lib64/crtn.o -m64 -pthread -pthread -
Wl,-soname -Wl,libmpi_cxx.so.0 -o .libs/libmpi_cxx.so.0.0.0
/usr/bin/ld: /net/apps/packages/gcc-3.4.1/x86_64-unknown-linux-gnu/
lib/../lib64/libstdc++.a(ios_init.o): relocation R_X86_64_32 against
`std::ios_base::Init::_S_refcount' can not be used when making a
shared object; recompile with -fPIC
/net/apps/packages/gcc-3.4.1/x86_64-unknown-linux-gnu/lib/../lib64/
libstdc++.a:could not read symbols: Bad value
collect2: ld returned 1 exit status
make[3]: *** [libmpi_cxx.la] Error 1
when i ran configure i specified
./configure CFLAGS=-m64 CXXFLAGS=-m64 FFLAGS=-m64 FCFLAGS=-m64
thanx
-- Albert --
_______________________________________________
users mailing list
us...@open-mpi.org
http://www.open-mpi.org/mailman/listinfo.cgi/users
--
Jeff Squyres
Cisco Systems