mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > YAFU

Reply
 
Thread Tools
Old 2021-05-01, 05:13   #67
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

F5F16 Posts
Default

When you see "undefined reference" you are not linking properly.

Without trying it myself, you should do something like:

Code:
make NFS=1 USE_SSE41=1 USE_AVX=1 -llibmsieve
or

Code:
make NFS=1 USE_SSE41=1 USE_AVX=1 -lmsieve

Last fiddled with by paulunderwood on 2021-05-01 at 05:14
paulunderwood is offline   Reply With Quote
Old 2021-05-01, 05:42   #68
bur
 
bur's Avatar
 
Aug 2020
79*6581e-4;3*2539e-3

32·47 Posts
Default

Unfortunately that still gives the exact same error.
bur is offline   Reply With Quote
Old 2021-05-01, 06:04   #69
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

75378 Posts
Default

Quote:
Originally Posted by bur View Post
Unfortunately that still gives the exact same error.
Where is libmsieve.a relative to the yafu make directory?

try:

Code:
make yafu NFS=1 USE_SSE41=1 USE_AVX=1 -l../msieve/libmsieve.a

Last fiddled with by paulunderwood on 2021-05-01 at 06:43
paulunderwood is offline   Reply With Quote
Old 2021-05-01, 06:54   #70
LaurV
Romulan Interpreter
 
LaurV's Avatar
 
"name field"
Jun 2011
Thailand

100110010100002 Posts
Default

Quote:
Originally Posted by bur View Post
Code:
/home/florian/Math/
This Florian?
LaurV is offline   Reply With Quote
Old 2021-05-01, 11:33   #71
bur
 
bur's Avatar
 
Aug 2020
79*6581e-4;3*2539e-3

6478 Posts
Default

No, most (all) of my posts here regarding mathmatics would probably be somewhat shameful for a "real" mathmatician. :D


-l../msieve/libmsieve.a still results in the error.


The path should be correct:
Code:
~/Math/yafu$ ls ../msieve/libmsieve.a -l
-rw-rw-r-- 1 florian florian 1120358 Apr 20 16:54 ../msieve/libmsieve.a
bur is offline   Reply With Quote
Old 2021-05-01, 15:22   #72
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

75378 Posts
Default

Note it should be "make yafu...." not just "make...".

Last fiddled with by paulunderwood on 2021-05-01 at 15:22
paulunderwood is offline   Reply With Quote
Old 2021-05-02, 15:37   #73
bur
 
bur's Avatar
 
Aug 2020
79*6581e-4;3*2539e-3

1101001112 Posts
Default

I tried both, still that error. So the error comes from cc for some reason not having included libmsieve.a?
bur is offline   Reply With Quote
Old 2021-05-02, 15:48   #74
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

67738 Posts
Default

Do a 'make clean NFS=1 USE_AVX2=1' and then retry the make.
bsquared is offline   Reply With Quote
Old 2021-05-02, 16:35   #75
bur
 
bur's Avatar
 
Aug 2020
79*6581e-4;3*2539e-3

32·47 Posts
Default

Still the same error.


This is caused by libmsieve.a ? Or can it also be due to something in relation to ysieve or ytools? The old sourceforge yafu build using that same msieve, so I'm wondering if it might be something else.
bur is offline   Reply With Quote
Old 2021-05-02, 16:45   #76
bsquared
 
bsquared's Avatar
 
"Ben"
Feb 2007

3·1,193 Posts
Default

Quote:
Originally Posted by bur View Post
Still the same error.


This is caused by libmsieve.a ? Or can it also be due to something in relation to ysieve or ytools? The old sourceforge yafu build using that same msieve, so I'm wondering if it might be something else.
No, those symbols should be in libmsieve, the linker just can't find the library to link them in. I don't know anything else to try. You just need to make sure that a path to the location where libmsieve.a exists is in the LIBS variable of the makefile. You could try an absolute path.
bsquared is offline   Reply With Quote
Old 2021-05-02, 23:50   #77
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

5×787 Posts
Default

Please attach your yafu Makefile. Also what is the output of ls -l ../msieve ?
paulunderwood is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
yafu ignoring yafu.ini chris2be8 YAFU 6 2019-10-17 16:22
Running YAFU via Aliqueit doesn't find yafu.ini EdH YAFU 8 2018-03-14 17:22
YAFU-1.34 bsquared YAFU 119 2015-11-05 16:24
Yafu bug. storflyt32 YAFU 2 2015-06-29 05:19
yafu 1.32 bsquared YAFU 28 2012-07-20 16:17

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


Sun Dec 5 05:27:27 UTC 2021 up 134 days, 23:56, 0 users, load averages: 0.81, 1.16, 1.39

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.