mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2013-05-15, 02:33   #12
jrk
 
jrk's Avatar
 
May 2008

3×5×73 Posts
Exclamation

Quote:
Originally Posted by wombatman View Post
Code:
libmsieve.a(stage1.no):stage1.c:(.text+0xdf4): undefined reference to `sieve_lat
tice_cpu'
collect2.exe: error: ld returned 1 exit status
make: *** [all] Error 1
If you previously ran make without CUDA=1, you must do a make clean before running make with CUDA=1.
jrk is offline   Reply With Quote
Old 2013-05-15, 03:21   #13
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

1,741 Posts
Default

JRK, thank you very much!

I have a successful build both with and without CUDA now! I don't know if anybody else wants them, but if so, I'd be happy to email them to someone or upload them to the appropriate place!

I also now have a build with parameters WIN=1 CUDA=1 (so zlib is successfully compiled in as well)!

Last fiddled with by wombatman on 2013-05-15 at 03:58
wombatman is offline   Reply With Quote
Old 2013-05-15, 08:39   #14
sega24
 
sega24's Avatar
 
May 2013

2·3 Posts
Default

i have ..

AMD Phenom II X6 1090T (tm)
Win7 (64-bit)
GTX 660

...and i think your version should work on my pc :)

btw nice job ;)

my mail is on your pm ;)

thx :)
sega24 is offline   Reply With Quote
Old 2013-05-15, 11:24   #15
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

2·3·19·31 Posts
Default

Recompiled but untested binary (for GPU, optimized with -march=barcelona) is available here

Last fiddled with by jasonp on 2013-05-15 at 11:31
jasonp is offline   Reply With Quote
Old 2013-05-15, 13:31   #16
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

1,741 Posts
Default

Jason,

I downloaded the binary and it works perfectly.
wombatman is offline   Reply With Quote
Old 2013-05-15, 14:43   #17
jasonp
Tribal Bullet
 
jasonp's Avatar
 
Oct 2004

2·3·19·31 Posts
Default

Great, sorry I suck at being timely about helping.

Last fiddled with by jasonp on 2013-05-15 at 14:44
jasonp is offline   Reply With Quote
Old 2013-05-15, 16:10   #18
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

1,741 Posts
Default

No worries, Jason! Your help has been fantastic!
wombatman is offline   Reply With Quote
Old 2013-05-15, 18:26   #19
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

1,741 Posts
Default

Well, now I'm back to feeling dumb again. I'm trying to compile an optimized version for my laptop. I changed the march flag to the appropriate processor, installed GMP, CUDA, and the Microsoft SDK. I added all the paths to every lib, include, and bin folder I could think of, and tried to compile.

Using
Code:
make clean && make all WIN=1
I get the following:

Code:
include/gmp_xface.h:19:17: fatal error: gmp.h: No such file or directory
I'm certain this is a simple error, but I've no idea what I'm forgotten.
wombatman is offline   Reply With Quote
Old 2013-05-15, 18:35   #20
PhilF
 
PhilF's Avatar
 
Feb 2005
Colorado

2·5·59 Posts
Default

When you did the .configure, did you add the --with-gmp=/usr/local?

/usr/local is for Linux, not sure for MinGW. But I do seem to remember that is the error I got if I forgot the "--with-gmp" flag.
PhilF is offline   Reply With Quote
Old 2013-05-15, 19:05   #21
wombatman
I moo ablest echo power!
 
wombatman's Avatar
 
May 2013

1,741 Posts
Default

If you mean for the compilation of the msieve program, there's no .configure step. You go straight to the make all I listed, to the best of my knowledge (which is, admittedly, pretty small at this point, haha). If you're not referring to that, which step are you talking about?
wombatman is offline   Reply With Quote
Old 2013-05-15, 20:20   #22
PhilF
 
PhilF's Avatar
 
Feb 2005
Colorado

2·5·59 Posts
Default

Sorry, I think you are right. I have been compiling ECM a lot recently, and the flag goes with that program's .configure. I need to remember to plug my brain in before posting.

But it is still interesting that the error is similar -- can't find the gmp.h header file.

It shouldn't be long before somebody with the *right* answer chimes in here.
PhilF is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
L1-BITS values for gnfs siever compilation EdH Factoring 8 2016-12-06 14:39
GMP under win64 compilation paulunderwood Programming 1 2015-10-30 02:18
CUDA 64-bit compilation wombatman Msieve 1 2014-02-08 18:40
LLR compilation error nuggetprime Software 1 2008-08-29 15:17
Request for compilation fivemack Factoring 12 2008-06-13 06:07

All times are UTC. The time now is 04:20.

Thu Mar 4 04:20:02 UTC 2021 up 91 days, 31 mins, 1 user, load averages: 1.94, 1.82, 1.67

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.