mersenneforum.org  

Go Back   mersenneforum.org > Factoring Projects > Msieve

Reply
 
Thread Tools
Old 2020-09-26, 15:42   #1
Dylan14
 
Dylan14's Avatar
 
"Dylan"
Mar 2017

10000100012 Posts
Default Outdated msieve build in Arch AUR

So, I decided to take on a number to post-process for NFS@Home (namely, 8p3_870M), and I wanted to try the number out on an Arch Linux install. I saw in the AUR that there is an msieve package which can be installed as follows:

Code:
pikaur -S msieve
When I do so I do get version 1.53 of msieve (with unknown svn revision). Attempting to invoke it to run the first step of post-processing, however, doesn't work:

Code:
dylan@archlinux ~/msieve> msieve -v -nc1 "target_density=130"


Msieve v. 1.53 (SVN unknown)
Sat Sep 26 11:15:25 2020
random seeds: 2144e63a 719f4877
factoring 733642094337118721890779246550290147722658386639218063587204206764470327417566648411845811752198916045259041827753210479755559362102142022242029295265946960758537457508756105435542625633559321 (192 digits)
searching for 15-digit factors
commencing number field sieve (192-digit input)
R0: -154742504910741164739755411
R1: 126214320739011526656
A0: 16
A1: 192
A2: 0
A3: -648
A4: 144
A5: 648
A6: -270
A7: -162
A8: 81
skew 0.82, size 2.770e-06, alpha 1.432, combined = 9.417e-14 rroots = 8

commencing relation filtering
setting target matrix density to 130.0
estimated available RAM is 32067.9 MB
commencing duplicate removal, pass 1
fish: “msieve -v -nc1 "target_density=…” terminated by signal SIGSEGV (Address boundary error)
At first, I thought it was a problem invoking it from the fish shell, so I tried the same thing in bash, to no avail:
Code:
dylan@archlinux ~/msieve [SIGSEGV]> bash
[dylan@archlinux msieve]$ msieve -v -nc1 "target_density=130"


Msieve v. 1.53 (SVN unknown)
Sat Sep 26 11:15:45 2020
random seeds: 17e07277 26219fe0
factoring 733642094337118721890779246550290147722658386639218063587204206764470327417566648411845811752198916045259041827753210479755559362102142022242029295265946960758537457508756105435542625633559321 (192 digits)
searching for 15-digit factors
commencing number field sieve (192-digit input)
R0: -154742504910741164739755411
R1: 126214320739011526656
A0: 16
A1: 192
A2: 0
A3: -648
A4: 144
A5: 648
A6: -270
A7: -162
A8: 81
skew 0.82, size 2.770e-06, alpha 1.432, combined = 9.417e-14 rroots = 8

commencing relation filtering
setting target matrix density to 130.0
estimated available RAM is 32067.9 MB
commencing duplicate removal, pass 1
Segmentation fault (core dumped)
I tried building it again, to no avail. Eventually I solved it by compiling the latest version of msieve from subversion, which works perfectly.
Investigating further sees that the package was last updated in 2017, which is before gmp 6.2 came out, which is installed on my machine. And we know that mixing gmp versions can cause issues (see, for example, EdH's thread on installing yafu on Ubuntu starting around post 48). So I think someone should develop a new PKGBUILD for msieve, or contact the maintainer of the package to update to the latest subversion revision of the package.
Dylan14 is offline   Reply With Quote
Old 2020-09-26, 22:53   #2
fivemack
(loop (#_fork))
 
fivemack's Avatar
 
Feb 2006
Cambridge, England

6,323 Posts
Default

I had a similar problem on ubuntu-20.04 (again, this is the update which introduced gmp-6.2); I had to remove the lines

Code:
#if GMP_LIMB_BITS == 64
        dest->_mp_d[0] = src;
        dest->_mp_size = (src ? 1 : 0);
#else
from include/gmp_xface.h to get something which worked, it sounds as if the internal representation of gmp objects may have changed
fivemack is offline   Reply With Quote
Old 2020-09-27, 18:49   #3
ccorn
 
ccorn's Avatar
 
Apr 2010

22·37 Posts
Default

Quote:
Originally Posted by Dylan14 View Post
So I think someone should develop a new PKGBUILD for msieve, or contact the maintainer of the package to update to the latest subversion revision of the package.

I have proposed a diff to the PKGBUILD on its AUR page.
ccorn is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error compiling 29.7b1 on Arch Linux graysky Software 4 2019-04-13 10:16
Can't Build Msieve on fedora Gokuruto Msieve 2 2018-05-21 15:23
Error compiling version 29.1 on Arch Linux graysky Software 5 2017-03-22 18:20
Might someone recall which revision of msieve still worked with CUDA 6.5 and arch 1.2? EdH Msieve 4 2016-11-26 20:44
I'm trying to speedup AES MSIEVE factoring using CUDA build but... loopdemack Msieve 11 2016-01-18 13:44

All times are UTC. The time now is 23:40.

Sun Nov 29 23:40:32 UTC 2020 up 80 days, 20:51, 3 users, load averages: 1.74, 1.54, 1.39

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.