You are here

Error installing MPI, static Rosetta3.5 ubuntu

2 posts / 0 new
Last post
Error installing MPI, static Rosetta3.5 ubuntu
#1

Dear developers,
I'd tried to complile and install Roseta3.5 in my Ubuntu Ubuntu 12.04.3 LTS x86_64. My MPI version is MPICH2 Version: 1.4.1p1 and is installed at:
/usr/lib/mpich2/lib/libfmpich.so
/usr/lib/mpich2/lib/libmpichf90.so
/usr/lib/mpich2/lib/libmpl.so
/usr/lib/mpich2/lib/libmpichcxx.so
/usr/lib/mpich2/lib/libmpich.so
/usr/lib/mpich2/lib/libopa.so
At first I tried to compile using this options:
sudo scons bin mode=release cxx=gcc cxx_version=4.6 extras=mpi,static -j4
After a few minutes the program ends with this error message:
/usr/lib/libmpich.a(mpid_nem_ckpt.o):function ckpt_cb: error: undefined reference to 'cr_checkpoint'
/usr/lib/libmpich.a(mpid_nem_ckpt.o):function ckpt_cb: error: undefined reference to 'cr_get_restart_info'
/usr/lib/libmpich.a(mpid_nem_ckpt.o):function MPIDI_nem_ckpt_init: error: undefined reference to 'cr_init'
/usr/lib/libmpich.a(mpid_nem_ckpt.o):function MPIDI_nem_ckpt_init: error: undefined reference to 'cr_register_callback'
/usr/lib/libmpich.a(tcp_init.o):function MPID_nem_tcp_get_business_card: warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
collect2: ld returned 1 exit status
scons: *** [build/src/release/linux/3.2/64/x86/gcc/4.6/mpi-static/AnchorFinder.mpistatic.linuxgccrelease] Error 1
scons: building terminated because of errors.
Alternatively I tried to compile without using static libraries, e.g.: sudo scons bin mode=release cxx=gcc cxx_version=4.6 extras=mpi -j4 but the program ends with this following error: build/src/release/linux/3.2/64/x86/gcc/4.6/mpi/apps/public/interface_design/anchored_design/AnchorFinder.o:AnchorFinder.cc:function typeinfo for utility::vectorL<1l, utility::vector1<unsigned long, std::allocator<unsigned long> >, std::allocator<utility::vector1<unsigned long, std::allocator<unsigned long> > > >: error: undefined reference to 'vtable for __cxxabiv1::__vmi_class_type_info'
build/src/release/linux/3.2/64/x86/gcc/4.6/mpi/apps/public/interface_design/anchored_design/AnchorFinder.o:AnchorFinder.cc:function typeinfo for utility::vectorL<1l, unsigned long, std::allocator<unsigned long> >: error: undefined reference to 'vtable for __cxxabiv1::__vmi_class_type_info'
build/src/release/linux/3.2/64/x86/gcc/4.6/mpi/apps/public/interface_design/anchored_design/AnchorFinder.o:AnchorFinder.cc:function typeinfo for utility::vectorL<1l, numeric::xyzVector<double>, std::allocator<numeric::xyzVector<double> > >: error: undefined reference to 'vtable for __cxxabiv1::__vmi_class_type_info'
build/src/release/linux/3.2/64/x86/gcc/4.6/mpi/apps/public/interface_design/anchored_design/AnchorFinder.o:AnchorFinder.cc:function typeinfo for ObjexxFCL::Observer: error: undefined reference to 'vtable for __cxxabiv1::__class_type_info'
build/src/release/linux/3.2/64/x86/gcc/4.6/mpi/apps/public/interface_design/anchored_design/AnchorFinder.o(.eh_frame+0x21d3): error: undefined reference to '__gxx_personality_v0'
collect2: ld returned 1 exit status
scons: *** [build/src/release/linux/3.2/64/x86/gcc/4.6/mpi/AnchorFinder.mpi.linuxgccrelease] Error 1
scons: building terminated because of errors.
I searched throug the web and none answers were useful to help my compilation error. Thus, I wonder if anyone could help me with this copilation/installation issue.
Regards.

Category: 
Post Situation: 
Fri, 2014-10-24 11:23
samuelrpita

I'm guessing that there's an issue with finding the appropriate libraries for your MPI compiler. Try copying main/source/tools/build/site.settings.topsail to main/source/tools/build/site.settings You may also need to manually specify the path to your mpi compilers (see main/source/tools/build/site.settings.csbmpi for an example).

If that doesn't work, what's in your $INCLUDE and $LD_LIBRARY_PATH environment variables (do they list the appropriate paths to your MPI libraries, with no conflicting versions?), and is your MPI compiler setup able to successfully compile other, non-Rosetta MPI programs?

Tue, 2014-10-28 16:26
rmoretti