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().
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