PoonLab / Kaphi

Kernel-embedded ABC-SMC for phylodynamic inference
GNU Affero General Public License v3.0
4 stars 2 forks source link

'undefined symbol: __gmpz_set_si' when installing Kaphi #118

Closed kstanski closed 6 years ago

kstanski commented 6 years ago

Hi All

I have been facing an undefined symbol: __gmpz_set_si issue when trying to install Kaphi. The issue has occurred on macOS 10.12 and Ubuntu 16.04. It is easily resolved by adding a proper flag to the Makevars file like so: https://github.com/kstanski/Kaphi/commit/8fd1c98395ad41821476480b7fc8b1cb2b7c2d09 Maybe somebody will find it helpful.

Many thanks. Best wishes, Kaj

ArtPoon commented 6 years ago

Thanks for your feedback @kstanski, I appreciate that you not only identified the issue but also provided a potential fix!

ArtPoon commented 6 years ago

@0ldM4j0r or @gtng92, can one of you please try to reproduce this installation issue in a VM and add the flag if necessary?

0ldM4j0r commented 6 years ago

@ArtPoon @gtng92 Sure I can do that

0ldM4j0r commented 6 years ago

@kstanski could you specify when during installation did you encounter this error. I have just tested the installation in two VMs (one for mac and the other for ubuntu) and I didn't come across the error you mentioned.

kstanski commented 6 years ago

@0ldM4j0r , it occurs during the installation of Kaphi_0.0.1.tar.gz. In the very last step, R checks whether the package can be loaded and it cannot due to the undefined symbol. I am happy to provide any of my system settings if it would be helpful. Cheers

0ldM4j0r commented 6 years ago

So here is my console out put after running R CMD INSTALL pkg:

* installing to library ‘/home/faisal/R/x86_64-pc-linux-gnu-library/3.2’
* installing *source* package ‘Kaphi’ ...
** libs
make: Nothing to be done for 'all'.
installing to /home/faisal/R/x86_64-pc-linux-gnu-library/3.2/Kaphi/libs
** R
** preparing package for lazy loading
** help
Warning: bad markup (extra space?) at tree.stats.Rd:47:28
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (Kaphi)

I will test installation with the flag you suggested. If all goes well I will add the flag to avoid the same issue occurring in the future.

0ldM4j0r commented 6 years ago

added flag 108258377d9fa1aef4388e21d2e8fea7dc028e59