You are not logged in.

#1 2023-09-03 16:18:07

atom_nucleus
Member
Registered: 2023-09-03
Posts: 6

[SOLVED] Macaulay2 Installation Error

Hi!

I'm getting this error message while trying to install Macaulay2 from AUR:

 
[\u@\h \W]$ makepkg -cis
==> Making package: macaulay2 19030.995c6fd8c-1 (<DATE TIME>)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Cloning M2 git repo...
Cloning into bare repository '/home/USERNAME/builds/macaulay2/M2'...
remote: Enumerating objects: 235118, done.
remote: Counting objects: 100% (3015/3015), done.
remote: Compressing objects: 100% (1272/1272), done.
remote: Total 235118 (delta 2040), reused 2611 (delta 1733), pack-reused 232103
Receiving objects: 100% (235118/235118), 82.58 MiB | 1.77 MiB/s, done.
Resolving deltas: 100% (173933/173933), done.
==> Validating source files with sha256sums...
    M2 ... Skipped
==> Extracting sources...
  -> Creating working copy of M2 git repo...
Cloning into 'M2'...
done.
==> Starting pkgver()...
==> Updated version: macaulay2 24195.379c96340-1
==> Starting build()...
GNU make version okay
GNU autoconf version okay
rm -rf autom4te.cache
autoconf
autoheader
touch "include/M2/config.h.in.stamp"
GNU automake version okay
GNU libtool version (2.4.7) okay
cd .. && git submodule update --init M2/Macaulay2/editors/emacs
Submodule 'M2/Macaulay2/editors/emacs' (https://github.com/Macaulay2/M2-emacs.git) registered for path 'M2/Macaulay2/editors/emacs'
Cloning into '/home/USERNAME/builds/macaulay2/src/M2/M2/Macaulay2/editors/emacs'...
Submodule path 'M2/Macaulay2/editors/emacs': checked out '2bac85883e2edd479f606ef8eedbbf2869770200'
configure: WARNING: unrecognized options: --enable-frobby, --enable-pari, --disable-gfan
configure: configuring Macaulay2 version 1.22
relevant environment variable values, if any:
   CFLAGS = -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection
   CXXFLAGS = -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS
   LDFLAGS = -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
   LIBS = -lcblas
configure: operating system information:
   OS    = Linux
   ISSUE = ArchLinux
checking for gmake... no
checking for make... make
checking for pkg-config... pkg-config
checking for etags... etags
checking for lintian... no
checking for otool... no
checking for rpmlint... no
checking for gtar... no
checking for gnutar... no
checking for tar... tar
checking for gfind... no
checking for find... find
checking for objdump... objdump
checking for objcopy... objcopy
checking for ldd... ldd
checking for git... git
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for ld... ld
checking for strip... strip
checking whether strip accepts the remove-section option... yes
checking whether make is GNU make... yes
checking whether GNU make is recent enough... yes
checking whether tar is GNU tar... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking for bison... bison -y
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking for gcc version... 13.2.1
checking whether exceptions are caught... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for sys/time.h... yes
checking size of int *... 8
checking size of long... 8
checking for sys/ioctl.h... yes
checking for termios.h... yes
checking for sys/mman.h... yes
checking for sys/socket.h... yes
checking for netdb.h... yes
checking for netinet/in.h... yes
checking for arpa/inet.h... yes
checking for sys/time.h... (cached) yes
checking for time.h... yes
checking for sys/wait.h... yes
checking for sys/resource.h... yes
checking for io.h... no
checking for linux/personality.h... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for elf.h... yes
checking for execinfo.h... yes
checking for stdlib.h... (cached) yes
checking for syscall.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for unistd.h... (cached) yes
checking for math.h... yes
checking for pthread.h... yes
checking for assert.h... yes
checking for alloca.h... yes
checking for malloc.h... yes
checking for dlfcn.h... yes
checking for winsock2.h... no
checking for library containing clock_gettime... none required
checking for library containing socket... none required
checking for library containing hstrerror... none required
checking for library containing dlopen... none required
checking for library containing gethostbyname... none required
checking for tbb/tbb.h... no
configure: error: tbb include file (tbb.h) not found
==> ERROR: A failure occurred in build().
    Aborting...
[\u@\h \W]$ 

How can I fix this?

Thanks in advance.

Last edited by atom_nucleus (2023-12-30 06:30:07)

Offline

#2 2023-09-03 17:08:41

loqs
Member
Registered: 2014-03-06
Posts: 17,425

Re: [SOLVED] Macaulay2 Installation Error

Please post the full output from makepkg and the contents of config.log the failed configure call produced.

Offline

#3 2023-09-03 17:58:34

atom_nucleus
Member
Registered: 2023-09-03
Posts: 6

Re: [SOLVED] Macaulay2 Installation Error

loqs wrote:

Please post the full output from makepkg and the contents of config.log the failed configure call produced.

I added the full output from makepkg. I'm sorry to ask this, but could you please tell me where to find config.log? I just installed arch linux a few days ago for the first time and I'm not quite familiar with everything.

Offline

#4 2023-09-03 18:16:27

loqs
Member
Registered: 2014-03-06
Posts: 17,425

Re: [SOLVED] Macaulay2 Installation Error

config.log is in src/M2/M2 however the issue is the PKGBUILD does not include onetbb in its depends array on line 11.

Offline

#5 2023-09-03 18:32:02

atom_nucleus
Member
Registered: 2023-09-03
Posts: 6

Re: [SOLVED] Macaulay2 Installation Error

loqs wrote:

config.log is in src/M2/M2 however the issue is the PKGBUILD does not include onetbb in its depends array on line 11.

So do I have to install onetbb manually? I'm seeing multiple packages like onetbb-git, onetbb-2019, lib32-onetbb on AUR. Which of these is the right one? I'm sorry if this is a silly question. I just don't want to install anything random.

Offline

#6 2023-09-03 20:10:26

loqs
Member
Registered: 2014-03-06
Posts: 17,425

Re: [SOLVED] Macaulay2 Installation Error

https://archlinux.org/packages/extra/x86_64/onetbb/ however there is another issue the build fails due to https://github.com/Macaulay2/M2/issues/2849
I was able to get the build further with the following changes:

diff --git a/PKGBUILD b/PKGBUILD
index fa24e89..b942e42 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,13 +2,13 @@
 # Contributor: Rémy Oudompheng <remy@archlinux.org>
 
 pkgname=macaulay2
-pkgver=19030.995c6fd8c
+pkgver=24195.379c96340
 pkgrel=1
 pkgdesc="Software system for algebraic geometry and commutative algebra"
 arch=('i686' 'x86_64')
 url="http://www.math.uiuc.edu/Macaulay2/"
 license=('GPL')
-depends=('gcc-fortran' 'readline' 'gdbm' 'gc' 'mpir' 'mpfr' 'mpsolve-git' 'boost' 'lapack' 'cblas' 'eigen' 'ntl' 'scscp' 'singular-factory' 'frobby' 'flint' 'cddlib' 'glpk' 'gfan' 'gtest' 'givaro')
+depends=('gcc-fortran' 'readline' 'gdbm' 'gc' 'mpir' 'mpfr' 'mpsolve-git' 'boost' 'lapack' 'cblas' 'eigen' 'ntl' 'scscp' 'singular-factory' 'frobby' 'flint' 'cddlib' 'glpk' 'gfan' 'gtest' 'givaro' 'onetbb')
 makedepends=('git' 'unzip' 'emacs' 'texinfo')
 source=('git+https://github.com/Macaulay2/M2')
 
@@ -19,6 +19,8 @@ pkgver() {
 
 build() {
   cd "$srcdir"/M2
+  # Bump 4ti2 version to 1.6.10 (autotools) https://github.com/Macaulay2/M2/issues/2849
+  git cherry-pick -n b7d94cd6a903e4e89569bf7e37800e968f31593e
   cd M2
 
   # Some provided examples will make M2 crash if the -q option is used.

It then failed with:

make -C bin all 
make[2]: Entering directory '/build/macaulay2/src/M2/M2/Macaulay2/bin'
/usr/bin/install -c -d "/build/macaulay2/src/M2/M2/usr-dist/x86_64-Linux-ArchLinux/bin"
compiling timestamp.cpp
g++ -std=gnu++14 -march=x86-64 -mtune=generic -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/macaulay2/src=/usr/src/debug/macaulay2 -g3 -O2  -Wno-mismatched-tags -I/build/macaulay2/src/M2/M2/include -I/build/macaulay2/src/M2/M2/include -I/build/macaulay2/src/M2/M2/usr-host/include -isystem /usr/include/libxml2    -DSING_NDEBUG -DOM_NDEBUG   -DNDEBUG  -I/usr/include/cddlib -I/usr/include/eigen3  -I/usr/include -DBOOST_STACKTRACE_LINK  -c ./timestamp.cpp -o timestamp.o
time g++ -Wl,-z,noexecstack -L/build/macaulay2/src/M2/M2/usr-host/lib -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -g3 -L/usr/lib64 timestamp.o ../system/m2file.o ../system/supervisor.o ../system/tests.o ../e/error.o ../e/table.o ../e/exptable.o ../e/complex.o ../e/myalloc.o ../e/matrix-ncbasis.o ../e/M2FreeAlgebraQuotient.o ../e/M2FreeAlgebra.o ../e/NCAlgebras/Word.o ../e/NCAlgebras/NCReduction.o ../e/NCAlgebras/FreeAlgebraQuotient.o ../e/NCAlgebras/FreeAlgebra.o ../e/NCAlgebras/FreeMonoid.o ../e/NCAlgebras/WordTable.o ../e/NCAlgebras/SuffixTree.o ../e/NCAlgebras/NCGroebner.o ../e/NCAlgebras/NCF4.o ../e/NCAlgebras/OverlapTable.o ../e/NCResolutions/nc-res-computation.o ../e/Polynomial.o ../e/monomial-collection.o ../e/eigen.o ../e/monomial-sets.o ../e/mutablecomplex.o ../e/localring.o ../e/bibasis/bibasis.o ../e/bibasis/allocator.o ../e/bibasis/launcher.o ../e/bibasis/monom.o ../e/bibasis/monomDL.o ../e/bibasis/monomDRL.o ../e/bibasis/monomLex.o ../e/bibasis/settings-manager.o ../e/schreyer-resolution/res-monomial-sorter.o ../e/schreyer-resolution/res-f4-monlookup.o ../e/schreyer-resolution/res-moninfo-dense.o ../e/schreyer-resolution/res-moninfo-sparse.o ../e/schreyer-resolution/res-moninfo.o ../e/schreyer-resolution/res-poly-ring.o ../e/schreyer-resolution/res-f4-m2-interface.o ../e/schreyer-resolution/res-schreyer-frame.o ../e/schreyer-resolution/res-f4.o ../e/schreyer-resolution/res-f4-computation.o ../e/schreyer-resolution/res-gausser.o ../e/schreyer-resolution/res-gausser-ZZp.o ../e/schreyer-resolution/res-gausser-QQ.o ../e/schreyer-resolution/res-gausser-QQ-hybrid.o ../e/f4/f4.o ../e/f4/f4-mem.o ../e/f4/f4-monlookup.o ../e/f4/f4-computation.o ../e/f4/f4-spairs.o ../e/f4/f4-m2-interface.o ../e/f4/hilb-fcn.o ../e/f4/monhashtable.o ../e/monsort.o ../e/f4/moninfo.o ../e/f4/gausser.o ../e/betti.o ../e/GF.o ../e/ZZ.o ../e/ZZp.o ../e/reader.o ../e/matrix-stream.o ../e/cra.o ../e/aring-zz-gmp.o ../e/aring-qq-gmp.o ../e/aring-zz-flint.o ../e/aring-qq-flint.o ../e/aring-zzp-flint.o ../e/aring-RRi.o ../e/aring-RR.o ../e/aring-CC.o ../e/aring-RRR.o ../e/aring-CCC.o ../e/aring-tower.o ../e/aring-gf-flint-big.o ../e/aring-gf-flint.o ../e/aring-m2-gf.o ../e/aring-zzp.o ../e/aring-zzp-ffpack.o ../e/aring.o ../e/schurSn.o ../e/schur2.o ../e/dpoly.o ../e/tower.o ../e/interreduce.o ../e/finalize.o ../e/NAG.o ../e/SLP.o ../e/overflow.o ../e/memory-status.o ../e/imonorder.o ../e/sagbi.o ../e/monideal-minprimes.o ../e/lapack.o ../e/LLL.o ../e/fractionfreeLU.o ../e/ntl-interface.o ../e/fplll-interface.o ../e/mat.o ../e/dmat.o ../e/coeffrings.o ../e/Eschreyer.o ../e/gbweight.o ../e/qring.o ../e/polyquotient.o ../e/poly.o ../e/debug.o ../e/comp.o ../e/comp-gb.o ../e/comp-gb-proxy.o ../e/comp-gb-declared.o ../e/comp-res.o ../e/res-a0.o ../e/res-a0-poly.o ../e/res-a1.o ../e/res-a1-poly.o ../e/res-a2.o ../e/reducedgb.o ../e/reducedgb-field.o ../e/reducedgb-marked.o ../e/reducedgb-field-local.o ../e/reducedgb-ZZ.o ../e/montable.o ../e/montableZZ.o ../e/schorder.o ../e/assprime.o ../e/buffer.o ../e/comb.o ../e/det.o ../e/frac.o ../e/franzi-brp.o ../e/freemod.o ../e/gb-default.o ../e/gb-homog2.o ../e/gb-sugarless.o ../e/gb-toric.o ../e/gb-walk.o ../e/gbring.o ../e/gauss.o ../e/hermite.o ../e/hilb.o ../e/int-bag.o ../e/matrix.o ../e/matrix-con.o ../e/mem.o ../e/monideal.o ../e/monoid.o ../e/monomial.o ../e/polyring.o ../e/pfaff.o ../e/relem.o ../e/ring.o ../e/ringelem.o ../e/ringmap.o ../e/schur.o ../e/skew.o ../e/skewpoly.o ../e/solvable.o ../e/spair.o ../e/text-io.o ../e/ExponentList.o ../e/weylalg.o ../e/interrupted.o ../e/ntl-internal.o ../e/ntl-debugio.o ../e/matrix-kbasis.o ../e/matrix-symm.o ../e/matrix-sort.o ../e/ring-vecs.o ../e/res-a2-gb.o ../e/engine.o ../e/interface/aring.o ../e/interface/cra.o ../e/interface/factory.o ../e/interface/flint.o ../e/interface/freemodule.o ../e/interface/groebner.o ../e/interface/matrix.o ../e/interface/monoid.o ../e/interface/monomial-ideal.o ../e/interface/monomial-ordering.o ../e/interface/mutable-matrix.o ../e/interface/polyroots.o ../e/interface/random.o ../e/interface/ring.o ../e/interface/ringelement.o ../e/interface/ringmap.o ../e/franzi-gb.o ../e/franzi-interface.o ../d/startup.o ../d/boost-regex.o ../d/main.o ../d/gmp_aux.o ../d/M2types.o ../d/scclib.o ../d/M2lib.o ../d/M2mem.o ../d/gdbm_interface.o ../d/memdebug.o ../d/xml-c.o  ../d/arithmetic.o  ../d/atomic.o  ../d/M2.o  ../d/system.o  ../d/strings.o  ../d/varstrin.o  ../d/strings1.o  ../d/errio.o  ../d/vararray.o  ../d/ctype.o  ../d/nets.o  ../d/varnets.o  ../d/interrupts.o  ../d/pthread0.o  ../d/stdiop0.o  ../d/gmp.o  ../d/engine.o  ../d/xml.o  ../d/stdio0.o  ../d/parse.o  ../d/expr.o  ../d/stdio.o  ../d/stdiop.o  ../d/err.o  ../d/gmp1.o  ../d/tokens.o  ../d/getline.o  ../d/lex.o  ../d/parser.o  ../d/binding.o  ../d/basic.o  ../d/convertr.o  ../d/common.o  ../d/util.o  ../d/struct.o  ../d/classes.o  ../d/buckets.o  ../d/equality.o  ../d/hashtables.o  ../d/regex.o  ../d/evaluate.o  ../d/sets.o  ../d/version.o  ../d/mysqldummy.o  ../d/pthread.o  ../d/actors.o  ../d/actors2.o  ../d/actors3.o  ../d/actors4.o  ../d/xmlactors.o  ../d/actors5.o  ../d/actors6.o  ../d/threads.o  ../d/interface.o  ../d/interface2.o  ../d/texmacs.o  ../d/boostmath.o  ../d/ffi.o  ../d/interp.o -lmathicgb -lmathic -lmemtailor -lmpfi -lgc -lpthread   -llapack  -lblas  -lffi -lxml2 -llzma -lz  -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1 -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../.. -ltbb -lcblas -lgfortran -lm -lquadmath -llapack  -lblas  -lfactory -lflint -lmpfr -lntl -lgmp -lomalloc -lsingular_resources  -lquadmath -lreadline -lcurses -lfrobby -lntl -lflint -lcdd -lgivaro -lgmpxx -lgmp  -lglpk -lmps -lmpfr -lgmpxx -lgmp -lgdbm -ltbb -lcblas -lboost_stacktrace_addr2line -lboost_regex  -lm -lc -o "/build/macaulay2/src/M2/M2/usr-dist/x86_64-Linux-ArchLinux/bin/M2-binary".tmp
/usr/bin/ld: ../d/version.o: warning: relocation against `_ZN9constants7versionE' in read-only section `.text.startup'
/usr/bin/ld: ../e/interface/monomial-ideal.o: in function `rawAlexanderDual':
/usr/src/debug/macaulay2/M2/M2/Macaulay2/e/interface/monomial-ideal.cpp:327:(.text+0x68d): undefined reference to `Frobby::Ideal::Ideal(unsigned long)'
/usr/bin/ld: ../e/interface/monomial-ideal.o: in function `FrobbyAlexanderDual':
/usr/src/debug/macaulay2/M2/M2/Macaulay2/e/interface/monomial-ideal.cpp:336:(.text+0x71b): undefined reference to `Frobby::Ideal::addExponent(int)'
/usr/bin/ld: /usr/src/debug/macaulay2/M2/M2/Macaulay2/e/interface/monomial-ideal.cpp:343:(.text+0x7d3): undefined reference to `Frobby::alexanderDual(Frobby::Ideal const&, __mpz_struct const (*) [1], Frobby::IdealConsumer&)'
/usr/bin/ld: ../e/interface/monomial-ideal.o: in function `MyIdealConsumer::~MyIdealConsumer()':
/usr/src/debug/macaulay2/M2/M2/Macaulay2/e/interface/monomial-ideal.cpp:300:(.text+0x803): undefined reference to `Frobby::IdealConsumer::~IdealConsumer()'
/usr/bin/ld: ../e/interface/monomial-ideal.o: in function `FrobbyAlexanderDual':
/usr/src/debug/macaulay2/M2/M2/Macaulay2/e/interface/monomial-ideal.cpp:347:(.text+0x80c): undefined reference to `Frobby::Ideal::~Ideal()'
/usr/bin/ld: ../e/interface/monomial-ideal.o: in function `MyIdealConsumer::~MyIdealConsumer()':
/usr/src/debug/macaulay2/M2/M2/Macaulay2/e/interface/monomial-ideal.cpp:300:(.text._ZN15MyIdealConsumerD2Ev[_ZN15MyIdealConsumerD5Ev]+0x2a): undefined reference to `Frobby::IdealConsumer::~IdealConsumer()'
/usr/bin/ld: ../e/interface/monomial-ideal.o: in function `MyIdealConsumer::~MyIdealConsumer()':
/usr/src/debug/macaulay2/M2/M2/Macaulay2/e/interface/monomial-ideal.cpp:300:(.text._ZN15MyIdealConsumerD0Ev[_ZN15MyIdealConsumerD5Ev]+0x29): undefined reference to `Frobby::IdealConsumer::~IdealConsumer()'
/usr/bin/ld: ../e/interface/monomial-ideal.o: in function `MyIdealConsumer::MyIdealConsumer(PolynomialRing const*, int)':
/usr/src/debug/macaulay2/M2/M2/Macaulay2/e/interface/monomial-ideal.cpp:295:(.text.unlikely+0x534): undefined reference to `Frobby::IdealConsumer::~IdealConsumer()'
/usr/bin/ld: ../e/interface/monomial-ideal.o: in function `FrobbyAlexanderDual':
/usr/src/debug/macaulay2/M2/M2/Macaulay2/e/interface/monomial-ideal.cpp:347:(.text.unlikely+0x53d): undefined reference to `Frobby::Ideal::~Ideal()'
/usr/bin/ld: ../e/interface/monomial-ideal.o:(.data.rel.ro._ZTI15MyIdealConsumer[_ZTI15MyIdealConsumer]+0x18): undefined reference to `typeinfo for Frobby::IdealConsumer'
/usr/bin/ld: ../e/interface/monomial-ideal.o:(.data.rel.ro._ZTV15MyIdealConsumer[_ZTV15MyIdealConsumer]+0x20): undefined reference to `Frobby::IdealConsumer::idealBegin(unsigned long)'
/usr/bin/ld: ../e/interface/monomial-ideal.o:(.data.rel.ro._ZTV15MyIdealConsumer[_ZTV15MyIdealConsumer]+0x30): undefined reference to `Frobby::IdealConsumer::idealEnd()'
/usr/bin/ld: ../d/version.o: in function `_GLOBAL__sub_I__Z10M2_versionv':
/usr/src/debug/macaulay2/M2/M2/Macaulay2/d/version-tmp.cc:43:(.text.startup+0x7): undefined reference to `constants::version'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status

real	0m2.659s
user	0m1.809s
sys	0m0.850s
make[2]: *** [Makefile:133: /build/macaulay2/src/M2/M2/usr-dist/x86_64-Linux-ArchLinux/bin/M2-binary] Error 1
make[2]: Leaving directory '/build/macaulay2/src/M2/M2/Macaulay2/bin'
make[1]: *** [Makefile:15: all-in-bin] Error 2
make[1]: Leaving directory '/build/macaulay2/src/M2/M2/Macaulay2'
make: *** [GNUmakefile:251: all-in-Macaulay2] Error 2
make: Leaving directory '/build/macaulay2/src/M2/M2'

Offline

#7 2023-09-03 20:23:11

atom_nucleus
Member
Registered: 2023-09-03
Posts: 6

Re: [SOLVED] Macaulay2 Installation Error

loqs wrote:

https://archlinux.org/packages/extra/x86_64/onetbb/ however there is another issue the build fails due to https://github.com/Macaulay2/M2/issues/2849
I was able to get the build further with the following changes:

diff --git a/PKGBUILD b/PKGBUILD
index fa24e89..b942e42 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,13 +2,13 @@
 # Contributor: Rémy Oudompheng <remy@archlinux.org>
 
 pkgname=macaulay2
-pkgver=19030.995c6fd8c
+pkgver=24195.379c96340
 pkgrel=1
 pkgdesc="Software system for algebraic geometry and commutative algebra"
 arch=('i686' 'x86_64')
 url="http://www.math.uiuc.edu/Macaulay2/"
 license=('GPL')
-depends=('gcc-fortran' 'readline' 'gdbm' 'gc' 'mpir' 'mpfr' 'mpsolve-git' 'boost' 'lapack' 'cblas' 'eigen' 'ntl' 'scscp' 'singular-factory' 'frobby' 'flint' 'cddlib' 'glpk' 'gfan' 'gtest' 'givaro')
+depends=('gcc-fortran' 'readline' 'gdbm' 'gc' 'mpir' 'mpfr' 'mpsolve-git' 'boost' 'lapack' 'cblas' 'eigen' 'ntl' 'scscp' 'singular-factory' 'frobby' 'flint' 'cddlib' 'glpk' 'gfan' 'gtest' 'givaro' 'onetbb')
 makedepends=('git' 'unzip' 'emacs' 'texinfo')
 source=('git+https://github.com/Macaulay2/M2')
 
@@ -19,6 +19,8 @@ pkgver() {
 
 build() {
   cd "$srcdir"/M2
+  # Bump 4ti2 version to 1.6.10 (autotools) https://github.com/Macaulay2/M2/issues/2849
+  git cherry-pick -n b7d94cd6a903e4e89569bf7e37800e968f31593e
   cd M2
 
   # Some provided examples will make M2 crash if the -q option is used.

It then failed with:

make -C bin all 
make[2]: Entering directory '/build/macaulay2/src/M2/M2/Macaulay2/bin'
/usr/bin/install -c -d "/build/macaulay2/src/M2/M2/usr-dist/x86_64-Linux-ArchLinux/bin"
compiling timestamp.cpp
g++ -std=gnu++14 -march=x86-64 -mtune=generic -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/build/macaulay2/src=/usr/src/debug/macaulay2 -g3 -O2  -Wno-mismatched-tags -I/build/macaulay2/src/M2/M2/include -I/build/macaulay2/src/M2/M2/include -I/build/macaulay2/src/M2/M2/usr-host/include -isystem /usr/include/libxml2    -DSING_NDEBUG -DOM_NDEBUG   -DNDEBUG  -I/usr/include/cddlib -I/usr/include/eigen3  -I/usr/include -DBOOST_STACKTRACE_LINK  -c ./timestamp.cpp -o timestamp.o
time g++ -Wl,-z,noexecstack -L/build/macaulay2/src/M2/M2/usr-host/lib -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -g3 -L/usr/lib64 timestamp.o ../system/m2file.o ../system/supervisor.o ../system/tests.o ../e/error.o ../e/table.o ../e/exptable.o ../e/complex.o ../e/myalloc.o ../e/matrix-ncbasis.o ../e/M2FreeAlgebraQuotient.o ../e/M2FreeAlgebra.o ../e/NCAlgebras/Word.o ../e/NCAlgebras/NCReduction.o ../e/NCAlgebras/FreeAlgebraQuotient.o ../e/NCAlgebras/FreeAlgebra.o ../e/NCAlgebras/FreeMonoid.o ../e/NCAlgebras/WordTable.o ../e/NCAlgebras/SuffixTree.o ../e/NCAlgebras/NCGroebner.o ../e/NCAlgebras/NCF4.o ../e/NCAlgebras/OverlapTable.o ../e/NCResolutions/nc-res-computation.o ../e/Polynomial.o ../e/monomial-collection.o ../e/eigen.o ../e/monomial-sets.o ../e/mutablecomplex.o ../e/localring.o ../e/bibasis/bibasis.o ../e/bibasis/allocator.o ../e/bibasis/launcher.o ../e/bibasis/monom.o ../e/bibasis/monomDL.o ../e/bibasis/monomDRL.o ../e/bibasis/monomLex.o ../e/bibasis/settings-manager.o ../e/schreyer-resolution/res-monomial-sorter.o ../e/schreyer-resolution/res-f4-monlookup.o ../e/schreyer-resolution/res-moninfo-dense.o ../e/schreyer-resolution/res-moninfo-sparse.o ../e/schreyer-resolution/res-moninfo.o ../e/schreyer-resolution/res-poly-ring.o ../e/schreyer-resolution/res-f4-m2-interface.o ../e/schreyer-resolution/res-schreyer-frame.o ../e/schreyer-resolution/res-f4.o ../e/schreyer-resolution/res-f4-computation.o ../e/schreyer-resolution/res-gausser.o ../e/schreyer-resolution/res-gausser-ZZp.o ../e/schreyer-resolution/res-gausser-QQ.o ../e/schreyer-resolution/res-gausser-QQ-hybrid.o ../e/f4/f4.o ../e/f4/f4-mem.o ../e/f4/f4-monlookup.o ../e/f4/f4-computation.o ../e/f4/f4-spairs.o ../e/f4/f4-m2-interface.o ../e/f4/hilb-fcn.o ../e/f4/monhashtable.o ../e/monsort.o ../e/f4/moninfo.o ../e/f4/gausser.o ../e/betti.o ../e/GF.o ../e/ZZ.o ../e/ZZp.o ../e/reader.o ../e/matrix-stream.o ../e/cra.o ../e/aring-zz-gmp.o ../e/aring-qq-gmp.o ../e/aring-zz-flint.o ../e/aring-qq-flint.o ../e/aring-zzp-flint.o ../e/aring-RRi.o ../e/aring-RR.o ../e/aring-CC.o ../e/aring-RRR.o ../e/aring-CCC.o ../e/aring-tower.o ../e/aring-gf-flint-big.o ../e/aring-gf-flint.o ../e/aring-m2-gf.o ../e/aring-zzp.o ../e/aring-zzp-ffpack.o ../e/aring.o ../e/schurSn.o ../e/schur2.o ../e/dpoly.o ../e/tower.o ../e/interreduce.o ../e/finalize.o ../e/NAG.o ../e/SLP.o ../e/overflow.o ../e/memory-status.o ../e/imonorder.o ../e/sagbi.o ../e/monideal-minprimes.o ../e/lapack.o ../e/LLL.o ../e/fractionfreeLU.o ../e/ntl-interface.o ../e/fplll-interface.o ../e/mat.o ../e/dmat.o ../e/coeffrings.o ../e/Eschreyer.o ../e/gbweight.o ../e/qring.o ../e/polyquotient.o ../e/poly.o ../e/debug.o ../e/comp.o ../e/comp-gb.o ../e/comp-gb-proxy.o ../e/comp-gb-declared.o ../e/comp-res.o ../e/res-a0.o ../e/res-a0-poly.o ../e/res-a1.o ../e/res-a1-poly.o ../e/res-a2.o ../e/reducedgb.o ../e/reducedgb-field.o ../e/reducedgb-marked.o ../e/reducedgb-field-local.o ../e/reducedgb-ZZ.o ../e/montable.o ../e/montableZZ.o ../e/schorder.o ../e/assprime.o ../e/buffer.o ../e/comb.o ../e/det.o ../e/frac.o ../e/franzi-brp.o ../e/freemod.o ../e/gb-default.o ../e/gb-homog2.o ../e/gb-sugarless.o ../e/gb-toric.o ../e/gb-walk.o ../e/gbring.o ../e/gauss.o ../e/hermite.o ../e/hilb.o ../e/int-bag.o ../e/matrix.o ../e/matrix-con.o ../e/mem.o ../e/monideal.o ../e/monoid.o ../e/monomial.o ../e/polyring.o ../e/pfaff.o ../e/relem.o ../e/ring.o ../e/ringelem.o ../e/ringmap.o ../e/schur.o ../e/skew.o ../e/skewpoly.o ../e/solvable.o ../e/spair.o ../e/text-io.o ../e/ExponentList.o ../e/weylalg.o ../e/interrupted.o ../e/ntl-internal.o ../e/ntl-debugio.o ../e/matrix-kbasis.o ../e/matrix-symm.o ../e/matrix-sort.o ../e/ring-vecs.o ../e/res-a2-gb.o ../e/engine.o ../e/interface/aring.o ../e/interface/cra.o ../e/interface/factory.o ../e/interface/flint.o ../e/interface/freemodule.o ../e/interface/groebner.o ../e/interface/matrix.o ../e/interface/monoid.o ../e/interface/monomial-ideal.o ../e/interface/monomial-ordering.o ../e/interface/mutable-matrix.o ../e/interface/polyroots.o ../e/interface/random.o ../e/interface/ring.o ../e/interface/ringelement.o ../e/interface/ringmap.o ../e/franzi-gb.o ../e/franzi-interface.o ../d/startup.o ../d/boost-regex.o ../d/main.o ../d/gmp_aux.o ../d/M2types.o ../d/scclib.o ../d/M2lib.o ../d/M2mem.o ../d/gdbm_interface.o ../d/memdebug.o ../d/xml-c.o  ../d/arithmetic.o  ../d/atomic.o  ../d/M2.o  ../d/system.o  ../d/strings.o  ../d/varstrin.o  ../d/strings1.o  ../d/errio.o  ../d/vararray.o  ../d/ctype.o  ../d/nets.o  ../d/varnets.o  ../d/interrupts.o  ../d/pthread0.o  ../d/stdiop0.o  ../d/gmp.o  ../d/engine.o  ../d/xml.o  ../d/stdio0.o  ../d/parse.o  ../d/expr.o  ../d/stdio.o  ../d/stdiop.o  ../d/err.o  ../d/gmp1.o  ../d/tokens.o  ../d/getline.o  ../d/lex.o  ../d/parser.o  ../d/binding.o  ../d/basic.o  ../d/convertr.o  ../d/common.o  ../d/util.o  ../d/struct.o  ../d/classes.o  ../d/buckets.o  ../d/equality.o  ../d/hashtables.o  ../d/regex.o  ../d/evaluate.o  ../d/sets.o  ../d/version.o  ../d/mysqldummy.o  ../d/pthread.o  ../d/actors.o  ../d/actors2.o  ../d/actors3.o  ../d/actors4.o  ../d/xmlactors.o  ../d/actors5.o  ../d/actors6.o  ../d/threads.o  ../d/interface.o  ../d/interface2.o  ../d/texmacs.o  ../d/boostmath.o  ../d/ffi.o  ../d/interp.o -lmathicgb -lmathic -lmemtailor -lmpfi -lgc -lpthread   -llapack  -lblas  -lffi -lxml2 -llzma -lz  -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1 -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../.. -ltbb -lcblas -lgfortran -lm -lquadmath -llapack  -lblas  -lfactory -lflint -lmpfr -lntl -lgmp -lomalloc -lsingular_resources  -lquadmath -lreadline -lcurses -lfrobby -lntl -lflint -lcdd -lgivaro -lgmpxx -lgmp  -lglpk -lmps -lmpfr -lgmpxx -lgmp -lgdbm -ltbb -lcblas -lboost_stacktrace_addr2line -lboost_regex  -lm -lc -o "/build/macaulay2/src/M2/M2/usr-dist/x86_64-Linux-ArchLinux/bin/M2-binary".tmp
/usr/bin/ld: ../d/version.o: warning: relocation against `_ZN9constants7versionE' in read-only section `.text.startup'
/usr/bin/ld: ../e/interface/monomial-ideal.o: in function `rawAlexanderDual':
/usr/src/debug/macaulay2/M2/M2/Macaulay2/e/interface/monomial-ideal.cpp:327:(.text+0x68d): undefined reference to `Frobby::Ideal::Ideal(unsigned long)'
/usr/bin/ld: ../e/interface/monomial-ideal.o: in function `FrobbyAlexanderDual':
/usr/src/debug/macaulay2/M2/M2/Macaulay2/e/interface/monomial-ideal.cpp:336:(.text+0x71b): undefined reference to `Frobby::Ideal::addExponent(int)'
/usr/bin/ld: /usr/src/debug/macaulay2/M2/M2/Macaulay2/e/interface/monomial-ideal.cpp:343:(.text+0x7d3): undefined reference to `Frobby::alexanderDual(Frobby::Ideal const&, __mpz_struct const (*) [1], Frobby::IdealConsumer&)'
/usr/bin/ld: ../e/interface/monomial-ideal.o: in function `MyIdealConsumer::~MyIdealConsumer()':
/usr/src/debug/macaulay2/M2/M2/Macaulay2/e/interface/monomial-ideal.cpp:300:(.text+0x803): undefined reference to `Frobby::IdealConsumer::~IdealConsumer()'
/usr/bin/ld: ../e/interface/monomial-ideal.o: in function `FrobbyAlexanderDual':
/usr/src/debug/macaulay2/M2/M2/Macaulay2/e/interface/monomial-ideal.cpp:347:(.text+0x80c): undefined reference to `Frobby::Ideal::~Ideal()'
/usr/bin/ld: ../e/interface/monomial-ideal.o: in function `MyIdealConsumer::~MyIdealConsumer()':
/usr/src/debug/macaulay2/M2/M2/Macaulay2/e/interface/monomial-ideal.cpp:300:(.text._ZN15MyIdealConsumerD2Ev[_ZN15MyIdealConsumerD5Ev]+0x2a): undefined reference to `Frobby::IdealConsumer::~IdealConsumer()'
/usr/bin/ld: ../e/interface/monomial-ideal.o: in function `MyIdealConsumer::~MyIdealConsumer()':
/usr/src/debug/macaulay2/M2/M2/Macaulay2/e/interface/monomial-ideal.cpp:300:(.text._ZN15MyIdealConsumerD0Ev[_ZN15MyIdealConsumerD5Ev]+0x29): undefined reference to `Frobby::IdealConsumer::~IdealConsumer()'
/usr/bin/ld: ../e/interface/monomial-ideal.o: in function `MyIdealConsumer::MyIdealConsumer(PolynomialRing const*, int)':
/usr/src/debug/macaulay2/M2/M2/Macaulay2/e/interface/monomial-ideal.cpp:295:(.text.unlikely+0x534): undefined reference to `Frobby::IdealConsumer::~IdealConsumer()'
/usr/bin/ld: ../e/interface/monomial-ideal.o: in function `FrobbyAlexanderDual':
/usr/src/debug/macaulay2/M2/M2/Macaulay2/e/interface/monomial-ideal.cpp:347:(.text.unlikely+0x53d): undefined reference to `Frobby::Ideal::~Ideal()'
/usr/bin/ld: ../e/interface/monomial-ideal.o:(.data.rel.ro._ZTI15MyIdealConsumer[_ZTI15MyIdealConsumer]+0x18): undefined reference to `typeinfo for Frobby::IdealConsumer'
/usr/bin/ld: ../e/interface/monomial-ideal.o:(.data.rel.ro._ZTV15MyIdealConsumer[_ZTV15MyIdealConsumer]+0x20): undefined reference to `Frobby::IdealConsumer::idealBegin(unsigned long)'
/usr/bin/ld: ../e/interface/monomial-ideal.o:(.data.rel.ro._ZTV15MyIdealConsumer[_ZTV15MyIdealConsumer]+0x30): undefined reference to `Frobby::IdealConsumer::idealEnd()'
/usr/bin/ld: ../d/version.o: in function `_GLOBAL__sub_I__Z10M2_versionv':
/usr/src/debug/macaulay2/M2/M2/Macaulay2/d/version-tmp.cc:43:(.text.startup+0x7): undefined reference to `constants::version'
/usr/bin/ld: warning: creating DT_TEXTREL in a PIE
collect2: error: ld returned 1 exit status

real	0m2.659s
user	0m1.809s
sys	0m0.850s
make[2]: *** [Makefile:133: /build/macaulay2/src/M2/M2/usr-dist/x86_64-Linux-ArchLinux/bin/M2-binary] Error 1
make[2]: Leaving directory '/build/macaulay2/src/M2/M2/Macaulay2/bin'
make[1]: *** [Makefile:15: all-in-bin] Error 2
make[1]: Leaving directory '/build/macaulay2/src/M2/M2/Macaulay2'
make: *** [GNUmakefile:251: all-in-Macaulay2] Error 2
make: Leaving directory '/build/macaulay2/src/M2/M2'

I see. Actually, I got a bit curious and wanted to see whether installing onetbb resolves the issue. But, nope, I got the exact same error message about cstdint as in the github page you linked. Um..is there any other 'easy' way to install Macaulay2 on arch?

Offline

#8 2023-09-04 17:14:31

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: [SOLVED] Macaulay2 Installation Error

Obviously not, as logs figured out in detail.

Offline

#9 2023-12-24 02:56:32

atom_nucleus
Member
Registered: 2023-09-03
Posts: 6

Re: [SOLVED] Macaulay2 Installation Error

I included onetbb and got the error about cstdint. So, I added that library to VectorArrayAPI.hpp. This time I got the following error message:

==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating M2 git repo...
==> Validating source files with sha256sums...
    M2 ... Skipped
==> Extracting sources...
  -> Creating working copy of M2 git repo...
Reset branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
make: Entering directory '/home/Username/builds/macaulay2/src/M2/M2'
make -C . -f Makefile
make[1]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2'
GNU make version okay
GNU autoconf version okay
rm -rf autom4te.cache
autoconf
autoheader
touch "include/M2/config.h.in.stamp"
GNU automake version okay
GNU libtool version (2.4.7) okay
make[1]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2'
=== remaking config.status in M2 :


./config.status --recheck
running CONFIG_SHELL=/bin/sh /bin/sh ./configure LIBS=-lcblas --prefix=/usr --libexecdir=${prefix}/lib/Macaulay2 --enable-shared --enable-download --enable-frobby --enable-pari --disable-gfan CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now CXXFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS --no-create --no-recursion
configure: WARNING: unrecognized options: --enable-frobby, --enable-pari, --disable-gfan
configure: configuring Macaulay2 version 1.22
relevant environment variable values, if any:
   CFLAGS = -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection
   CXXFLAGS = -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS
   LDFLAGS = -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
   LIBS = -lcblas
configure: operating system information:
   OS    = Linux
   ISSUE = ArchLinux
checking for gmake... no
checking for make... make
checking for pkg-config... pkg-config
checking for etags... etags
checking for lintian... no
checking for otool... no
checking for rpmlint... no
checking for gtar... no
checking for gnutar... no
checking for tar... tar
checking for gfind... no
checking for find... find
checking for objdump... objdump
checking for objcopy... objcopy
checking for ldd... ldd
checking for git... git
checking for ar... ar
checking for as... as
checking for dlltool... no
checking for ld... ld
checking for strip... strip
checking whether strip accepts the remove-section option... yes
checking whether make is GNU make... yes
checking whether GNU make is recent enough... yes
checking whether tar is GNU tar... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether gcc accepts -g... yes
checking for gcc option to enable C11 features... none needed
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking for bison... bison -y
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking for gcc version... 13.2.1
checking whether exceptions are caught... yes
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for sys/time.h... yes
checking size of int *... 8
checking size of long... 8
checking for sys/ioctl.h... yes
checking for termios.h... yes
checking for sys/mman.h... yes
checking for sys/socket.h... yes
checking for netdb.h... yes
checking for netinet/in.h... yes
checking for arpa/inet.h... yes
checking for sys/time.h... (cached) yes
checking for time.h... yes
checking for sys/wait.h... yes
checking for sys/resource.h... yes
checking for io.h... no
checking for linux/personality.h... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for elf.h... yes
checking for execinfo.h... yes
checking for stdlib.h... (cached) yes
checking for syscall.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for unistd.h... (cached) yes
checking for math.h... yes
checking for pthread.h... yes
checking for assert.h... yes
checking for alloca.h... yes
checking for malloc.h... yes
checking for dlfcn.h... yes
checking for winsock2.h... no
checking for library containing clock_gettime... none required
checking for library containing socket... none required
checking for library containing hstrerror... none required
checking for library containing dlopen... none required
checking for library containing gethostbyname... none required
checking for tbb/tbb.h... yes
checking for library containing TBB_runtime_interface_version... -ltbb
tbb version 2021.10 found
checking for herror... yes
checking for error... yes
checking for clock_gettime... yes
checking for getaddrinfo... yes
checking for hstrerror... yes
checking for sync... yes
checking for getpgrp... yes
checking for setpgid... yes
checking for fchmod... yes
checking for pipe... yes
checking for waitpid... yes
checking for setrlimit... yes
checking for alarm... yes
checking for fork... yes
checking for sigprocmask... yes
checking for kill... yes
checking for longjmp... yes
checking for siglongjmp... yes
checking for sigaction... yes
checking for wait4... yes
checking for readlink... yes
checking for lstat... yes
checking for realpath... yes
checking for mkdir... yes
checking for link... yes
checking for symlink... yes
checking for socket... yes
checking for accept... yes
checking for fcntl... yes
checking for personality... yes
checking for ioctl... yes
checking for g++ options needed to detect all undeclared functions... none needed
checking whether __INTEL_COMPILER is declared... no
checking for size_t... yes
checking for working alloca.h... yes
checking for alloca... yes
checking whether the C compiler accepts the __thread storage attribute... yes
checking for gfortran... gfortran
checking whether the compiler supports GNU Fortran... yes
checking whether gfortran accepts -g... yes
configure: by default, adding linker flags to link with Fortran libraries
checking how to get verbose linking output from gfortran... -v
checking for Fortran libraries of gfortran...  -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1 -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../.. -ltbb -lcblas -lgfortran -lm -lquadmath
checking for dummy main to link with Fortran libraries... none
checking for Fortran name-mangling scheme... lower case, underscore, no extra underscore
checking how to get verbose linking output from gfortran... (cached) -v
checking for Fortran libraries of gfortran... (cached)  -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1 -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../.. -ltbb -lcblas -lgfortran -lm -lquadmath
checking for library containing pthread_mutex_trylock... none required
checking whether g++ gets confused about C linkage in system library files... no
checking for g++ option to support OpenMP... -fopenmp
checking for gdbm.h... yes
checking for library containing gdbm_close... -lgdbm
checking for gmp.h... yes
checking for mpir.h... yes
checking whether to use gmp or mpir... using gmp
checking for library containing __gmpz_init... -lgmpxx -lgmp
checking for mpfr.h... yes
checking for library containing mpfr_digamma... -lmpfr
checking for mpfi.h... yes
checking for library containing mpfi_set_prec... -lmpfi
checking for mps/mps.h... yes
checking for glpk.h... yes
checking for library containing glp_free... -lglpk
checking whether givaro library is installed... yes
checking whether givaro has isUnit or isunit... isUnit
checking for cdd.h... yes
checking for library containing dd_Equal... -lcdd
checking for flint >= 2.6.3... yes
checking for library containing _fmpz_mod_mul1... -lflint
checking whether the package 4ti2 is installed... no, will build
checking whether the package cohomcalg is installed... no, will build
checking whether the package gfan is installed... /usr/bin/gfan
yes
checking whether the package lrs is installed... no, will build
checking whether the package csdp is installed... no, will build
checking whether the package normaliz is installed... no, will build
checking whether the package nauty is installed... /usr/bin/complg
yes, using prefix ""
checking whether the package topcom is installed... no, will build
checking whether eigen3 library is installed... yes, with flags -I/usr/include/eigen3 
checking for NTL/version.h... yes
checking whether libntl is present and usable... yes
checking for frobby.h... yes
checking whether frobby has frobby_version... no
checking for wget... wget
checking for curl... curl
checking for library containing tgoto... -lcurses
checking for readline/readline.h... yes
checking for library containing rl_set_prompt... -lreadline
checking for library containing rl_completion_matches... none required
checking for library containing readline... none required
checking for library containing add_history... none required
checking whether readline library is new enough (version at least 6)... yes
checking for gcc options needed to detect all undeclared functions... none needed
checking whether rl_catch_signals is declared... yes
checking for gtest/gtest.h... yes
checking for /usr/src/gtest/src/gtest-all.cc... no
checking for /usr/src/gtest/src/gtest_main.cc... no
configure: we will build gtest
checking for boostlib >= 1.65 (106500)... yes
checking whether the Boost::Stacktrace library is available... yes, boost_stacktrace_addr2line
checking whether the Boost::Regex library is available... yes
checking for exit in -lboost_regex... yes
checking for boost/math/special_functions.hpp... yes
checking for library containing ldexpq... -lquadmath
checking whether package atomic_ops is provided... no, will be built from downloaded sources
checking for fflas_ffpack library, version at least 2... /usr/bin/fflas-ffpack-config
found
configure: adding fflas_ffpack flags -I/usr/include 
checking whether factory library is installed... yes (factory)
checking for /usr/share/factory/gftables/961... yes
checking whether factory was built with --enable-streamio... no
checking whether the Accelerate framework for lapack is available... no
checking whether package blas is provided (by pkg-config)... yes
checking for library containing sgemv_... none required
checking whether package lapack is provided (by pkg-config)... yes
checking for library containing dgetrf_... none required
configure: pkg-config: will search for include files also in -isystem /usr/include/libxml2
checking for libxml/xmlexports.h... yes
checking for libxml/xmlexports.h... (cached) yes
checking for libxml/parser.h... yes
checking for library containing pow... none required
checking for library containing gzopen... -lz
checking for library containing lzma_end... -llzma
checking for library containing xmlNewNode... -lxml2
checking whether package libffi is provided... yes
checking for ffi.h... yes
checking for library containing ffi_call... -lffi
checking for ffi_get_struct_offsets... yes
checking whether nm accepts the demangle option... yes
checking whether getaddrinfo can handle numeric service (port) numbers... yes
checking whether gcc accepts -Wframe-address... yes
checking whether gcc accepts -Wstrict-aliasing... yes
checking whether gcc accepts -Wincompatible-pointer-types-discards-qualifiers... no
checking whether gcc accepts -Wfatal-errors... yes
checking whether g++ accepts -Wmismatched-tags... yes, adding -Wno-mismatched-tags to flags
checking whether gcc accepts -Wunused-but-set-variable... yes
checking whether gcc accepts -Wsometimes-uninitialized... no
checking whether gcc accepts -Wmaybe-uninitialized... yes
checking whether gcc accepts -Wparentheses-equality... no
checking whether gcc accepts -Wl,-z,noexecstack... yes
checking whether gcc accepts -Wl,--enable-auto-import... no
checking whether gcc accepts -Wl,-Map,conftest.mapfile... yes
configure: using BUILDLIBLIST  =  atomic_ops gc gtest
configure: using BUILDSUBLIST  =  memtailor mathic mathicgb
configure: using BUILDPROGLIST =  4ti2 normaliz csdp lrslib topcom cohomcalg
configure: using BUILDLIST     =  atomic_ops gc gtest 4ti2 normaliz csdp lrslib topcom cohomcalg
configure: using BUILD_ALWAYS  =  gc
configure: using FILE_PREREQS  =  /usr/bin/gfan /usr/bin/complg /usr/share/factory/gftables/961
configure: link using:
configure:      BUILTLIBS          = -lmathicgb -lmathic -lmemtailor -lgc -lpthread 
configure:      LINALGLIBS         =  -llapack -lblas
configure:      LIBS               = -lffi -lxml2 -llzma -lz  -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1 -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../.. -ltbb -lcblas -lgfortran -lm -lquadmath -llapack -lblas -lfactory -lflint -lmpfr -lntl -lgmp -lomalloc -lsingular_resources -lquadmath -lreadline -lcurses -lfrobby -lntl -lflint -lcdd -lgivaro -lgmpxx -lgmp -lglpk -lmps -lmpfi -lmpfr -lgmpxx -lgmp -lgdbm -ltbb -lcblas -lboost_stacktrace_addr2line -lboost_regex -L/usr/lib -lfflas -lffpack -lblas -lcblas -llapack -lgivaro -lgmpxx -lgmp
configure:      FCLIBS             = 
configure: using CC                = gcc
configure: using CPP               = 
configure: using CPPFLAGS          =  -isystem /usr/include/libxml2   -DSING_NDEBUG -DOM_NDEBUG  -DNDEBUG  -I/usr/include/cddlib -I/usr/include/eigen3 -I/usr/include -DBOOST_STACKTRACE_LINK
configure: using CFLAGS            = -std=gnu11 -march=x86-64 -mtune=generic -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -g3 -O2
configure: using CXX               = g++
configure: using CXXFLAGS          = -std=gnu++14 -march=x86-64 -mtune=generic -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -Wp,-D_GLIBCXX_ASSERTIONS -g3 -O2  -Wno-mismatched-tags
configure: using FC                = gfortran
configure: using AR                = ar
configure: using RANLIB            = ranlib
configure: using LDFLAGS           = -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -g3 -L/usr/lib64
configure: using BLASLIBS          = -lblas
configure: using LAPACKLIBS        = -llapack
configure: using LIBS_GDBM         = -lgdbm
configure: using LIBS_GLPK         = -lglpk
configure: using LIBS_GMP          = -lgmpxx -lgmp
configure: using CC_FOR_BUILD      = 
configure: with  ISSUE             = ArchLinux
configure: with  NODENAME          = abcdef
configure: with  OS REL            = Linux 6.6.8-arch1-1
configure: with  ARCH              = x86_64
configure: with  OPTIMIZE          = yes
configure: with  DEBUG             = no
configure: with  GIT_DESCRIPTION   = version-1.22-7-86d6c70f8-dirty
configure: with  USING_MPIR        = 0
configure: with  DOCUMENTATION     = html info
configure: staging area for common files: /home/Username/builds/macaulay2/src/M2/M2/usr-dist/common
configure: staging area for architecture dependent files: /home/Username/builds/macaulay2/src/M2/M2/usr-dist/x86_64-Linux-ArchLinux
configure: creating ./config.status
configure: WARNING: unrecognized options: --enable-frobby, --enable-pari, --disable-gfan
./config.status
config.status: creating GNUmakefile
config.status: creating check-configure/Makefile
config.status: creating include/config.Makefile
config.status: creating include/configuration
config.status: creating distributions/Makefile
config.status: creating distributions/install/Makefile
config.status: creating distributions/top/Makefile
config.status: creating distributions/top/INSTALL
config.status: creating distributions/top/preremove
config.status: creating distributions/top/postinstall
config.status: creating distributions/tar/Makefile
config.status: creating distributions/dmg/Makefile
config.status: creating distributions/rpm/Makefile
config.status: creating distributions/rpm/Macaulay2-body.spec
config.status: creating distributions/rpm/Macaulay2-common-body.spec
config.status: creating distributions/freebsd/Makefile
config.status: creating distributions/freebsd/post-install
config.status: creating distributions/freebsd/post-deinstall
config.status: creating distributions/deb/Makefile
config.status: creating distributions/deb/macaulay2-common/postrm
config.status: creating distributions/deb/macaulay2-common/postinst
config.status: creating distributions/deb/macaulay2-common/prerm
config.status: creating distributions/deb/macaulay2-common/preinst
config.status: creating distributions/deb/macaulay2/postrm
config.status: creating distributions/deb/macaulay2/postinst
config.status: creating distributions/deb/macaulay2/prerm
config.status: creating distributions/deb/macaulay2/preinst
config.status: creating libraries/Makefile
config.status: creating libraries/cohomcalg/Makefile
config.status: creating libraries/topcom/Makefile
config.status: creating libraries/atomic_ops/Makefile
config.status: creating libraries/Makefile.library
config.status: creating libraries/M2/Makefile
config.status: creating libraries/gc/Makefile
config.status: creating libraries/gdbm/Makefile
config.status: creating libraries/flint/Makefile
config.status: creating libraries/gmp/Makefile
config.status: creating libraries/mpfr/Makefile
config.status: creating libraries/mpfi/Makefile
config.status: creating libraries/mpir/Makefile
config.status: creating libraries/gtest/Makefile
config.status: creating libraries/4ti2/Makefile
config.status: creating libraries/gfan/Makefile
config.status: creating libraries/fflas_ffpack/Makefile
config.status: creating libraries/nauty/Makefile
config.status: creating libraries/cddplus/Makefile
config.status: creating libraries/lrslib/Makefile
config.status: creating libraries/cddlib/Makefile
config.status: creating libraries/glpk/Makefile
config.status: creating libraries/linbox/Makefile
config.status: creating libraries/givaro/Makefile
config.status: creating libraries/fplll/Makefile
config.status: creating libraries/polymake/Makefile
config.status: creating libraries/normaliz/Makefile
config.status: creating libraries/csdp/Makefile
config.status: creating libraries/pari/Makefile
config.status: creating libraries/readline/Makefile
config.status: creating libraries/ntl/Makefile
config.status: creating libraries/libtool/Makefile
config.status: creating libraries/gftables/Makefile
config.status: creating libraries/factory/Makefile
config.status: creating libraries/mpsolve/Makefile
config.status: creating libraries/frobby/Makefile
config.status: creating libraries/lapack/Makefile
config.status: creating Macaulay2/Makefile
config.status: creating Macaulay2/README
config.status: creating Macaulay2/packages/SCSCP/docinput/Makefile
config.status: creating Macaulay2/c/Makefile
config.status: creating Macaulay2/d/Makefile
config.status: creating Macaulay2/d/Makefile.files
config.status: creating Macaulay2/m2/startup.m2
config.status: creating Macaulay2/bin/Makefile
config.status: creating Macaulay2/bin/M2
config.status: creating Macaulay2/e/Makefile
config.status: creating Macaulay2/e/Makefile.common
config.status: creating Macaulay2/e/unit-tests/Makefile
config.status: creating Macaulay2/editors/Makefile
config.status: creating Macaulay2/html-check-links/Makefile
config.status: creating Macaulay2/packages/Style/Makefile
config.status: creating Macaulay2/m2/Makefile
config.status: creating Macaulay2/m2/version.m2
config.status: creating Macaulay2/man/Makefile
config.status: creating Macaulay2/man/M2.1
config.status: creating Macaulay2/packages/Makefile
config.status: creating Macaulay2/tests/ComputationsBook/Makefile
config.status: creating Macaulay2/tests/ComputationsBook/Makefile.chapter
config.status: creating Macaulay2/tests/ComputationsBook/completeIntersections/Makefile
config.status: creating Macaulay2/tests/ComputationsBook/constructions/Makefile
config.status: creating Macaulay2/tests/ComputationsBook/d-modules/Makefile
config.status: creating Macaulay2/tests/ComputationsBook/exterior-algebra/Makefile
config.status: creating Macaulay2/tests/ComputationsBook/geometry/Makefile
config.status: creating Macaulay2/tests/ComputationsBook/monomialIdeals/Makefile
config.status: creating Macaulay2/tests/ComputationsBook/preface/Makefile
config.status: creating Macaulay2/tests/ComputationsBook/programming/Makefile
config.status: creating Macaulay2/tests/ComputationsBook/schemes/Makefile
config.status: creating Macaulay2/tests/ComputationsBook/solving/Makefile
config.status: creating Macaulay2/tests/ComputationsBook/toricHilbertScheme/Makefile
config.status: creating Macaulay2/tests/ComputationsBook/varieties/Makefile
config.status: creating Macaulay2/srcdir
config.status: creating Macaulay2/system/Makefile
config.status: creating Macaulay2/tests/Makefile
config.status: creating Macaulay2/tests/Makefile.test
config.status: creating Macaulay2/tests/engine/Makefile
config.status: creating Macaulay2/tests/slow/Makefile
config.status: creating Macaulay2/tests/normal/Makefile
config.status: creating Macaulay2/tests/threads/Makefile
config.status: creating Macaulay2/tests/gigantic/Makefile
config.status: creating Macaulay2/tests/goals/Makefile
config.status: creating Macaulay2/tests/quarantine/Makefile
config.status: creating Macaulay2/tests/rationality/Makefile
config.status: creating Macaulay2/util/Makefile
config.status: creating include/M2/config.h
config.status: include/M2/config.h is unchanged
: "checking for strings that look like undefined configure variables in all *.in files..."
egrep: warning: egrep is obsolescent; using grep -E
egrep: warning: egrep is obsolescent; using grep -E
cd ./.. && git submodule update
: creating or removing symbolic link to common staging area, if necessary,
: based on comparison of these directories:
:                      pre_prefix : /home/Username/builds/macaulay2/src/M2/M2/usr-dist/common
: abs_builddir/usr-dist/common : /home/Username/builds/macaulay2/src/M2/M2/usr-dist/common
rm -f srcdir .link-test
echo "./" >srcdir
rm -f M2
(echo '#! /bin/sh'; echo 'exec /home/Username/builds/macaulay2/src/M2/M2/usr-dist/x86_64-Linux-ArchLinux/bin/M2 "$@"') >M2
chmod a+x M2
make -C libraries all
make[1]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/libraries'
make -C atomic_ops fetch
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/atomic_ops'
make[2]: Nothing to be done for 'fetch'.
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/atomic_ops'
make -C gc fetch
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/gc'
make[2]: Nothing to be done for 'fetch'.
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/gc'
make -C gtest fetch
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/gtest'
make[2]: Nothing to be done for 'fetch'.
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/gtest'
make -C 4ti2 fetch
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/4ti2'
make[2]: Nothing to be done for 'fetch'.
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/4ti2'
make -C normaliz fetch
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/normaliz'
make[2]: Nothing to be done for 'fetch'.
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/normaliz'
make -C csdp fetch
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/csdp'
make[2]: Nothing to be done for 'fetch'.
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/csdp'
make -C lrslib fetch
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/lrslib'
make[2]: Nothing to be done for 'fetch'.
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/lrslib'
make -C topcom fetch
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/topcom'
make[2]: Nothing to be done for 'fetch'.
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/topcom'
make -C cohomcalg fetch
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/cohomcalg'
make[2]: Nothing to be done for 'fetch'.
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/cohomcalg'
make -C atomic_ops all
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/atomic_ops'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/atomic_ops'
make -C gc all
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/gc'
rm -f /home/Username/builds/macaulay2/src/M2/M2/usr-host/lib/libcord*
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/gc'
make -C gtest all
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/gtest'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/gtest'
make -C 4ti2 all
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/4ti2'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/4ti2'
make -C normaliz all
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/normaliz'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/normaliz'
make -C csdp all
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/csdp'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/csdp'
make -C lrslib all
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/lrslib'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/lrslib'
make -C topcom all
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/topcom'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/topcom'
make -C cohomcalg all
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/cohomcalg'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/libraries/cohomcalg'
: installing programs in /home/Username/builds/macaulay2/src/M2/M2/usr-dist/common/lib/Macaulay2/Macaulay2/bin
/usr/bin/install -c -d /home/Username/builds/macaulay2/src/M2/M2/usr-host/bin ; \
/usr/bin/install -c -d /home/Username/builds/macaulay2/src/M2/M2/usr-dist/common/lib/Macaulay2/Macaulay2/bin ; \
tar cf - -C /home/Username/builds/macaulay2/src/M2/M2/usr-host/bin/. . | tar xf - -C /home/Username/builds/macaulay2/src/M2/M2/usr-dist/common/lib/Macaulay2/Macaulay2/bin ;
: installing library and submodule licenses in /home/Username/builds/macaulay2/src/M2/M2/usr-dist/common/lib/Macaulay2/Macaulay2/program-licenses
/usr/bin/install -c -d /home/Username/builds/macaulay2/src/M2/M2/usr-host/licenses ; \
/usr/bin/install -c -d /home/Username/builds/macaulay2/src/M2/M2/usr-dist/common/lib/Macaulay2/Macaulay2/program-licenses ; \
tar cf - -C /home/Username/builds/macaulay2/src/M2/M2/usr-host/licenses/. . | tar xf - -C /home/Username/builds/macaulay2/src/M2/M2/usr-dist/common/lib/Macaulay2/Macaulay2/program-licenses ;
: installing sharable library files in /home/Username/builds/macaulay2/src/M2/M2/usr-dist/x86_64-Linux-ArchLinux/lib/Macaulay2/lib
/usr/bin/install -c -d /home/Username/builds/macaulay2/src/M2/M2/usr-host/lib ; \
/usr/bin/install -c -d /home/Username/builds/macaulay2/src/M2/M2/usr-dist/x86_64-Linux-ArchLinux/lib/Macaulay2/lib ;			     \
cd /home/Username/builds/macaulay2/src/M2/M2/usr-host/lib &&				     \
for i in *.dll *.so.* *[0-9].dylib ;			     \
do if [ -e $i ] ;					     \
   then tar cf - $i | tar xfv - -C /home/Username/builds/macaulay2/src/M2/M2/usr-dist/x86_64-Linux-ArchLinux/lib/Macaulay2/lib ; \
   fi ;							     \
done ;
lib4ti2common.so.0
lib4ti2common.so.0.0.0
lib4ti2gmp.so.0
lib4ti2gmp.so.0.0.0
lib4ti2int32.so.0
lib4ti2int32.so.0.0.0
lib4ti2int64.so.0
lib4ti2int64.so.0.0.0
lib4ti2util.so.0
lib4ti2util.so.0.0.0
libgccpp.so.1
libgccpp.so.1.4.0
libgc.so.1
libgc.so.1.4.3
libzsolve.so.0
libzsolve.so.0.0.0
make[1]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/libraries'
cd ./.. && git submodule update --init M2/submodules/memtailor
make -C submodules/memtailor all
make[1]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/submodules/memtailor'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/submodules/memtailor'
cd ./.. && git submodule update --init M2/submodules/mathic
make -C submodules/mathic all
make[1]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/submodules/mathic'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/submodules/mathic'
cd ./.. && git submodule update --init M2/submodules/mathicgb
make -C submodules/mathicgb all
make[1]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/submodules/mathicgb'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/submodules/mathicgb'
make -C Macaulay2 all
make[1]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/Macaulay2'
/usr/bin/install -c -m 644 README "/home/Username/builds/macaulay2/src/M2/M2/usr-dist/common/share/doc/Macaulay2/README"
make -C util all 
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/Macaulay2/util'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/Macaulay2/util'
make -C c all 
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/Macaulay2/c'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/Macaulay2/c'
make -C d all 
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/Macaulay2/d'
echo '#define DISTRIBUTED_PACKAGES "'`cat ../packages/=distributed-packages`'"' >distributed-packages.h
CXX version-tmp.cc
: making startup.c
CC startup.c
if [ -f ./.gdbinit.Username ]; then cp ./.gdbinit.Username .gdbinit; fi
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/Macaulay2/d'
make -C e all 
make[2]: Entering directory '/home/Username/builds/macaulay2/src/M2/M2/Macaulay2/e'
make[2]: Circular TAGS <- TAGS dependency dropped.
CXX NCAlgebras/NCF4.cpp
In file included from ./aring-translate.hpp:16,
                 from ./aring-glue.hpp:7,
                 from ./VectorArithmetic.hpp:9,
                 from ./NCAlgebras/NCF4.hpp:14,
                 from NCAlgebras/NCF4.cpp:1:
./aring-zz-flint.hpp: In member function ‘unsigned int M2::ARingZZ::computeHashValue(const ElementType&) const’:
./aring-zz-flint.hpp:46:38: error: ‘fmpz_get_ui’ was not declared in this scope; did you mean ‘mpz_get_ui’?
   46 |     return static_cast<unsigned int>(fmpz_get_ui(&a));
      |                                      ^~~~~~~~~~~
      |                                      mpz_get_ui
./aring-zz-flint.hpp: In member function ‘bool M2::ARingZZ::is_unit(const ElementType&) const’:
./aring-zz-flint.hpp:55:12: error: ‘fmpz_is_one’ was not declared in this scope
   55 |     return fmpz_is_one(&f) or fmpz_cmp_si(&f, -1) == 0;
      |            ^~~~~~~~~~~
./aring-zz-flint.hpp:55:31: error: ‘fmpz_cmp_si’ was not declared in this scope; did you mean ‘mpz_cmp_si’?
   55 |     return fmpz_is_one(&f) or fmpz_cmp_si(&f, -1) == 0;
      |                               ^~~~~~~~~~~
      |                               mpz_cmp_si
./aring-zz-flint.hpp: In member function ‘bool M2::ARingZZ::is_zero(const ElementType&) const’:
./aring-zz-flint.hpp:57:53: error: ‘fmpz_is_zero’ was not declared in this scope; did you mean ‘mpfi_is_zero’?
   57 |   bool is_zero(const ElementType& f) const { return fmpz_is_zero(&f); }
      |                                                     ^~~~~~~~~~~~
      |                                                     mpfi_is_zero
./aring-zz-flint.hpp: In member function ‘bool M2::ARingZZ::is_equal(const ElementType&, const ElementType&) const’:
./aring-zz-flint.hpp:65:12: error: ‘fmpz_equal’ was not declared in this scope; did you mean ‘mpq_equal’?
   65 |     return fmpz_equal(&f, &g);
      |            ^~~~~~~~~~
      |            mpq_equal
./aring-zz-flint.hpp: In member function ‘int M2::ARingZZ::compare_elems(const ElementType&, const ElementType&) const’:
./aring-zz-flint.hpp:69:15: error: ‘fmpz_cmp’ was not declared in this scope; did you mean ‘mpz_cmp’?
   69 |     int cmp = fmpz_cmp(&f, &g);
      |               ^~~~~~~~
      |               mpz_cmp
./aring-zz-flint.hpp: In member function ‘void M2::ARingZZ::init_set(ElementType&, const ElementType&) const’:
./aring-zz-flint.hpp:81:5: error: ‘fmpz_init_set’ was not declared in this scope; did you mean ‘mpz_init_set’?
   81 |     fmpz_init_set(&result, &a);
      |     ^~~~~~~~~~~~~
      |     mpz_init_set
./aring-zz-flint.hpp: In member function ‘void M2::ARingZZ::init(ElementType&) const’:
./aring-zz-flint.hpp:84:42: error: ‘fmpz_init’ was not declared in this scope; did you mean ‘mpz_init’?
   84 |   void init(ElementType& result) const { fmpz_init(&result); }
      |                                          ^~~~~~~~~
      |                                          mpz_init
./aring-zz-flint.hpp: In static member function ‘static void M2::ARingZZ::clear(ElementType&)’:
./aring-zz-flint.hpp:85:44: error: ‘fmpz_clear’ was not declared in this scope; did you mean ‘mpz_clear’?
   85 |   static void clear(ElementType& result) { fmpz_clear(&result); }
      |                                            ^~~~~~~~~~
      |                                            mpz_clear
./aring-zz-flint.hpp: In member function ‘void M2::ARingZZ::set(ElementType&, const ElementType&) const’:
./aring-zz-flint.hpp:88:5: error: ‘fmpz_set’ was not declared in this scope; did you mean ‘mpz_set’?
   88 |     fmpz_set(&result, &a);
      |     ^~~~~~~~
      |     mpz_set
./aring-zz-flint.hpp: In member function ‘void M2::ARingZZ::set_zero(ElementType&) const’:
./aring-zz-flint.hpp:91:46: error: ‘fmpz_set_si’ was not declared in this scope; did you mean ‘mpz_set_si’?
   91 |   void set_zero(ElementType& result) const { fmpz_set_si(&result, 0); }
      |                                              ^~~~~~~~~~~
      |                                              mpz_set_si
./aring-zz-flint.hpp: In member function ‘void M2::ARingZZ::set_from_long(ElementType&, long int) const’:
./aring-zz-flint.hpp:94:5: error: ‘fmpz_set_si’ was not declared in this scope; did you mean ‘mpz_set_si’?
   94 |     fmpz_set_si(&result, a);
      |     ^~~~~~~~~~~
      |     mpz_set_si
./aring-zz-flint.hpp: In member function ‘void M2::ARingZZ::set_from_mpz(ElementType&, mpz_srcptr) const’:
./aring-zz-flint.hpp:100:5: error: ‘fmpz_set_mpz’ was not declared in this scope; did you mean ‘mpz_set_si’?
  100 |     fmpz_set_mpz(&result, a);
      |     ^~~~~~~~~~~~
      |     mpz_set_si
./aring-zz-flint.hpp: In member function ‘void M2::ARingZZ::set_var(ElementType&, int) const’:
./aring-zz-flint.hpp:114:52: error: ‘fmpz_set_si’ was not declared in this scope; did you mean ‘mpz_set_si’?
  114 |   void set_var(ElementType& result, int v) const { fmpz_set_si(&result, 1); }
      |                                                    ^~~~~~~~~~~
      |                                                    mpz_set_si
./aring-zz-flint.hpp: In member function ‘void M2::ARingZZ::negate(ElementType&, const ElementType&) const’:
./aring-zz-flint.hpp:121:5: error: ‘fmpz_neg’ was not declared in this scope; did you mean ‘mpz_neg’?
  121 |     fmpz_neg(&result, &a);
      |     ^~~~~~~~
      |     mpz_neg
./aring-zz-flint.hpp: In member function ‘void M2::ARingZZ::add(ElementType&, const ElementType&, const ElementType&) const’:
./aring-zz-flint.hpp:136:5: error: ‘fmpz_add’ was not declared in this scope; did you mean ‘mpz_add’?
  136 |     fmpz_add(&result, &a, &b);
      |     ^~~~~~~~
      |     mpz_add
./aring-zz-flint.hpp: In member function ‘void M2::ARingZZ::subtract(ElementType&, const ElementType&, const ElementType&) const’:
./aring-zz-flint.hpp:143:5: error: ‘fmpz_sub’ was not declared in this scope; did you mean ‘mpz_sub’?
  143 |     fmpz_sub(&result, &a, &b);
      |     ^~~~~~~~
      |     mpz_sub
./aring-zz-flint.hpp: In member function ‘void M2::ARingZZ::subtract_multiple(ElementType&, const ElementType&, const ElementType&) const’:
./aring-zz-flint.hpp:150:5: error: ‘fmpz_submul’ was not declared in this scope; did you mean ‘mpz_submul’?
  150 |     fmpz_submul(&result, &a, &b);
      |     ^~~~~~~~~~~
      |     mpz_submul
./aring-zz-flint.hpp: In member function ‘void M2::ARingZZ::mult(ElementType&, const ElementType&, const ElementType&) const’:
./aring-zz-flint.hpp:157:5: error: ‘fmpz_mul’ was not declared in this scope; did you mean ‘mpz_mul’?
  157 |     fmpz_mul(&result, &a, &b);
      |     ^~~~~~~~
      |     mpz_mul
./aring-zz-flint.hpp: In member function ‘bool M2::ARingZZ::divide(ElementType&, const ElementType&, const ElementType&) const’:
./aring-zz-flint.hpp:165:9: error: ‘fmpz_divisible’ was not declared in this scope; did you mean ‘mpz_divisible_p’?
  165 |     if (fmpz_divisible(&a, &b))
      |         ^~~~~~~~~~~~~~
      |         mpz_divisible_p
./aring-zz-flint.hpp:167:9: error: ‘fmpz_divexact’ was not declared in this scope; did you mean ‘mpz_divexact’?
  167 |         fmpz_divexact(&result, &a, &b);
      |         ^~~~~~~~~~~~~
      |         mpz_divexact
./aring-zz-flint.hpp: In member function ‘void M2::ARingZZ::power(ElementType&, const ElementType&, long unsigned int) const’:
./aring-zz-flint.hpp:178:12: error: ‘fmpz_pow_ui’ was not declared in this scope; did you mean ‘mpz_pow_ui’?
  178 |     return fmpz_pow_ui(&result, &a, n);
      |            ^~~~~~~~~~~
      |            mpz_pow_ui
./aring-zz-flint.hpp: In member function ‘void M2::ARingZZ::power_mpz(ElementType&, const ElementType&, mpz_srcptr) const’:
./aring-zz-flint.hpp:188:7: error: ‘fmpz_pow_ui’ was not declared in this scope; did you mean ‘mpz_pow_ui’?
  188 |       fmpz_pow_ui(&result, &a, n1.second);
      |       ^~~~~~~~~~~
      |       mpz_pow_ui
./aring-zz-flint.hpp: In member function ‘void M2::ARingZZ::swap(ElementType&, ElementType&) const’:
./aring-zz-flint.hpp:201:53: error: ‘fmpz_swap’ was not declared in this scope; did you mean ‘mpz_swap’?
  201 |   void swap(ElementType& a, ElementType& b) const { fmpz_swap(&a, &b); }
      |                                                     ^~~~~~~~~
      |                                                     mpz_swap
./aring-zz-flint.hpp: In member function ‘void M2::ARingZZ::random(ElementType&) const’:
./aring-zz-flint.hpp:204:5: error: ‘fmpz_randm’ was not declared in this scope; did you mean ‘mpz_random’?
  204 |     fmpz_randm(&result, mRandomState, mMaxHeight);
      |     ^~~~~~~~~~
      |     mpz_random
./aring-zz-flint.hpp: In member function ‘void M2::ARingZZ::to_ring_elem(ring_elem&, const ElementType&) const’:
./aring-zz-flint.hpp:226:5: error: ‘fmpz_get_mpz’ was not declared in this scope; did you mean ‘mpz_get_si’?
  226 |     fmpz_get_mpz(b, &a);
      |     ^~~~~~~~~~~~
      |     mpz_get_si
./aring-zz-flint.hpp: In member function ‘void M2::ARingZZ::from_ring_elem(ElementType&, const ring_elem&) const’:
./aring-zz-flint.hpp:233:5: error: ‘fmpz_set_mpz’ was not declared in this scope; did you mean ‘mpz_set_si’?
  233 |     fmpz_set_mpz(&result, a.get_mpz());
      |     ^~~~~~~~~~~~
      |     mpz_set_si
./aring-zz-flint.hpp: In member function ‘M2::ARingZZ::ElementType M2::ARingZZ::from_ring_elem_const(const ring_elem&) const’:
./aring-zz-flint.hpp:238:12: error: ‘PTR_TO_COEFF’ was not declared in this scope
  238 |     return PTR_TO_COEFF(a.get_mpz());
      |            ^~~~~~~~~~~~
./aring-zz-flint.hpp:238:12: note: the macro ‘PTR_TO_COEFF’ had not yet been defined
In file included from /usr/include/flint/fmpq.h:22,
                 from ./aring-qq-flint.hpp:14,
                 from ./aring-qq.hpp:6,
                 from ./aring-translate.hpp:20:
/usr/include/flint/fmpz.h:41: note: it was later defined here
   41 | #define PTR_TO_COEFF(x) (((ulong) (x) >> 2) | (WORD(1) << (FLINT_BITS - 2)))
      | 
./aring-zz-flint.hpp: In member function ‘bool M2::ARingZZ::coerceToLongInteger(long int&, const ElementType&) const’:
./aring-zz-flint.hpp:263:14: error: ‘fmpz_get_si’ was not declared in this scope; did you mean ‘mpz_get_si’?
  263 |     result = fmpz_get_si(&n);
      |              ^~~~~~~~~~~
      |              mpz_get_si
./aring-zz-flint.hpp:264:12: error: ‘fmpz_fits_si’ was not declared in this scope; did you mean ‘mpz_set_si’?
  264 |     return fmpz_fits_si(&n);
      |            ^~~~~~~~~~~~
      |            mpz_set_si
In file included from ./aring-translate.hpp:18:
./aring-zzp-flint.hpp: In member function ‘void M2::ARingZZpFlint::set_from_long(ElementType&, long int) const’:
./aring-zzp-flint.hpp:92:5: error: ‘fmpz_init’ was not declared in this scope; did you mean ‘mpz_init’?
   92 |     fmpz_init(b);
      |     ^~~~~~~~~
      |     mpz_init
./aring-zzp-flint.hpp:93:5: error: ‘fmpz_set_si’ was not declared in this scope; did you mean ‘mpz_set_si’?
   93 |     fmpz_set_si(b, a);
      |     ^~~~~~~~~~~
      |     mpz_set_si
./aring-zzp-flint.hpp:94:14: error: ‘fmpz_fdiv_ui’ was not declared in this scope; did you mean ‘mpz_fdiv_ui’?
   94 |     result = fmpz_fdiv_ui(b, mCharac);
      |              ^~~~~~~~~~~~
      |              mpz_fdiv_ui
./aring-zzp-flint.hpp:95:5: error: ‘fmpz_clear’ was not declared in this scope; did you mean ‘mpz_clear’?
   95 |     fmpz_clear(b);
      |     ^~~~~~~~~~
      |     mpz_clear
./aring-zzp-flint.hpp: In member function ‘void M2::ARingZZpFlint::negate(ElementType&, ElementType) const’:
./aring-zzp-flint.hpp:118:14: error: ‘nmod_neg’ was not declared in this scope; did you mean ‘nmod_t’?
  118 |     result = nmod_neg(a, mModulus);
      |              ^~~~~~~~
      |              nmod_t
./aring-zzp-flint.hpp: In member function ‘void M2::ARingZZpFlint::invert(ElementType&, ElementType) const’:
./aring-zzp-flint.hpp:125:14: error: ‘n_invmod’ was not declared in this scope
  125 |     result = n_invmod(a, mCharac);
      |              ^~~~~~~~
./aring-zzp-flint.hpp: In member function ‘void M2::ARingZZpFlint::add(ElementType&, ElementType, ElementType) const’:
./aring-zzp-flint.hpp:130:14: error: ‘nmod_add’ was not declared in this scope; did you mean ‘nmod_t’?
  130 |     result = nmod_add(a, b, mModulus);
      |              ^~~~~~~~
      |              nmod_t
./aring-zzp-flint.hpp: In member function ‘void M2::ARingZZpFlint::subtract(ElementType&, ElementType, ElementType) const’:
./aring-zzp-flint.hpp:135:14: error: ‘nmod_sub’ was not declared in this scope; did you mean ‘nmod_t’?
  135 |     result = nmod_sub(a, b, mModulus);
      |              ^~~~~~~~
      |              nmod_t
./aring-zzp-flint.hpp: In member function ‘void M2::ARingZZpFlint::subtract_multiple(ElementType&, ElementType, ElementType) const’:
./aring-zzp-flint.hpp:142:22: error: ‘nmod_neg’ was not declared in this scope; did you mean ‘nmod_t’?
  142 |     ElementType a1 = nmod_neg(a, mModulus);
      |                      ^~~~~~~~
      |                      nmod_t
./aring-zzp-flint.hpp:157:5: error: ‘NMOD_ADDMUL’ was not declared in this scope
  157 |     NMOD_ADDMUL(result, a1, b, mModulus);
      |     ^~~~~~~~~~~
./aring-zzp-flint.hpp: In member function ‘void M2::ARingZZpFlint::mult(ElementType&, ElementType, ElementType) const’:
./aring-zzp-flint.hpp:162:14: error: ‘nmod_mul’ was not declared in this scope; did you mean ‘nmod_t’?
  162 |     result = nmod_mul(a, b, mModulus);
      |              ^~~~~~~~
      |              nmod_t
./aring-zzp-flint.hpp: In member function ‘void M2::ARingZZpFlint::divide(ElementType&, ElementType, ElementType) const’:
./aring-zzp-flint.hpp:169:14: error: ‘nmod_div’ was not declared in this scope; did you mean ‘nmod_t’?
  169 |     result = nmod_div(a, b, mModulus);
      |              ^~~~~~~~
      |              nmod_t
./aring-zzp-flint.hpp: In member function ‘void M2::ARingZZpFlint::power(ElementType&, ElementType, long int) const’:
./aring-zzp-flint.hpp:176:18: error: ‘n_powmod2_preinv’ was not declared in this scope
  176 |         result = n_powmod2_preinv(a, n, mModulus.n, mModulus.ninv);
      |                  ^~~~~~~~~~~~~~~~
./aring-zzp-flint.hpp: In member function ‘void M2::ARingZZpFlint::power_mpz(ElementType&, ElementType, mpz_srcptr) const’:
./aring-zzp-flint.hpp:192:18: error: ‘n_powmod2_ui_preinv’ was not declared in this scope
  192 |         result = n_powmod2_ui_preinv(a, nbar, mModulus.n, mModulus.ninv);
      |                  ^~~~~~~~~~~~~~~~~~~
In file included from ./aring-translate.hpp:22:
./aring-gf-flint-big.hpp: In member function ‘unsigned int M2::ARingGFFlintBig::computeHashValue(const elem&) const’:
./aring-gf-flint-big.hpp:136:16: error: ‘nmod_poly_degree’ was not declared in this scope; did you mean ‘nmod_poly_t’?
  136 |     long deg = nmod_poly_degree(&a);
      |                ^~~~~~~~~~~~~~~~
      |                nmod_poly_t
./aring-gf-flint-big.hpp:138:41: error: ‘nmod_poly_get_coeff_ui’ was not declared in this scope
  138 |       hash += static_cast<unsigned int>(nmod_poly_get_coeff_ui(&a, i)) *
      |                                         ^~~~~~~~~~~~~~~~~~~~~~
In file included from ./dmat.hpp:65,
                 from ./mutablemat-defs.hpp:82,
                 from ./mutablemat.hpp:6,
                 from ./aring-glue.hpp:10:
./dmat-zz-flint.hpp: In constructor ‘DMat<M2::ARingZZ>::DMat(const ACoeffRing&, size_t, size_t)’:
./dmat-zz-flint.hpp:37:5: error: ‘fmpz_mat_init’ was not declared in this scope; did you mean ‘fmpq_mat_init’?
   37 |     fmpz_mat_init(mArray, nrows, ncols);
      |     ^~~~~~~~~~~~~
      |     fmpq_mat_init
./dmat-zz-flint.hpp: In copy constructor ‘DMat<M2::ARingZZ>::DMat(const DMat<M2::ARingZZ>&)’:
./dmat-zz-flint.hpp:42:5: error: ‘fmpz_mat_init_set’ was not declared in this scope; did you mean ‘fmpq_mat_init_set’?
   42 |     fmpz_mat_init_set(mArray, M.mArray);
      |     ^~~~~~~~~~~~~~~~~
      |     fmpq_mat_init_set
./dmat-zz-flint.hpp: In destructor ‘DMat<M2::ARingZZ>::~DMat()’:
./dmat-zz-flint.hpp:45:13: error: ‘fmpz_mat_clear’ was not declared in this scope; did you mean ‘fmpq_mat_clear’?
   45 |   ~DMat() { fmpz_mat_clear(mArray); }
      |             ^~~~~~~~~~~~~~
      |             fmpq_mat_clear
./dmat-zz-flint.hpp: In member function ‘void DMat<M2::ARingZZ>::swap(DMat<M2::ARingZZ>&)’:
./dmat-zz-flint.hpp:79:5: error: ‘fmpz_mat_swap’ was not declared in this scope; did you mean ‘fmpq_mat_swap’?
   79 |     fmpz_mat_swap(mArray, M.mArray);
      |     ^~~~~~~~~~~~~
      |     fmpq_mat_swap
./dmat-zz-flint.hpp: In member function ‘size_t DMat<M2::ARingZZ>::numRows() const’:
./dmat-zz-flint.hpp:83:35: error: ‘fmpz_mat_nrows’ was not declared in this scope; did you mean ‘fmpq_mat_nrows’?
   83 |   size_t numRows() const { return fmpz_mat_nrows(mArray); }
      |                                   ^~~~~~~~~~~~~~
      |                                   fmpq_mat_nrows
./dmat-zz-flint.hpp: In member function ‘size_t DMat<M2::ARingZZ>::numColumns() const’:
./dmat-zz-flint.hpp:84:38: error: ‘fmpz_mat_ncols’ was not declared in this scope; did you mean ‘fmpq_mat_ncols’?
   84 |   size_t numColumns() const { return fmpz_mat_ncols(mArray); }
      |                                      ^~~~~~~~~~~~~~
      |                                      fmpq_mat_ncols
./dmat-zz-flint.hpp: In member function ‘DMat<M2::ARingZZ>::ElementType& DMat<M2::ARingZZ>::entry(size_t, size_t)’:
./dmat-zz-flint.hpp:91:13: error: ‘fmpz_mat_entry’ was not declared in this scope; did you mean ‘fmpq_mat_entry’?
   91 |     return *fmpz_mat_entry(mArray, row, column);
      |             ^~~~~~~~~~~~~~
      |             fmpq_mat_entry
./dmat-zz-flint.hpp: In member function ‘const DMat<M2::ARingZZ>::ElementType& DMat<M2::ARingZZ>::entry(size_t, size_t) const’:
./dmat-zz-flint.hpp:97:13: error: ‘fmpz_mat_entry’ was not declared in this scope; did you mean ‘fmpq_mat_entry’?
   97 |     return *fmpz_mat_entry(mArray, row, column);
      |             ^~~~~~~~~~~~~~
      |             fmpq_mat_entry
In file included from ./dmat-lu-qq.hpp:7,
                 from ./dmat-lu.hpp:17,
                 from ./mat-linalg.hpp:50,
                 from ./mutablemat-defs.hpp:86:
./dmat-qq-interface-flint.hpp: In constructor ‘FlintZZMat::FlintZZMat(const DMatZZGMP&)’:
./dmat-qq-interface-flint.hpp:18:5: error: ‘fmpz_mat_init’ was not declared in this scope; did you mean ‘fmpq_mat_init’?
   18 |     fmpz_mat_init(mMatrix, mat.numRows(), mat.numColumns());
      |     ^~~~~~~~~~~~~
      |     fmpq_mat_init
./dmat-qq-interface-flint.hpp: In constructor ‘FlintZZMat::FlintZZMat(long int, long int)’:
./dmat-qq-interface-flint.hpp:23:5: error: ‘fmpz_mat_init’ was not declared in this scope; did you mean ‘fmpq_mat_init’?
   23 |     fmpz_mat_init(mMatrix, numrows, numcolumns);
      |     ^~~~~~~~~~~~~
      |     fmpq_mat_init
./dmat-qq-interface-flint.hpp: In destructor ‘FlintZZMat::~FlintZZMat()’:
./dmat-qq-interface-flint.hpp:26:19: error: ‘fmpz_mat_clear’ was not declared in this scope; did you mean ‘fmpq_mat_clear’?
   26 |   ~FlintZZMat() { fmpz_mat_clear(mMatrix); }
      |                   ^~~~~~~~~~~~~~
      |                   fmpq_mat_clear
./dmat-qq-interface-flint.hpp: In member function ‘void FlintZZMat::toDMat(DMatZZGMP&)’:
./dmat-qq-interface-flint.hpp:30:19: error: ‘fmpz_mat_nrows’ was not declared in this scope; did you mean ‘fmpq_mat_nrows’?
   30 |     result.resize(fmpz_mat_nrows(mMatrix), fmpz_mat_ncols(mMatrix));
      |                   ^~~~~~~~~~~~~~
      |                   fmpq_mat_nrows
./dmat-qq-interface-flint.hpp:30:44: error: ‘fmpz_mat_ncols’ was not declared in this scope; did you mean ‘fmpq_mat_ncols’?
   30 |     result.resize(fmpz_mat_nrows(mMatrix), fmpz_mat_ncols(mMatrix));
      |                                            ^~~~~~~~~~~~~~
      |                                            fmpq_mat_ncols
./dmat-qq-interface-flint.hpp: In member function ‘long int FlintZZMat::numRows() const’:
./dmat-qq-interface-flint.hpp:34:33: error: ‘fmpz_mat_nrows’ was not declared in this scope; did you mean ‘fmpq_mat_nrows’?
   34 |   long numRows() const { return fmpz_mat_nrows(mMatrix); }
      |                                 ^~~~~~~~~~~~~~
      |                                 fmpq_mat_nrows
./dmat-qq-interface-flint.hpp: In member function ‘long int FlintZZMat::numColumns() const’:
./dmat-qq-interface-flint.hpp:35:36: error: ‘fmpz_mat_ncols’ was not declared in this scope; did you mean ‘fmpq_mat_ncols’?
   35 |   long numColumns() const { return fmpz_mat_ncols(mMatrix); }
      |                                    ^~~~~~~~~~~~~~
      |                                    fmpq_mat_ncols
./dmat-qq-interface-flint.hpp: In static member function ‘static void FlintZZMat::to_fmpz_mat(const DMatZZGMP&, fmpz_mat_struct*)’:
./dmat-qq-interface-flint.hpp:46:24: error: ‘fmpz_mat_entry’ was not declared in this scope; did you mean ‘fmpq_mat_entry’?
   46 |           fmpz_set_mpz(fmpz_mat_entry(result_mat, r, c), &(*it));
      |                        ^~~~~~~~~~~~~~
      |                        fmpq_mat_entry
./dmat-qq-interface-flint.hpp: In static member function ‘static void FlintZZMat::from_fmpz_mat(fmpz_mat_struct*, DMatZZGMP&)’:
./dmat-qq-interface-flint.hpp:56:32: error: ‘fmpz_mat_entry’ was not declared in this scope; did you mean ‘fmpq_mat_entry’?
   56 |           fmpz_get_mpz(&(*it), fmpz_mat_entry(mat, r, c));
      |                                ^~~~~~~~~~~~~~
      |                                fmpq_mat_entry
./dmat-lu-qq.hpp: In member function ‘size_t DMatLinAlg<M2::ARingQQGMP>::rank()’:
./dmat-lu-qq.hpp:23:5: error: ‘fmpz_mat_init’ was not declared in this scope; did you mean ‘fmpq_mat_init’?
   23 |     fmpz_mat_init(m1, A.numRows(), A.numColumns());
      |     ^~~~~~~~~~~~~
      |     fmpq_mat_init
./dmat-lu-qq.hpp:25:17: error: ‘fmpz_mat_rank’ was not declared in this scope; did you mean ‘nmod_mat_rank’?
   25 |     size_t rk = fmpz_mat_rank(m1);
      |                 ^~~~~~~~~~~~~
      |                 nmod_mat_rank
./dmat-lu-qq.hpp:26:5: error: ‘fmpz_mat_clear’ was not declared in this scope; did you mean ‘fmpq_mat_clear’?
   26 |     fmpz_mat_clear(m1);
      |     ^~~~~~~~~~~~~~
      |     fmpq_mat_clear
./dmat-lu-qq.hpp: In member function ‘void DMatLinAlg<M2::ARingQQGMP>::matrixPLU(std::vector<long unsigned int>&, Mat&, Mat&)’:
./dmat-lu-qq.hpp:78:5: error: ‘fmpz_mat_fflu’ was not declared in this scope; did you mean ‘fmpz_mat_t’?
   78 |     fmpz_mat_fflu(LU.value(),
      |     ^~~~~~~~~~~~~
      |     fmpz_mat_t
./dmat-lu-qq.hpp:112:39: error: ‘fmpz_mat_entry’ was not declared in this scope; did you mean ‘fmpq_mat_entry’?
  112 |                 fmpq_set_fmpz_frac(b, fmpz_mat_entry(LU.value(), r, c), den);
      |                                       ^~~~~~~~~~~~~~
      |                                       fmpq_mat_entry
./dmat-lu-qq.hpp:125:45: error: ‘fmpz_mat_entry’ was not declared in this scope; did you mean ‘fmpq_mat_entry’?
  125 |                                             fmpz_mat_entry(LU.value(), r, c));
      |                                             ^~~~~~~~~~~~~~
      |                                             fmpq_mat_entry
./dmat-lu-qq.hpp: In member function ‘bool DMatLinAlg<M2::ARingQQGMP>::inverse(Mat&)’:
./dmat-lu-qq.hpp:211:5: error: ‘fmpz_mat_init’ was not declared in this scope; did you mean ‘fmpq_mat_init’?
  211 |     fmpz_mat_init(matZZ, nrows, nrows);
      |     ^~~~~~~~~~~~~
      |     fmpq_mat_init
./dmat-lu-qq.hpp:215:18: error: ‘fmpz_mat_inv’ was not declared in this scope; did you mean ‘fmpq_mat_inv’?
  215 |     int result = fmpz_mat_inv(invZZ, den, matZZ);  // sets invZZ, den
      |                  ^~~~~~~~~~~~
      |                  fmpq_mat_inv
./dmat-lu-qq.hpp:224:5: error: ‘fmpz_mat_clear’ was not declared in this scope; did you mean ‘fmpq_mat_clear’?
  224 |     fmpz_mat_clear(matZZ);
      |     ^~~~~~~~~~~~~~
      |     fmpq_mat_clear
./dmat-lu-qq.hpp: In member function ‘size_t DMatLinAlg<M2::ARingQQGMP>::kernel(Mat&)’:
./dmat-lu-qq.hpp:235:5: error: ‘fmpz_mat_init’ was not declared in this scope; did you mean ‘fmpq_mat_init’?
  235 |     fmpz_mat_init(matZZ, A.numRows(), A.numColumns());
      |     ^~~~~~~~~~~~~
      |     fmpq_mat_init
./dmat-lu-qq.hpp:239:20: error: ‘fmpz_mat_nullspace’ was not declared in this scope; did you mean ‘nmod_mat_nullspace’?
  239 |     long nullity = fmpz_mat_nullspace(kerZZ, matZZ);
      |                    ^~~~~~~~~~~~~~~~~~
      |                    nmod_mat_nullspace
./dmat-lu-qq.hpp:245:37: error: ‘fmpz_mat_entry’ was not declared in this scope; did you mean ‘fmpq_mat_entry’?
  245 |           kerQQ.set_from_fmpz(r, c, fmpz_mat_entry(kerZZ, r, c));
      |                                     ^~~~~~~~~~~~~~
      |                                     fmpq_mat_entry
./dmat-lu-qq.hpp:249:5: error: ‘fmpz_mat_clear’ was not declared in this scope; did you mean ‘fmpq_mat_clear’?
  249 |     fmpz_mat_clear(matZZ);
      |     ^~~~~~~~~~~~~~
      |     fmpq_mat_clear
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-macro-redefined’ may have been intended to silence earlier diagnostics
make[2]: *** [Makefile.common:33: NCAlgebras/NCF4.o] Error 1
make[2]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/Macaulay2/e'
make[1]: *** [Makefile:15: all-in-e] Error 2
make[1]: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2/Macaulay2'
make: *** [GNUmakefile:251: all-in-Macaulay2] Error 2
make: Leaving directory '/home/Username/builds/macaulay2/src/M2/M2'
==> ERROR: A failure occurred in build().
    Aborting...

Installing Flint library didn't help.

After looking into the files in the above message, I noticed the following error in ~/builds/macaulay2/src/M2/M2/Macaulay2/e/engine-includes.hpp:

 
#include <M2/config.h> ------> 'M2/config.h' file not found [clang-diagnostic-error]

even though config.h is present in ~/builds/macaulay2/src/M2/M2/include/M2. Any help will be greatly appreciated.

Last edited by atom_nucleus (2023-12-24 03:02:50)

Offline

#10 2023-12-30 06:18:54

atom_nucleus
Member
Registered: 2023-09-03
Posts: 6

Re: [SOLVED] Macaulay2 Installation Error

Finally, I am able to install Macaulay2. I included flint libraries to the files mentioned in the error, for example:

 #include <flint/fmpz.h> 

to aring-zz-flint.hpp etc. Then resumed building the package:

 makepkg -e 

I had to iterate this a few times, because not all files are shown in the above message. After adding the libraries, makepkg was able to build the package and I successfully installed it using pacman -U. I ran a few commands and there didn't seem to be any issue. Marking this as solved.

Offline

Board footer

Powered by FluxBB