mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Factoring

Reply
 
Thread Tools
Old 2009-09-27, 20:23   #1
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

2A1C16 Posts
Default Problems building ggnfs

I couldn't find a (recent) thread discussing the material below. If there is somewhere more appropriate, perhaps a moderator would move this stuff there.

Anyway, up until now I've never really tried to use ggnfs for sieving (or anything else for that matter) though I dabbled with it in the past. I thought it time to see what everyone else is excited about. Then I hit problems.

First, the recommended distribution kit still seems to be that on SourceForge and it is over three years old. I know work has been done on ggnfs in that time because I've seen the chatter on the forum.

Is ggnfs-0.77.1-20060513 really the current version? Seems rather doubtful to me.

That version doesn't build on my MacOS Snow Leopard system but until I'm sure there isn't something rather more current there doesn't seem to be much point in posting detailed error messages.

Thanks for any help which may be forthcoming.


Paul
xilman is offline   Reply With Quote
Old 2009-09-27, 20:49   #2
fivemack
(loop (#_fork))
 
fivemack's Avatar
 
Feb 2006
Cambridge, England

3·2,141 Posts
Default

Nobody's made a tarball of the ggnfs code for ages; you want to check out the subversion trunk with

and I'll be interested to know about build problems on snow leopard because I'm getting a macpro on my desk at work the week after next.

Last fiddled with by fivemack on 2009-09-27 at 20:49
fivemack is offline   Reply With Quote
Old 2009-09-27, 21:16   #3
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

22×5×72×11 Posts
Default

Quote:
Originally Posted by fivemack View Post
Nobody's made a tarball of the ggnfs code for ages; you want to check out the subversion trunk with

and I'll be interested to know about build problems on snow leopard because I'm getting a macpro on my desk at work the week after next.
Okey-doke. I'll try that tomorrow. I'd already found the SVN trunk but hadn't taken it any further before asking for guidance.

MacOS is seriously weird in places. Things don't always work the way they should on a Unix box (and a Mac is fundamentally a Unix box) and all sorts of things are missing. I can see that I'm going to have to install svn, for instance. (Yes, I know SourceForge will build me a tarball if asked nicely, but that's no good way to get software.)


Paul
xilman is offline   Reply With Quote
Old 2009-09-27, 21:38   #4
Wacky
 
Wacky's Avatar
 
Jun 2003
The Texas Hill Country

32·112 Posts
Default

Quote:
Originally Posted by xilman View Post
MacOS is seriously weird in places. Things don't always work the way they should on a Unix box (and a Mac is fundamentally a Unix box) and all sorts of things are missing.
Quote:
Originally Posted by xilman View Post
I can see that I'm going to have to install svn
Are you sure? Xcode supports svn and I have it on my Snow Leopard system.
I suspect that it is part of the "BSD tools" that you should have installed in order to do any development.

The biggest "gotcha" is that the Apple version of gcc has all kinds of problems building GMP. I haven't checked on the "fink" distribution to see if a good 64-bit GMP library is available.
Wacky is offline   Reply With Quote
Old 2009-09-28, 05:59   #5
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

101010000111002 Posts
Default

Quote:
Originally Posted by Wacky View Post
Are you sure? Xcode supports svn and I have it on my Snow Leopard system.
I suspect that it is part of the "BSD tools" that you should have installed in order to do any development.

The biggest "gotcha" is that the Apple version of gcc has all kinds of problems building GMP. I haven't checked on the "fink" distribution to see if a good 64-bit GMP library is available.
It appears that I do have svn.


Paul
xilman is offline   Reply With Quote
Old 2009-09-29, 16:58   #6
Jeff Gilchrist
 
Jeff Gilchrist's Avatar
 
Jun 2003
Ottawa, Canada

3·17·23 Posts
Default

Quote:
Originally Posted by fivemack View Post
Nobody's made a tarball of the ggnfs code for ages; you want to check out the subversion trunk with
The easiest way to get the latest tarball now is just asking sourceforge to make one out of trunk if you don't have SVN installed:
http://ggnfs.svn.sourceforge.net/vie...ar.gz?view=tar

Jeff.
Jeff Gilchrist is offline   Reply With Quote
Old 2009-10-07, 17:45   #7
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

22×5×72×11 Posts
Default

Quote:
Originally Posted by Jeff Gilchrist View Post
The easiest way to get the latest tarball now is just asking sourceforge to make one out of trunk if you don't have SVN installed:
http://ggnfs.svn.sourceforge.net/vie...ar.gz?view=tar

Jeff.
OK, got the tarball, extracted it and typed "make nocona >& make.out". Results as in the attached file.

Would there be any interest in porting this stuff to the regular "./configure; make" approach? There would be quite a learning curve and I'm certainly not going to do it all myself. Even if there is interest, I'll need commit privilege on the repository.


Paul
Attached Files
File Type: gz make.out.gz (859 Bytes, 75 views)
xilman is offline   Reply With Quote
Old 2009-10-07, 18:24   #8
fivemack
(loop (#_fork))
 
fivemack's Avatar
 
Feb 2006
Cambridge, England

3×2,141 Posts
Default

You really want to build only the lasieve4e and msieve; the GGNFS line siever and post-processing code isn't worth the wombats.

getline isn't in the BSD libc, but reimplementing it kludily is trivial.

Building msieve's easy once you've got gmp. gmp builds OK from source, though the Darwin build of gmp with --prefix=/home/fivemack/sw produces a library which describes its location as /usr/local/lib; I ended up just copying the library there.

But a capable lasieve4e (go to the src/experimental directory, ln -s athlon64 asm, make) seems to be a good deal more trouble. Partly it's BSD Make - you need to have an explicit

asm/*:\n\t$(MAKE) -C asm $*

to get it to iterate down the directory tree, but more fundamentally the OS X assembler has a different attitude to global variables from the Linux one, and just won't accept something like mov constant(%rcx),%rdi where constant refers to a memory location: maybe dotting (%rip) throughout the code might help, but I ended up losing confidence and resuming my normal duties.
fivemack is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help building GMP for prime95 29.3 Prime95 Linux 16 2017-08-29 18:02
Building sr1sieve for RPi wombatman Software 14 2017-03-04 16:21
GGNFS problems on Windows Jeff Gilchrist Factoring 19 2011-01-16 22:38
Help building new computer Prime95 Hardware 30 2009-09-12 05:58
Building gcc 4.4.0 CRGreathouse Software 1 2009-07-07 22:25

All times are UTC. The time now is 12:08.


Mon Aug 2 12:08:37 UTC 2021 up 10 days, 6:37, 0 users, load averages: 1.77, 1.68, 1.51

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.