mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   YAFU (https://www.mersenneforum.org/forumdisplay.php?f=96)
-   -   YAFU 2.0 (https://www.mersenneforum.org/showthread.php?t=26681)

paulunderwood 2021-05-01 05:13

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[/CODE]

or

[CODE]make NFS=1 USE_SSE41=1 USE_AVX=1 -lmsieve[/CODE]

bur 2021-05-01 05:42

Unfortunately that still gives the exact same error.

paulunderwood 2021-05-01 06:04

[QUOTE=bur;577347]Unfortunately that still gives the exact same error.[/QUOTE]

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[/code]

LaurV 2021-05-01 06:54

[QUOTE=bur;577345][CODE]/home/florian/Math/[/CODE][/QUOTE]
[URL="https://en.wikipedia.org/wiki/Florian_Luca"]This[/URL] Florian?

bur 2021-05-01 11:33

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


[c]-l../msieve/libmsieve.a[/c] 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[/code]

paulunderwood 2021-05-01 15:22

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

bur 2021-05-02 15:37

I tried both, still that error. So the error comes from cc for some reason not having included libmsieve.a?

bsquared 2021-05-02 15:48

Do a 'make clean NFS=1 USE_AVX2=1' and then retry the make.

bur 2021-05-02 16:35

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.

bsquared 2021-05-02 16:45

[QUOTE=bur;577456]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.[/QUOTE]

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.

paulunderwood 2021-05-02 23:50

Please attach your yafu Makefile. Also what is the output of [C]ls -l ../msieve[/C] ?


All times are UTC. The time now is 06:09.

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