I am trying to compile fftw3 with the openmp option under mac os Lion. As exposed in http://www.fftw.org/release-notes.html, I use the following command line ./configure --enable-openmp
The configure stops at the line: checking for OpenMP flag of C compiler... unknown configure: error: don't know how to enable OpenMP
I know that openmp is given with xcode but I don't know how to give it to configure option, does anybody can help me please? I have already succeed in using openmp in other programs.
I hope this is enough information for helping me.
Thank you,
Note: I have Xcode 4.2, gcc 4.2.1.
In the section "Output variables" of config.log, I find:
CFLAGS='-O3 -fomit-frame-pointer -mtune=native -fstrict-aliasing -ffast-math'
The failure seems to be (in the config.log):
configure:18427: gcc -std=gnu99 -o conftest conftest.c -lm >&5
Undefined symbols for architecture x86_64:
"_omp_set_num_threads", referenced from
_main in ccfUItzL.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
configure:18427: $? = 1
configure: failed program was:
/.../
CFLAGS
value, and the point of failure, in theconfig.log
file? – Brett Halegcc
the openmp flag is-fopenmp
, you can provide it with an export CFLAGS – Bort