You are not logged in.
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-09-03 17:53:13)
Offline
Please post the full output from makepkg and the contents of config.log the failed configure call produced.
Offline
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
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
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
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
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
Obviously not, as logs figured out in detail.
Offline