alvincjk / EMRI_Kludge_Suite

25 stars 19 forks source link

AAKwrapper.cpython-37m-x86_64-linux-gnu.so: undefined symbol: gsl_multiroot_fsolver_hybrids #15

Closed zhangyhMk0 closed 2 years ago

zhangyhMk0 commented 2 years ago

Dear authors,

I used to use AAKwrapper without any problem before I upgraded my Debian to bullseye, after that the package seems to have problem linking the gsl library. I understood this project is no longer being maintained and shifted to FastEMRIWaveforms (BTW it works well with my machine), while this error message bugs me, I wonder if this problem looks familiar to you.

I now use a conda enviroment with python=3.7, gsl=2.7 and fftw installed. I simply #make and python setup.py install under the git repository. After that when I tried 'import AAKwrapper', it gives me:

home/zhang/anaconda3/envs/klunge/lib/python3.7/site-packages/AAKwrapper-0.1-py3.7-linux-x86_64.egg/AAKwrapper/AAKwrapper.cpython-37m-x86_64-linux-gnu.so: undefined symbol: gsl_multiroot_fsolver_hybrids

When I try to ldd the binary:

(klunge) zhang@caps:~$ ldd /home/zhang/anaconda3/envs/klunge/lib/python3.7/site-packages/AAKwrapper-0.1-py3.7-linux-x86_64.egg/AAKwrapper/AAKwrapper.cpython-37m-x86_64-linux-gnu.so linux-vdso.so.1 (0x00007fffbcdf6000) libstdc++.so.6 => /home/zhang/anaconda3/envs/klunge/lib/libstdc++.so.6 (0x00007ff3f5357000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff3f51c1000) libgcc_s.so.1 => /home/zhang/anaconda3/envs/klunge/lib/libgcc_s.so.1 (0x00007ff3f51a8000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff3f4fe3000) /lib64/ld-linux-x86-64.so.2 (0x00007ff3f5567000)

It doesn't seem to have anything to do with libgsl and libgslcblas. While if I do the same thing on other computers with functional AAKwrapper, I got something like: libgslcblas.so.0 => /opt/gsl/lib/libgslcblas.so.0 (0x00007f5c063a3000) libgsl.so.25 => /opt/gsl/lib/libgsl.so.25 (0x00007f5c05ed4000)

I understand this might be a very specific issue with this specific computer, since actually the package works well with my other machines, but none of them is Linux 11. I'm not sure whether this is the best place to ask this question, since it seems to be a more OS issue, and I absolutely switch to the new framework. It's not a big deal but a bit frustrating, I'm still curious about the cause, I suppose it might be best to get some help from the expert before giving up.

Best regards,

Harry

alvincjk commented 2 years ago

Hi Harry,

This sort of error does look familiar, and is almost always a problem with the GSL installation, although I don't have any concrete suggestions for your particular issue. You could try working outside an environment, or using things like python setup.py build_ext --inplace as a potential workaround.

I would also strongly suggest gradually migrating to FastEMRIWaveforms (as you already seem to be doing anyway).

Alvin

zhangyhMk0 commented 2 years ago

Hi Alvin,

Thank you for your reply! I will absolutely try and move on to the new framework.

Cheers,

Harry