Closed iamholger closed 7 years ago
Hi Johannes,
just to report I fixed it by adding libmath explicitly to the gcc command in makesharedlibs.sh as such:
./configure && sed -i "s|-o libcuba.so|-lm -o libcuba.so|g" makesharedlib.sh && ./makesharedlib.sh
Thanks, Holger
This should finally be fixed in commit 595ce84e2d893381fe4e15e204ffc7da57c3c91c
I installed using the instructions here and got the same issue. Git log shows that this is indeed the version that you modified on Feb 27. Using the script suggested by @iamholger resolved the problem.
So -lm has to go after $FILES, otherwise it does not work?
Maybe! I just copied the line above, I'm not the greatest at makefile-fu
I am afraid this just be still open. I installed today from github, Multinest, Cuba and PyMultinest into a customized docker cosmobox(from cambant). Everything went fine, except for cuba.
Using the fix above from @ianholger did the job.
@lbarosi: Could you test whether modifying the Makefile so that -lm goes after $FILES works?
@JohannesBuchner indeed it works.
gcc -shared -Wall $FILES -lm -o libcuba.so
Also to mention, in documentation an update of library Atlas for DEB installations. (http://johannesbuchner.github.io/PyMultiNest/install.html#prerequisites-for-building-the-libraries),
# sudo apt install libatlas{3-base,-dev}
sudo apt install libatlas{3-base,-base-dev}
Just wanted to add that I find the same error (and fixed it with the same solution)
OK, I ran into this myself and fixed it, but hadn't pushed yet. Please try with the latest commit.
Hi Johannes,
I build the shared libcuba.so with according to your instructions but when trying to import pycuba in python I get this error:
OSError: /usr/local/lib/libcuba.so: undefined symbol: _ZGVbN2v___log_finite
nm -CD on /usr/local/lib/libcuba.so indeed flags up a few undefined bits: U _ZGVbN2v_log_finite U exp_finite U __pow_finite U __powl_finite
Do you happen to know which library provides these symbols?
Thanks, Holger