Menu

#462 FFTW3 error

next release
open
nobody
5
2022-05-12
2022-05-12
No

I am getting the FFTW3 error while installing PSRCHIVE. We use Ubuntu 20.04 and following the ultimate-guide-installing which you shared.

If any one come across similar how we need to fix, any ideas.


./configure F77=gfortran --prefix=$ASTROSOFT --with-cfitsio-dir=$ASTROSOFT --with-fftw3-dir=$ASTROSOFT --enable-shared CFLAGS=-fPIC FFLAGS=-fPIC

make


/usr/bin/ld: ./.libs/libpsrfft.a(FFTW3_Transform.o): in function FTransform::FFTW3::Plan::bcc1d(unsigned long, float*, float const*)': FFTW3_Transform.C:(.text+0x1fa): undefined reference tofftwf_execute_dft'
/usr/bin/ld: FFTW3_Transform.C:(.text+0x205): undefined reference to fftwf_execute_dft' /usr/bin/ld: ./.libs/libpsrfft.a(FFTW3_Transform.o): in functionFTransform::FFTW3::Plan::bcr1d(unsigned long, float, float const)':
FFTW3_Transform.C:(.text+0x27a): undefined reference to fftwf_execute_dft_c2r' /usr/bin/ld: FFTW3_Transform.C:(.text+0x285): undefined reference tofftwf_execute_dft_c2r'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:921: fft_speed] Error 1
make[3]: Leaving directory '/home/pulsar/pulsar_software/psrchive/Util/fft'
make[2]: *** [Makefile:597: all-recursive] Error 1
make[2]: Leaving directory '/home/pulsar/pulsar_software/psrchive/Util'
make[1]: *** [Makefile:522: all-recursive] Error 1
make[1]: Leaving directory '/home/pulsar/pulsar_software/psrchive'
make: *** [Makefile:453: all] Error 2

Discussion


Log in to post a comment.

MongoDB Logo MongoDB