![]() |
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] |
Unfortunately that still gives the exact same error.
|
[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] |
[QUOTE=bur;577345][CODE]/home/florian/Math/[/CODE][/QUOTE]
[URL="https://en.wikipedia.org/wiki/Florian_Luca"]This[/URL] Florian? |
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] |
Note it should be "make yafu...." not just "make...".
|
I tried both, still that error. So the error comes from cc for some reason not having included libmsieve.a?
|
Do a 'make clean NFS=1 USE_AVX2=1' and then retry the make.
|
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=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. |
Please attach your yafu Makefile. Also what is the output of [C]ls -l ../msieve[/C] ?
|
All times are UTC. The time now is 16:38. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.