mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2019-03-18, 06:17   #12
lukerichards
 
lukerichards's Avatar
 
"Luke Richards"
Jan 2018
Birmingham, UK

25×32 Posts
Default

Quote:
Originally Posted by axn View Post
3^504206+3 = 3(3^504205+1).

3^504205+1 does have a few algebraic factors, but not nearly as many as the other one.

Thanks.


Last time I tackled this, I did actually partially factor the N+1 composite. I forgot how far.


http://factordb.com/index.php?query=3%5E504206%2B3


The unknown-status large factor doesn't have a neat expression for forming it though:


http://factordb.com/index.php?id=1100000001124807633
lukerichards is offline   Reply With Quote
Old 2019-03-18, 06:39   #13
axn
 
axn's Avatar
 
Jun 2003

478010 Posts
Default

Quote:
Originally Posted by lukerichards View Post
The unknown-status large factor doesn't have a neat expression for forming it though:


http://factordb.com/index.php?id=1100000001124807633
Check now.

Last fiddled with by axn on 2019-03-18 at 06:39
axn is offline   Reply With Quote
Old 2019-03-18, 06:49   #14
GP2
 
GP2's Avatar
 
Sep 2003

29×89 Posts
Default

Quote:
Originally Posted by lukerichards View Post
Have tried 3^504206+2, as well as 3^226+1. Neither work.


Am running Ubuntu 18.04 64-bit.
The program pfgw64 uses dynamically linked shared libraries. So maybe it's not finding them.

Try running ldd on the executable file and see what it tells you: ldd pfgw64

I think on RedHat-based Linuxes, ld-linux-x86-64.so.2 is found at /lib64/ld-linux-x86-64.so.2 whereas on Ubuntu it's found at /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
GP2 is offline   Reply With Quote
Old 2019-03-18, 19:59   #15
lukerichards
 
lukerichards's Avatar
 
"Luke Richards"
Jan 2018
Birmingham, UK

1001000002 Posts
Default

Quote:
Originally Posted by GP2 View Post
The program pfgw64 uses dynamically linked shared libraries. So maybe it's not finding them.

Try running ldd on the executable file and see what it tells you: ldd pfgw64

I think on RedHat-based Linuxes, ld-linux-x86-64.so.2 is found at /lib64/ld-linux-x86-64.so.2 whereas on Ubuntu it's found at /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2

Thanks for your advice here. I have run ldd, but the output means little to me on its own.


Code:
user1@ubuntu-upstairs:~/OpenPFGW$ ldd pfgw64
    linux-vdso.so.1 (0x00007ffd8af0b000)
    libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f9c7abb0000)
    libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f9c7a820000)
    libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f9c7a480000)
    libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f9c7a088000)
    /lib64/ld-linux-x86-64.so.2 (0x00007f9c7add0000)
    libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f9c79e70000)

I also have the static binary (pfgw64s) was well as the dynamic one and they both provide the same error, suggesting its possibly not a problem with dynamic links?
lukerichards is offline   Reply With Quote
Old 2019-03-18, 20:41   #16
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

66568 Posts
Default

Quote:
Originally Posted by lukerichards View Post

I also have the static binary (pfgw64s) was well as the dynamic one and they both provide the same error, suggesting its possibly not a problem with dynamic links?
Do you have the GMP libgmp library installed?

I get:

Code:
 ldd pfgw64
	linux-vdso.so.1 (0x00007ffe15fe1000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007ff81fb44000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff81f7c2000)
	libgmp.so.10 => /usr/lib/x86_64-linux-gnu/libgmp.so.10 (0x00007ff81f53f000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff81f23b000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff81f024000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff81ec85000)
	/lib64/ld-linux-x86-64.so.2 (0x00007ff81fd61000)

Last fiddled with by paulunderwood on 2019-03-18 at 20:44
paulunderwood is offline   Reply With Quote
Old 2019-03-18, 20:52   #17
lukerichards
 
lukerichards's Avatar
 
"Luke Richards"
Jan 2018
Birmingham, UK

25×32 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
Do you have the GMP libgmp library installed?

Nope! Installing now...
lukerichards is offline   Reply With Quote
Old 2019-03-18, 20:58   #18
lukerichards
 
lukerichards's Avatar
 
"Luke Richards"
Jan 2018
Birmingham, UK

28810 Posts
Default

Quote:
Originally Posted by lukerichards View Post
Nope! Installing now...

#headdesk


Installed from https://gmplib.org/manual/Installing...Installing-GMP


Using latest version.


Still getting the same output from ldd.


Trying to compile using 'make' from source files on sourceforge throws this error:


Code:
g++: error: packages/gmp/64bit/libgmp.a: No such file or directory
g++: error: packages/gwnum/64bit/gwnum.a: No such file or directory

So somehow, installing gmplib hasn't had the desired effect!
lukerichards is offline   Reply With Quote
Old 2019-03-18, 21:00   #19
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

