[Cython] OS X 10.7 Lion: GCC __builtin_expect unrecognized inside OpenMP blocks

mark florisson markflorisson88 at gmail.com
Sat Mar 10 01:41:34 CET 2012


On 9 March 2012 14:22, Lisandro Dalcin <dalcinl at gmail.com> wrote:
> I'm basically experiencing the issues here:
> http://www.cocoabuilder.com/archive/xcode/310299-error-calling-builtin-expect-inside-omp-parallel-for.html
>
> Can you imagine any way to workaround it?

What a lovely C compiler bug... Did you file a bug report with gcc or
xcode? What version of gcc does Lion ship with?

I suppose the macro would have to be disabled for OS X Lion inside
parallel sections (there seems to be __APPLE__ and __OSX__, I don't
know about detecting the OS X version), that's easy to do (undef and
redefine to no-ops before parallel section and redefine it again after
the section). I'll try fixing it during the sprints next week.

> PS: This is the only serious failure I get on OS X Lion. The embed
> test is not working, but it is a Makefile issue.
>
> --
> Lisandro Dalcin
> ---------------
> CIMEC (INTEC/CONICET-UNL)
> Predio CONICET-Santa Fe
> Colectora RN 168 Km 472, Paraje El Pozo
> 3000 Santa Fe, Argentina
> Tel: +54-342-4511594 (ext 1011)
> Tel/Fax: +54-342-4511169
> _______________________________________________
> cython-devel mailing list
> cython-devel at python.org
> http://mail.python.org/mailman/listinfo/cython-devel


More information about the cython-devel mailing list