TalentedHack icon indicating copy to clipboard operation
TalentedHack copied to clipboard

FFTW3 linking problem

Open apc518 opened this issue 2 years ago • 2 comments

Same error as in this issue from the nfft library. I'm getting this error after running make in the repo: /usr/bin/ld: /usr/local/lib/libfftw3f.a(assert.o): relocation R_X86_64_PC32 against symbol `stdout@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC

The issue linked above said to recompile fftw3 with --enable-shared, so I did, but that did not change anything.

I compiled fftw3 with

./configure --enable-shared --enable-float
make
make install

then went back to talentedhack and tried make again. The output of make install said that the library was installed at /usr/local/lib, and I made sure to pass in /usr/local/lib/pkgconfig as the PKG_CONFIG_PATH environment variable to make for TalentedHack.

Any idea how I can resolve this?

apc518 avatar Mar 25 '22 09:03 apc518

Have you tried using prebuilt FFTW libraries from your package manager? have you tried https://stackoverflow.com/questions/45321342/how-to-build-fftw-in-ubuntu?

jeremysalwen avatar Mar 25 '22 23:03 jeremysalwen

Hi just curious if you found a resolution. Running into the same problem.

profquad avatar Sep 13 '24 13:09 profquad