1101101011102 Posts
Default

The library should be in the Ubuntu repository. Try

Code:
sudo apt-get install libgmp10
For installing GMP from source you should have run (in the source directory):

Code:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
./configure
make
make check
sudo make install

Last fiddled with by paulunderwood on 2019-03-18 at 21:15
paulunderwood is offline   Reply With Quote
Old 2019-03-18, 21:31   #20
lukerichards
 
lukerichards's Avatar
 
"Luke Richards"
Jan 2018
Birmingham, UK

12016 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
The library should be in the Ubuntu repository. Try

Code:
sudo apt-get install libgmp10
For installing GMP from source you should have run (in the source directory):

Code:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
./configure
make
make check
sudo make install

I did run that process exactly. And for good measure, I tried to install from apt-get and it told me I already have the latest version.


Have even tried the old favourite of 'turn it off and on again' but still getting the "Illegal instruction 'core dumped'" error.


Could it be that I need to pass pfgw an instruction to look in usr/bin for the GMP library?
lukerichards is offline   Reply With Quote
Old 2019-03-18, 21:41   #21
lukerichards
 
lukerichards's Avatar
 
"Luke Richards"
Jan 2018
Birmingham, UK

12016 Posts
Default

And if I try to build pfgw from source files I get:



Code:
user1@ubuntu-upstairs:~/openpfgw-code-r646$ make
make -C pform/pflib
make[1]: Entering directory '/home/user1/openpfgw-code-r646/pform/pflib'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/user1/openpfgw-code-r646/pform/pflib'
make -C pform/pfmath
make[1]: Entering directory '/home/user1/openpfgw-code-r646/pform/pfmath'
make[1]: '.libs/pfmath.a' is up to date.
make[1]: Leaving directory '/home/user1/openpfgw-code-r646/pform/pfmath'
make -C pform/pfgwlib
make[1]: Entering directory '/home/user1/openpfgw-code-r646/pform/pfgwlib'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/user1/openpfgw-code-r646/pform/pfgwlib'
make -C pform/pfoo
make[1]: Entering directory '/home/user1/openpfgw-code-r646/pform/pfoo'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/user1/openpfgw-code-r646/pform/pfoo'
make -C pform/pfio
make[1]: Entering directory '/home/user1/openpfgw-code-r646/pform/pfio'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/user1/openpfgw-code-r646/pform/pfio'
make -C pform/pfgw
make[1]: Entering directory '/home/user1/openpfgw-code-r646/pform/pfgw'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/user1/openpfgw-code-r646/pform/pfgw'
g++ -O3 -m64 -DX86_64 -D_64BIT  -I../../packages/gmp/64bit -I../../pfconfig/headers    \
    pform/pfgw/.libs/pfgw_main.a  pform/pfio/.libs/pfio.a pform/pfoo/.libs/pfoo.a pform/pfgwlib/.libs/pfgwlib.a \
    pform/pfmath/.libs/pfmath.a pform/pflib/.libs/pflib.a \
    packages/gmp/64bit/libgmp.a packages/gwnum/64bit/gwnum.a  -Wl,-no_pie -lpthread -lstdc++ -o pfgw64
g++: error: packages/gmp/64bit/libgmp.a: No such file or directory
g++: error: packages/gwnum/64bit/gwnum.a: No such file or directory
makefile:8: recipe for target 'pfgw64' failed
make: *** [pfgw64] Error 1
lukerichards is offline   Reply With Quote
Old 2019-03-18, 21:42   #22
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

23×5×229 Posts
Default

Quote:
Originally Posted by lukerichards View Post
When I try the same input, I get:

Code:
Illegal instruction (core dumped)
Any idea what I'm doing wrong?
You will need to recompile the binary. Both static and dynamic pfgw binaries core-dump on some CPUs (but not on most others), because of the way they are compiled.

They work for most people though, so the number of complains was not enough for them to reach the maintainer.

So roll up your sleeves and build the binary from the source.
Quote:
Originally Posted by lukerichards View Post
Code:
g++: error: packages/gmp/64bit/libgmp.a: No such file or directory
g++: error: packages/gwnum/64bit/gwnum.a: No such file or directory
makefile:8: recipe for target 'pfgw64' failed
make: *** [pfgw64] Error 1
Build libgmp and gwnum, too, of course. Do you expect them to show up magically in that path?
Batalov is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get a bigger number to test ? mersenne1588 Information & Answers 6 2019-02-12 22:13
Shift Number in LL Test Kalli Hofmann Information & Answers 1 2018-01-08 12:24
how can I test a number in any prime95? Welton Information & Answers 7 2016-07-29 12:07
sequential number test Bundu Programming 20 2012-02-19 18:09
ecm_factor returning the same number as input Capone GMP-ECM 17 2007-06-17 09:19

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

Sat Nov 28 20:31:04 UTC 2020 up 79 days, 17:42, 3 users, load averages: 1.64, 1.42, 1.46

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.