Skip to content

Flint 3.2.0 #3697

@mahrud

Description

@mahrud

Apparently M2 doesn't build with the version of Flint released a few days ago: Macaulay2/homebrew-tap#261

==> cmake --build M2/BUILD/build-brew --target M2-core M2-emacs
Last 15 lines from /Users/ben/Library/Logs/Homebrew/macaulay2/06.cmake:
In file included from /tmp/macaulay2-20250315-29886-cyar5j/M2-release-1.24.11/M2/Macaulay2/e/aring-glue.hpp:7:
In file included from /tmp/macaulay2-20250315-29886-cyar5j/M2-release-1.24.11/M2/Macaulay2/e/aring-translate.hpp:24:
In file included from /tmp/macaulay2-20250315-29886-cyar5j/M2-release-1.24.11/M2/Macaulay2/e/aring-zzp-flint.hpp:22:
In file included from /opt/homebrew/opt/flint/include/flint/nmod.h:22:
In file included from /opt/homebrew/opt/flint/include/flint/ulong_extras.h:26:
/opt/homebrew/opt/flint/include/flint/longlong.h:71:9: warning: '__ll_highpart' macro redefined [-Wmacro-redefined]
   71 | #define __ll_highpart(t) ((ulong) (t) >> (FLINT_BITS / 2))
      |         ^
/opt/homebrew/Cellar/givaro/4.2.0_1/include/recint/reclonglong.h:48:9: note: previous definition is here
   48 | #define __ll_highpart(t) ((UWtype) (t) >> (W_TYPE_SIZE / 2))
      |         ^
3 warnings generated.

Moreover, it seems like Factory 4.4.0 (which is ~a year old) may also have an issue: Macaulay2/homebrew-tap#260

libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I./include -I./include -I. -DFACTORY_BUILDING_DLL -I/usr/local/opt/flint/include/ -I/usr/local/opt/ntl/include -I/usr/local/opt/gmp/include -DSING_NDEBUG -DOM_NDEBUG -std=c++11 -pipe -fno-common -g0 -O3 -Wno-unused-function -Wno-trigraphs -Wno-unused-parameter -Wunknown-pragmas -Wno-unused-variable -fomit-frame-pointer -fwrapv -fvisibility=default -finline-functions -fno-exceptions -fno-threadsafe-statics -funroll-loops -fno-rtti -Qunused-arguments -c facHensel.cc -o facHensel.o >/dev/null 2>&1
facMul.cc:1258:3: error: use of undeclared identifier 'flint_mpn_zero'
  flint_mpn_zero (result->coeffs, d*(degAy+1));
  ^
facMul.cc:1267:5: error: use of undeclared identifier 'flint_mpn_copyi'
    flint_mpn_copyi (result->coeffs+k, buf->coeffs, nmod_poly_length(buf));
    ^
2 errors generated.
make[2]: *** [facMul.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
libtool: compile:  clang++ -DHAVE_CONFIG_H -I. -I./include -I./include -I. -DFACTORY_BUILDING_DLL -I/usr/local/opt/flint/include/ -I/usr/local/opt/ntl/include -I/usr/local/opt/gmp/include -DSING_NDEBUG -DOM_NDEBUG -std=c++11 -pipe -fno-common -g0 -O3 -Wno-unused-function -Wno-trigraphs -Wno-unused-parameter -Wunknown-pragmas -Wno-unused-variable -fomit-frame-pointer -fwrapv -fvisibility=default -finline-functions -fno-exceptions -fno-threadsafe-statics -funroll-loops -fno-rtti -Qunused-arguments -c facSparseHensel.cc -o facSparseHensel.o >/dev/null 2>&1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

@d-torrance do you mind producing an archive of Factory-4.4.1 on the website?
This is a regular pain in the neck.

Metadata

Metadata

Assignees

No one assigned

    Labels

    build issueplatform specific issues involving compiling M2, generating examples, or running tests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions