-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
Can't compile gdb with Python 3.6 #73084
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
Comments
Trying to compile gdb, with python support and by having it depend on Python 3.6 produces an error that the HAVE_LONG_LONG has been redefined [0]. This seems to have been introduced by this commit [1]. I'm in no way expert on gdb, but from what I could deduct from the build logs, the #define HAVE_LONG_LONG line in pyport.h [2] is the issue, as gdb also sets the same constant to 1 [3][4] I build python and gdb as rpm's, but I can't verify if it happens as well outside this environment. Could someone more experienced with gdb take a look at it? The issue seems to be fixed by wrapping the #define HAVE_LONG_LONG with an #ifndef HAVE_LONG_LONG Attaching a patch for consideration [1] https://hg.python.org/cpython/rev/cf6e9968ebb7/ [2] https://hg.python.org/cpython/file/tip/Include/pyport.h#l42 |
New changeset 4745d801cae2 by Benjamin Peterson in branch '3.6': New changeset 1afc3f4f5502 by Benjamin Peterson in branch 'default': |
I think we should take this for 3.6. |
The pushed change 4745d801cae2 LGTM for a cherry-pick in 3.6.0. |
Oh, the problem has introduced a crash on OpenIndiana: Current thread 0x0000000000000001 (most recent call first): http://buildbot.python.org/all/builders/AMD64%20OpenIndiana%203.x/builds/37/steps/test/logs/stdio |
The OpenIndiana uses gcc and has the long long type. Extract of the ./configure script: |
Why do you think this change caused that breakage? That bot looks like it's been broken for days. This change should have no behavior change whatsoever for Python itself. |
It's right that the buildbot is broken for years: But the error changed, since the build 37, tests started to fail with a very specific error: "Fatal Python error: Aborted". The build 37 contains your change 1afc3f4f5502 and two other changes which only modify the Doc/ directory. Sorry, I don't know more :-/ Maybe it's a false alarm, but it's worth to investigate. |
New changeset d6c8803c55b4 by Benjamin Peterson in branch '3.6': New changeset 9d0765c22bed by Ned Deily in branch '3.6': |
[cherrypicked for 3.6.0rc2] |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: