Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails with Flint 3.0.0 #2972

Closed
mahrud opened this issue Oct 21, 2023 · 2 comments
Closed

Build fails with Flint 3.0.0 #2972

mahrud opened this issue Oct 21, 2023 · 2 comments
Labels
build issue platform specific issues involving compiling M2, generating examples, or running tests

Comments

@mahrud
Copy link
Member

mahrud commented Oct 21, 2023

I tried building with the new Flint release and ran into an error:

/home/mahrud/Projects/M2/quickfix/M2/Macaulay2/e/aring-zz-flint.hpp:46:38: fatal error: use of undeclared identifier 'fmpz_get_ui'; did you mean '__gmpz_get_ui'?
    return static_cast<unsigned int>(fmpz_get_ui(&a));
                                     ^~~~~~~~~~~
                                     __gmpz_get_ui
/home/linuxbrew/.linuxbrew/opt/gmp/include/gmp.h:1774:1: note: '__gmpz_get_ui' declared here
mpz_get_ui (mpz_srcptr __gmp_z) __GMP_NOTHROW
^
/home/linuxbrew/.linuxbrew/opt/gmp/include/gmp.h:835:20: note: expanded from macro 'mpz_get_ui'
#define mpz_get_ui __gmpz_get_ui
                   ^
1 error generated.

I didn't spend any time debugging, but this should be treated soon because once Homebrew/homebrew-core#151985 is merged M2 will stop working if you upgrade Flint via Homebrew, for instance.

@mahrud mahrud added the build issue platform specific issues involving compiling M2, generating examples, or running tests label Oct 21, 2023
@d-torrance
Copy link
Member

Does including fmpz.h help?

@chenrui333
Copy link

chenrui333 commented Nov 2, 2023

FYI, we (homebrew) shipped flint v3 today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build issue platform specific issues involving compiling M2, generating examples, or running tests
Projects
None yet
Development

No branches or pull requests

3 participants