mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   EdH (https://www.mersenneforum.org/forumdisplay.php?f=152)
-   -   How I install YAFU onto my Ubuntu Machines (https://www.mersenneforum.org/showthread.php?t=23087)

EdH 2020-12-09 17:21

[QUOTE=Plutie;565773]I have tried with both make clean and fresh download. I set the GCC in the makefile to specifically gcc-7.[/QUOTE]
gcc-7 has a bunch of dependencies. I wonder if any of those are met by gcc-10 installed libraries.

The only other idea I can up with for now, would be a basic virtual machine install of Ubuntu 18.04, make YAFU in the VM and then copy it to the host. But, that would be a bit of work and somewhat time consuming to install all the packages.

Plutie 2020-12-11 23:55

I actually tried doing that earlier, I'm getting missing symbol errors when running on my host though.


[FONT=monospace][COLOR=#000000]./yafu: symbol lookup error: ./yafu: undefined symbol: __gmpn_add_nc[/COLOR]
[/FONT]

EdH 2020-12-12 01:18

[QUOTE=Plutie;565977]I actually tried doing that earlier, I'm getting missing symbol errors when running on my host though.


[FONT=monospace][COLOR=#000000]./yafu: symbol lookup error: ./yafu: undefined symbol: __gmpn_add_nc[/COLOR]
[/FONT][/QUOTE]
To my untrained eyes that looks like a GMP mismatch - Bummer! Maybe B[SUP]2[/SUP] will come up with something else. But, it looks like there's a lot of work involved going the extern route.

Did you compile GMP or did you use the libgmp-dev from the repository?

Plutie 2020-12-12 18:01

I used the same release of GMP on both host and VM. (6.2.0)

Plutie 2020-12-23 15:01

late update: turns out I just needed to build it as a statically linked binary (added -static to CFLAGS). It's working fine now, so that's good.

EdH 2020-12-23 15:08

[QUOTE=Plutie;567120]late update: turns out I just needed to build it as a statically linked binary (added -static to CFLAGS). It's working fine now, so that's good.[/QUOTE]Great to read! Thanks for keeping us apprised. I'll keep it in mind for the future. Not sure I'll add anything to the lead post right now, but maybe later.


All times are UTC. The time now is 05:57.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.