-
Notifications
You must be signed in to change notification settings - Fork 32
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
Problem building flint #13
Comments
The cause of the problem is apparently something in newer versions of cython. The error does not seem to occur with cython <= 0.27. |
I was able to get this to work with cython == 0.27.3. I had problems with earlier version in python 3.8 and later versions hit the error shown above. |
I am also hitting this error now and can no longer build python-flint :-( This is clearly a cython bug. It may well be that python-flint is broken somehow, but cython should give some reasonable description of the problem rather than crashing with an internal assertion error. |
Does it not work with Cython 0.27.3? This is a Cython bug and I thought I had seen an open issue for Cython with a much simpler reproducer although the issue isn't linked here. From memory it was reported but nothing had been done to debug it. Probably bisecting to find the first problematic Cython commit would be helpful. |
Yeah, possibly. I have Cython 0.29.23 on my system after upgrading my Linux distribution. |
The build scripts I added can build a wheel with all versions pinned so should still work with the same versions: |
(Maybe the numpy version should have been pinned but I didn't have any issues with that) |
I just checked that the wheel build script still works on OSX. Just run $ bin/build_dependencies_unix.sh
$ bin/build_wheel.sh That used to work on both OSX and Linux. At least for me the wheel needs to be renamed (change the OSX version) because pip/setuptools does not recognise recent OSX versions but otherwise it works fine. It should also be possible to build the dependencies with diff --git a/bin/build_variables.sh b/bin/build_variables.sh
index 027532c..9042685 100644
--- a/bin/build_variables.sh
+++ b/bin/build_variables.sh
@@ -14,7 +14,7 @@ PREFIX=$(pwd)/.local
mkdir -p $PREFIX
GMPVER=6.2.1
-YASMVER=1.3.1
+YASMVER=1.3.0
MPIRVER=3.0.0
MPFRVER=4.1.0
FLINTVER=2.7.1 I'm not sure how that mistake crept in because I can't see any evidence that there ever was a 1.3.1 release of YASM... After fixing the YASM version building MPIR on OSX fails with a configure error.
The MPIR
The configure checks in a few of these libraries are quite flakey under clang I think because it defaults to C99 rather than C89. |
There is a possible workaround in b3eb354. |
The orginal issue is "fixed" now. Probably it was/is a cython bug but in any case with current python-flint and current cython you should not see this problem. To build with pip you should first install |
I am getting the following error (installing via
pip install .
but similar error appears for the other methods suggested here https://fredrikj.net/python-flint/setup.html )The text was updated successfully, but these errors were encountered: