mersenneforum.org  

Go Back   mersenneforum.org > Prime Search Projects > Sierpinski/Riesel Base 5

Reply
 
Thread Tools
Old 2006-05-11, 20:23   #56
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

350710 Posts
Default

Could someone please give instructions on installing the source code with cygwiin.

Other than downloading cygwin, I'm starting from scratch. I'm at the window in cygwin that asks what packages to install. At the moment I have no packages installed whatsoever.

Thanks for any help.
jasong is offline   Reply With Quote
Old 2006-05-11, 20:31   #57
axn
 
axn's Avatar
 
Jun 2003

31·163 Posts
Default

Quote:
Originally Posted by jasong
Could someone please give instructions on installing the source code with cygwiin.

Other than downloading cygwin, I'm starting from scratch. I'm at the window in cygwin that asks what packages to install. At the moment I have no packages installed whatsoever.
You need to get the gcc package. Should be under Devel. Actually, since I wasn't sure which one to get, I got all gccXXX packages
axn is online now   Reply With Quote
Old 2006-05-11, 20:37   #58
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

1101101100112 Posts
Default

Quote:
Originally Posted by axn1
You need to get the gcc package. Should be under Devel. Actually, since I wasn't sure which one to get, I got all gccXXX packages
okay, then what?
jasong is offline   Reply With Quote
Old 2006-05-11, 20:50   #59
axn
 
axn's Avatar
 
Jun 2003

31×163 Posts
Default

Quote:
Originally Posted by jasong
okay, then what?
Once you install cygwin, you just need to open a cygwin shell window (run "Cygwin Bash shell" from your program menu) Extract the c source files into a folder and run 'make'! (oh yeah, you need to install the 'make' thing also from Devel)
axn is online now   Reply With Quote
Old 2006-05-11, 21:13   #60
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

1101101100112 Posts
Default

Could someonne please join me on irc? I'm on freenode and my nick is "jasong"
jasong is offline   Reply With Quote
Old 2006-05-12, 00:17   #61
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

3×7×167 Posts
Default

I reread the posts and figured out what the problem is, but not how to solve it. Apparently it's the leading underscores in a couple of files, specifically, the following:

arithmetic64.o
bsgs.o
factors.o
primes.o

(I'm going to try to edit it in a text editor. Wish me luck. :)

Edt: No good luck on my end, just a bunch of ASCII gibberish. Maybe someone else would like to try?

Last fiddled with by jasong on 2006-05-12 at 00:22
jasong is offline   Reply With Quote
Old 2006-05-12, 00:50   #62
jasong
 
jasong's Avatar
 
"Jason Goatcher"
Mar 2005

DB316 Posts
Default

Okay, I deleted the underscores and I'm still have problems. Here's the output:

Code:
gcc -s  srsieve.o global.o bitmap.o util.o sequences.o arithmetic32.o arithmetic
64.o bsgs.o factors.o hashtable.o primes.o events.o mulmod62.o  -lm -o srsieve
arithmetic64.o:arithmetic64.c:(.text+0x1fc): undefined reference to `_mulmod62'
arithmetic64.o:arithmetic64.c:(.text+0x2cd): undefined reference to `_mulmod62'
arithmetic64.o:arithmetic64.c:(.text+0x328): undefined reference to `_mulmod62'
bsgs.o:bsgs.c:(.text+0x2bf): undefined reference to `__one_over_p'
bsgs.o:bsgs.c:(.text+0xa3a): undefined reference to `_mulmod62'
bsgs.o:bsgs.c:(.text+0xbad): undefined reference to `_mulmod62'
factors.o:factors.c:(.text+0x127): undefined reference to `_mulmod62'
primes.o:primes.c:(.text+0x130): undefined reference to `_mod62_init'
primes.o:primes.c:(.text+0x178): undefined reference to `_mod62_fini'
primes.o:primes.c:(.text+0x187): undefined reference to `_mod62_fini'
collect2: ld returned 1 exit status
jasong is offline   Reply With Quote
Old 2006-05-12, 02:58   #63
Joe O
 
Joe O's Avatar
 
Aug 2002

10000011012 Posts
Default

Quote:
Originally Posted by jasong

(I'm going to try to edit it in a text editor. Wish me luck. :)

Edt: No good luck on my end, just a bunch of ASCII gibberish. Maybe someone else would like to try?
Use WordPad instead of Notepad. It understands unix style line endings.
Joe O is offline   Reply With Quote
Old 2006-05-12, 09:26   #64
Greenbank
 
Greenbank's Avatar
 
Jul 2005

1100000102 Posts
Default

There are a few #defines in arithmetic.h that also need the underscores removing. Maybe a couple of other .h files.

Or you could just use the source that I 'fixed' that was posted not 10 posts ago.

http://www.mersenneforum.org/showpos...4&postcount=53
Greenbank is offline   Reply With Quote
Old 2006-05-12, 10:20   #65
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

634710 Posts
Default

Quote:
Originally Posted by Joe O
Use WordPad instead of Notepad. It understands unix style line endings.
TextPad is even better...
rogue is offline   Reply With Quote
Old 2006-05-12, 10:25   #66
Greenbank
 
Greenbank's Avatar
 
Jul 2005

2×193 Posts
Default

Quote:
Originally Posted by rogue
TextPad is even better...
With cygwin comes vi, but then I don't want to start a holy editor war. :-)
Greenbank is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Very Prime Riesel and Sierpinski k robert44444uk Open Projects 587 2016-11-13 15:26
Sierpinski/ Riesel bases 6 to 18 robert44444uk Conjectures 'R Us 139 2007-12-17 05:17
Sierpinski/Riesel Base 10 rogue Conjectures 'R Us 11 2007-12-17 05:08
Sierpinski / Riesel - Base 23 michaf Conjectures 'R Us 2 2007-12-17 05:04
Sierpinski / Riesel - Base 22 michaf Conjectures 'R Us 49 2007-12-17 05:03

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


Sat Jul 17 09:13:33 UTC 2021 up 50 days, 7 hrs, 1 user, load averages: 1.42, 1.67, 1.61

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.