For sometime now, I have a mythtv machine that I built using gentoo. I sometimes update it and have noticed that for sometime that the build fails when I enable openmp in gentoo;s use flags (does that mean it gets configured with --openmp or something or other) and also add -fopenmp to the CFLAGS and LDFLAGS. The bug is here https://bugs.gentoo.org/show_bug.cgi?id=532020, which the gentoo nazi's will probably reject because there is no line that contains my CPU id but the solution for me is to add a define for: extern int omp_get_num_threads(); in src/mesa/swrast/s_aatritemp.h and the missing header in for #include <omp.h> in src/mesa/swrast/s_context.c and src/mesa/swrast/s_texcombine.c I think that you need to add this with some goddamn ugly #if defined(...) nastyness, but I could be wrong.
Dear Vlad/Bob/Chris (which is it?!), Please submit a patch to mesa-dev@lists.freedesktop.org adding #ifdef _OPENMP #include <omp.h> #endif to the files that call omp_* functions. Also, don't put -fopenmp in your system CFLAGS. It doesn't do anything without the package being written with OpenMP. Sincerely, a Gentoo Developer.
(In reply to Matt Turner from comment #1) > Dear Vlad/Bob/Chris (which is it?!), none of the above. > > Please submit a patch to mesa-dev@lists.freedesktop.org adding > > #ifdef _OPENMP > #include <omp.h> > #endif > > to the files that call omp_* functions. > > Also, don't put -fopenmp in your system CFLAGS. It doesn't do anything > without the package being written with OpenMP. I don't remember why I added that. I did this long ago because the mythtv box is a low powered atom that struggles with video playback. Maybe I was just clutching at straws back then when I spent a few minutes trying to use it for video playback > Sincerely, a Gentoo Developer.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.