Thursday, March 20, 2008

Compiling fftw2 in IA64

Compile and Install FFTW2 on IA64 architecture was a painfulness experience. However, the problems happen when you're trying to link your MPI programs with the fftw lib.

I got the next error:

/home/jas/fftw2/lib/libfftw.a(rader.o)(.text+0x23e2): In function `fftw_create_rader??unw':
: undefined reference to `__libm_sincos'
/home/jas/fftw2/lib/libfftw.a(twiddle.o)(.text+0x9d2): In function `fftw_create_twiddle':
: undefined reference to `__libm_sincos'
/home/jas/fftw2/lib/libfftw.a(twiddle.o)(.text+0x11c2): In function `fftw_create_twiddle':
: undefined reference to `__libm_sincos'
/home/jas/fftw2/lib/libfftw.a(twiddle.o)(.text+0x1a22): In function `fftw_create_twiddle':
: undefined reference to `__libm_sincos'


You can solve it, adding the next strings to your compilation line:
  • -L/opt/intel/cc/9.1/lib
  • -limf
Now, it works ;-)

Regards.

PD: An useful program for reviewing the content of a static library is nm.

No comments: