Package Details: cado-nfs-git 20210429.6df3f65c8-1

Git Clone URL: (read-only, click to copy)
Package Base: cado-nfs-git
Description: Implementation of the Number Field Sieve (NFS) algorithm for factoring integers
Upstream URL:
Licenses: LGPL2
Conflicts: cado-nfs
Provides: cado-nfs
Submitter: jdetrey
Maintainer: AquilaIrreale
Last Packager: AquilaIrreale
Votes: 2
Popularity: 0.28
First Submitted: 2015-12-07 12:57
Last Updated: 2021-05-03 13:43

Dependencies (12)

Required by (0)

Sources (1)

Latest Comments

AquilaIrreale commented on 2021-05-03 13:51

Hello, I took charge of maintaining this package for the time being. It should now be in a usable state once again.

@ccorn thank you for contributing your patch!

Have a nice day

-- AquilaIrreale

ccorn commented on 2021-04-24 00:49

I have made some contemporary updates in my checkout.

  • New source URL
  • Use for configuration as instructed
  • Configure with curl, hwloc, gmp-ecm
  • Remove 32-bit bounds
  • Adjust *depends
  • Install license
@@ -7,11 +7,16 @@ pkgdesc="Implementation of the Number Field Sieve (NFS) algorithm for factoring
 arch=('i686' 'x86_64')
-depends=('gmp' 'python' 'sqlite')
-makedepends=('git' 'cmake' 'inetutils')
+# We configure with optional curl, hwloc, gmp-ecm.
+# Configuring with hwloc makes binaries in linalg/bwc depend on it.
+depends=('gmp' 'python' 'sqlite' 'hwloc')
+makedepends=('git' 'cmake' 'inetutils' 'curl' 'gmp-ecm')
+optdepends=('curl: for'
+            'gmp-ecm: for JL DLP polynomial selection'
+            'perl: for')

 pkgver() {
@@ -21,12 +26,21 @@ pkgver() {

 build() {
   cd "$_pkg"
-  make PREFIX="/usr"
+  cat <<EOF >
+# Remove 32-bit barriers to big factorizations
+  make

 package() {
   cd "$_pkg"
-  make PREFIX="/usr" DESTDIR="$pkgdir" install
+  make DESTDIR="$pkgdir" install
+  install -Dm644 COPYING "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"

 # vim:set ts=2 sw=2 et:

hotaru commented on 2020-04-21 11:48

package no longer builds. looks like the git repo has been moved to

jdetrey commented on 2016-08-22 13:19


Thanks for noticing this! This was fixed by upstream commit c88120d (dated 2016-08-10).
The package now builds without a hitch.


enteenteente commented on 2016-06-21 17:01

when changing build() in PKGBUILD I can at least build the software:

build() {
cd "$_pkg"
# remove diagnostic errors before compilation
sed -i '/#pragma GCC diagnostic error/d' cado.h
make PREFIX="/usr" -j

enteenteente commented on 2016-06-21 16:44

when I try to build this I get the error in [1].