Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] Enabling debugging and profiling in openMPI (make "CFLAGS=-pg -g")
From: Samuel K. Gutierrez (samuel_at_[hidden])
Date: 2009-06-12 10:31:28


Hi,

Let me begin by stating that I'm at most an Open MPI novice - but you
may want to try the addition of the --enable-debug configure option.
That is, for example:

./configure --enable-debug; make

Hope this helps.

Samuel K. Gutierrez

On Jun 12, 2009, at 3:27 AM, Leo P. wrote:

> Hi everyone,
>
> I am trying to understand the openMPI code so was trying to enable
> debug and profiling by issusing
>
> $ make "CFLAGS=-pg -g"
>
> But i am getting this error.
>
> libtool: link: ( cd ".libs" && rm -f "mca_paffinity_linux.la" && ln -
> s "../mca_paffinity_linux.la" "mca_paffinity_linux.la" )
> make[3]: Leaving directory `/home/Desktop/openmpi-1.3.2/opal/mca/
> paffinity/linux'
> make[2]: Leaving directory `/home/Desktop/openmpi-1.3.2/opal/mca/
> paffinity/linux'
> Making all in tools/wrappers
> make[2]: Entering directory `/home/Desktop/openmpi-1.3.2/opal/tools/
> wrappers'
> depbase=`echo opal_wrapper.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
> gcc "-DEXEEXT=\"\"" -I. -I../../../opal/include -I../../../orte/
> include -I../../../ompi/include -I../../../opal/mca/paffinity/linux/
> plpa/src/libplpa -I../../.. -pg -g -MT opal_wrapper.o -MD -MP -
> MF $depbase.Tpo -c -o opal_wrapper.o opal_wrapper.c &&\
> mv -f $depbase.Tpo $depbase.Po
> /bin/bash ../../../libtool --tag=CC --mode=link gcc -pg -g -
> export-dynamic -o opal_wrapper opal_wrapper.o ../../../opal/
> libopen-pal.la -lnsl -lutil -lm
> libtool: link: gcc -pg -g -o .libs/opal_wrapper opal_wrapper.o -Wl,--
> export-dynamic ../../../opal/.libs/libopen-pal.so -ldl -lnsl -lutil
> -lm
> ../../../opal/.libs/libopen-pal.so: undefined reference to
> `pthread_key_create'
> ../../../opal/.libs/libopen-pal.so: undefined reference to
> `pthread_getspecific'
> ../../../opal/.libs/libopen-pal.so: undefined reference to
> `pthread_create'
> ../../../opal/.libs/libopen-pal.so: undefined reference to
> `pthread_atfork'
> ../../../opal/.libs/libopen-pal.so: undefined reference to
> `pthread_setspecific'
> ../../../opal/.libs/libopen-pal.so: undefined reference to
> `pthread_join'
> collect2: ld returned 1 exit status
> make[2]: *** [opal_wrapper] Error 1
> make[2]: Leaving directory `/home//Desktop/openmpi-1.3.2/opal/tools/
> wrappers'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/Desktop/openmpi-1.3.2/opal'
> make: *** [all-recursive] Error 1
>
> Is there any other way of enabling debugging and profilling in open
> MPI.
>
> Leo
>
>
> Explore your hobbies and interests. Click here to
> begin._______________________________________________
> devel mailing list
> devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/devel