fastlib / fCWT

The fast Continuous Wavelet Transform (fCWT) is a library for fast calculation of CWT.
Apache License 2.0
263 stars 53 forks source link

Linking problem: undefined reference to log@GLIBC_2.29 #45

Closed stryder-vtx closed 1 year ago

stryder-vtx commented 1 year ago

After running CMake followed by make, I get the following error: ../libs/libfftw3fl.so undefined reference to 'log@GLIBC_2.29' I'm on a RHEL 7 machine using RedHat's devtoolset-11 (gcc 11.2) FFTW3 exists on the system, but I only have libfftw3.so, libfftw3f.so and libfftw3l.so not 'fl'. I'd build that library myself, but there isn't a configure/make that does that. Or perhaps there's an easier solution?

felixdollack commented 1 year ago

@stryder-vtx it seems with RHEL 7 it is not possible to install GLIBC 2.29. In a recent issue of another project someone commented on a workaround using RHEL 9...

stryder-vtx commented 1 year ago

Is there anything special about the libfftw3fl.so library such that it can't be built on a RHEL 7 machine? Or perhaps I can just use an existing libfftw3f.so or libfftw3l.so?

stellarpower commented 1 year ago

glibc errors usually occur for me when I build a project on one OS release, and then try to run it on another. Are you installing the FFTW package from the repos for a newer version of RedHat?

stryder-vtx commented 1 year ago

I got it to build in a docker container running Rocky Linux 9.2 after modifying the CMakeLists.txt to use the installed FFTW libraries and look in /usr/lib64.

felixdollack commented 1 year ago

@stryder-vtx, I am glad you got it working for you. Since Rocky Linux is the open-source variant of RHEL, you also could have used RHEL9 as mentioned before.

stellarpower commented 1 year ago

It sounds like it could be time to add a CI build to the project, given the number of opened issues relating to building. And maybe a simple CMake-based example application, aimed at the experience level of say an academic more so than at a programmer.

felixdollack commented 1 year ago

@stellarpower there is a pending pull (#33) request to do just that