[oe] openmp in gcc-cross

Koen Kooi k.kooi at student.utwente.nl
Wed Aug 6 10:41:02 UTC 2008


Phil Blundell wrote:
> The error with gettext is just a straightforward "-lgomp not found" kind
> of thing.  Gettext will compile OK with older, non-OpenMP-capable
> compilers: it checks for the -fopenmp flag during configure, but it
> expects (not unreasonably) that if you have an OpenMP capable compiler
> then you will also have the right libraries available.
>
> For people who don't want OpenMP I think the right thing is to have a
> global "USE_OPENMP" variable to turn off OpenMP support at the package
> level.  For most autotools-using packages this is going to mean adding
> "--disable-openmp" to EXTRA_OECONF.
>
> You're right that OpenMP might indeed be overkill on some/most embedded
> systems, but embedded multi-threading is by no means unheard of and I
> guess it will become more popular as CPUs like the Cortex-A9 and newer
> Pentiums start to show up in these systems.

Speaking of cortex-A9 MPCore (and arm11 MPCore as well), how well does 
linux (kernel + c library) support MP on arm? I heard horror stories 
about missing memory barriers, but that was over a year ago.

> I verified that libgomp does compile OK with gcc 4.2.2, so I guess I'll
> go ahead and re-enable it for that version at least.

gcc 4.2.4 (re)built fine for me after your latest changes.

regards,

Koen





More information about the Openembedded-devel mailing list