On 21/7/10 17:32, Krzysztof Kosiński wrote:
W dniu 21 lipca 2010 17:21 użytkownik ~suv <suv-sf@...58...> napisał:
GCC 4.0.1 does not support OpenMP. GCC 4.2.1 _does_ support OpenMP according to its man page:
-fopenmp Enable handling of OpenMP directives "#pragma omp" in C/C++ and "!$omp" in Fortran. When -fopenmp is specified, the compiler generates parallel code according to the OpenMP Application Program Interface v2.5 <http://www.openmp.org/>.
<omp.h> does exist:
$ ll /usr/lib/gcc/i686-apple-darwin9/4.2.1/include/omp.h -rw-r--r-- 1 root wheel 2793 Jul 7 2009 /usr/lib/gcc/i686-apple-darwin9/4.2.1/include/omp.h
What do I miss here?
It might be a bug in the AX_OPENMP autoconf macro (in m4/ax_openmp.m4). The first thing that comes to mind is that it relies on $IFS being set to space. Do you modify $IFS anywhere in the OSX build script?
no modifications of $IFS I'm aware of:
suv$ echo $IFS | cat -e $ suv$ env | grep IFS suv$ suv$ set | grep IFS IFS=$' \t\n' suv$ grep IFS packaging/macosx/*.sh suv$
nothing special here AFAICT, using bash:
suv$ bash --version GNU bash, version 3.2.17(1)-release (i386-apple-darwin9.0)
~suv