Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] VT configure problem?
From: Matthias Jurenz (matthias.jurenz_at_[hidden])
Date: 2011-12-08 07:56:35


Hello,

this issue is fixed by r25595.

It seems to be a compiler bug in GCC v4.2.? ... When using assert() within
OpenMP-parallel regions the compiler prepends an extra '_' to the symbol
__buildin_expect(), so the linker reports undefined references.

The solution is actually a workaround where an own implementation of assert()
is used to prevent references to __builtin_expect().

Matthias

On Thursday 08 December 2011 00:17:29 Ralph Castain wrote:
> Undefined symbols for architecture x86_64:
> "___builtin_expect", referenced from:
> __ZN12FilterTraceC26processEventsAndStatisticsEv.omp_fn.0 in
> vtfilter-vt_filter_trc.o __Z13vtfilter_mainiPPc.omp_fn.0 in
> vtfilter-vt_tracefilter.o __Z13vtfilter_mainiPPc.omp_fn.1 in
> vtfilter-vt_tracefilter.o ld: symbol(s) not found for architecture x86_64
>
> Fresh checkout (r25589) on an x86_64 Mac...obviously, I can --disable-vt,
> but shouldn't this be picked up in configure and corrected?
>
>
>
> _______________________________________________
> devel mailing list
> devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/devel