-
Notifications
You must be signed in to change notification settings - Fork 58
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
Cannot build in Ubuntu with gcc-7 and gcc-8 #188
Comments
I took a quick look at this, and I have a patch (see below). The issue is that the Python MRO is freeing an object it is using. This started to happen with the change
(which later was cherry-picked to the Python 3.8 branch). I do not understand how the Python MRO works, but this looks unrelated to what And I found one place that looked suspicious. Changing this as in the patch
makes the plugin work again, although I have only tested with some simple scripts (using Python 3.9 and GCC 8.5). |
Oh nice to see this patch, I did not see that before, my solution was to strip out the entire metaclass #192 |
The Python problem giving us |
Hi, I'm trying to compile the gcc-python-plugin. I tried with both gcc-7 and gcc-8. I'm using Python 3.8 and building with
make PYTHON=python3.8 PYTHON_CONFIG=python3.8-config
The first problem is related to this error:
I thought a workaround is to replace
-Werror
with-Wno-error
in the Makefile.This generates the
python.so
but fails in the demo as followsAny hints would be highly appreciated. Thanks.
The text was updated successfully, but these errors were encountered: