Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] Help on building openmpi with "-Wl, --as-needed -Wl, --no-undefined"
From: Ralf Wildenhues (Ralf.Wildenhues_at_[hidden])
Date: 2008-07-20 15:13:48


* Funda Wang wrote on Sun, Jul 20, 2008 at 05:29:57AM CEST:
> I'm currently building openmpi 1.2.6 under Mandriva cooker, and its
> default LDFLAGS is "-Wl,--as-needed -Wl,--no-undefined".
>
> But openmpi 1.2.6 builds failed with:
> libtool: link: g++ -shared -nostdlib
> /usr/lib/gcc/i586-manbo-linux-gnu/4.3.1/../../../crti.o
> /usr/lib/gcc/i586-manbo-linux-gnu/4.3.1/crtbeginS.o .libs/mpicxx.o
> .libs/intercepts.o .libs/comm.o .libs/datatype.o .libs/file.o
> .libs/win.o -lnsl -lutil -L/usr/lib/gcc/i586-manbo-linux-gnu/4.3.1
> -L/usr/lib/gcc/i586-manbo-linux-gnu/4.3.1/../../.. -lstdc++ -lm
> -lpthread -lc -lgcc_s
> /usr/lib/gcc/i586-manbo-linux-gnu/4.3.1/crtendS.o
> /usr/lib/gcc/i586-manbo-linux-gnu/4.3.1/../../../crtn.o -march=i586
> -mtune=generic -pthread -Wl,--no-undefined -pthread -Wl,-soname
> -Wl,libmpi_cxx.so.0 -o .libs/libmpi_cxx.so.0.0.0
> .libs/mpicxx.o: In function `Errhandler':
> /home/fwang/rpm/BUILD/openmpi-1.2.6/ompi/mpi/cxx/../../../ompi/mpi/cxx/errhandler.h:30:
> undefined reference to `ompi_mpi_errors_are_fatal'

I suppose ompi/mpi/cxx/Makefile.am is missing some libmpi_cxx_la_LIBADD
line.

Cheers,
Ralf