mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Blogorrhea > EdH

Reply
 
Thread Tools
Old 2020-12-09, 17:21   #111
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

3×372 Posts
Default

Quote:
Originally Posted by Plutie View Post
I have tried with both make clean and fresh download. I set the GCC in the makefile to specifically gcc-7.
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.
EdH is offline   Reply With Quote
Old 2020-12-11, 23:55   #112
Plutie
 
"Evan"
Dec 2020
Montreal

10010002 Posts
Default

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


./yafu: symbol lookup error: ./yafu: undefined symbol: __gmpn_add_nc
Plutie is offline   Reply With Quote
Old 2020-12-12, 01:18   #113
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

100B16 Posts
Default

Quote:
Originally Posted by Plutie View Post
I actually tried doing that earlier, I'm getting missing symbol errors when running on my host though.


./yafu: symbol lookup error: ./yafu: undefined symbol: __gmpn_add_nc
To my untrained eyes that looks like a GMP mismatch - Bummer! Maybe B2 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?
EdH is offline   Reply With Quote
Old 2020-12-12, 18:01   #114
Plutie
 
"Evan"
Dec 2020
Montreal

23·32 Posts
Default

I used the same release of GMP on both host and VM. (6.2.0)
Plutie is offline   Reply With Quote
Old 2020-12-23, 15:01   #115
Plutie
 
"Evan"
Dec 2020
Montreal

23·32 Posts
Default

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.
Plutie is offline   Reply With Quote
Old 2020-12-23, 15:08   #116
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

3·372 Posts
Default

Quote:
Originally Posted by Plutie View Post
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.
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.
EdH is offline   Reply With Quote
Old 2021-05-30, 18:45   #117
jcrombie
 
jcrombie's Avatar
 
"Jonathan"
Jul 2010
In a tangled web...

5·43 Posts
Default

Quote:
Originally Posted by Gelly View Post
Having an identical issue with multiple definition of <INSERT VARIABLE HERE>. Seems to have some relation to msieve, as yafu.h is fighting with "factor/qs/msieve/lanczos.o" and "factor/nfs/snfs.o"

I changed the gcc version to gcc-7 (7.5.0), gcc-8 (8.4.0), gcc-9 (9.3.0), and the default gcc on Ubuntu 20.10 (10.2.0 - nifty pattern haha), all to no avail. Even tried g++ (also 10.2.0), with no changes.

I would think this is likely to be a problem with msieve somehow, although I'm not certain. I followed EdH's tutorials to a tee in the past (thanks, ed!), with no issues (except siqs segfaulting, but that's whatever).

Now, suddenly, this is leaving me unable to get yafu up and at em on the newest version of Ubuntu. If you need any more info from me regarding this, I'm happy to oblige.

Just compiled the branches/wip in gcc 10.3. I've attach a patch file. (To patch, "cd branches/wip ; svn patch patchfile") Cheers.
Attached Files
File Type: gz wip_gcc10.patch.gz (4.8 KB, 75 views)
jcrombie is offline   Reply With Quote
Old 2021-09-29, 07:06   #118
totmalone
 
totmalone's Avatar
 
"Felix"
Sep 2021
Indonesia

7 Posts
Post

Hi, i trying to install yafu, but I get this error when I try to "tune" (image attached) I'm using WSL to try yafu first before I install it to my device... Any suggestion ?
https://imgur.com/a/rfNoJuu

Last fiddled with by totmalone on 2021-09-29 at 07:07 Reason: Fixing img attachment
totmalone is offline   Reply With Quote
Old 2021-09-29, 12:42   #119
EdH
 
EdH's Avatar
 
"Ed Hall"
Dec 2009
Adirondack Mtns

100138 Posts
Default

Quote:
Originally Posted by totmalone View Post
Hi, i trying to install yafu, but I get this error when I try to "tune" (image attached) I'm using WSL to try yafu first before I install it to my device... Any suggestion ?
You might try YAFU2. It is the current version that is being actively worked on and it has its own thread that the author regularly watches. He can help with the inner workings of YAFU. And, he's much more familiar with WSL than I am.

I can help with most installation issues, but bsquared will need to help for deeper troubles.
EdH is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
How I Install CADO-NFS onto my Ubuntu Machines EdH EdH 3 2019-06-24 03:42
How I Install GMP-ECM onto my Ubuntu Machines EdH EdH 12 2019-04-16 09:28
How I Install msieve onto my Ubuntu Machines EdH EdH 0 2018-02-23 14:43
How I Install ggnfs onto my Ubuntu Machines EdH EdH 0 2018-02-22 03:31
How I Install GMP onto my Ubuntu Machines EdH EdH 0 2018-02-21 23:48

All times are UTC. The time now is 18:14.


Mon Nov 29 18:14:37 UTC 2021 up 129 days, 12:43, 0 users, load averages: 1.67, 1.47, 1.36

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

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.