-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Disable gdbgui for python >=3.11 as it´s incompatible #25739
Conversation
PR #25739: Size comparison from 3edd101 to 2240db2 Decreases (1 build for cc32xx)
Full report (4 builds for cc32xx, mbed, qpg)
|
jinja2<3.1 | ||
itsdangerous<2.1 | ||
python-socketio<5 ; python_version < "3.11" | ||
gdbgui==0.13.2.0 ; platform_machine != 'aarch64' and sys_platform == 'linux' and python_version < "3.11" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't gdbgui
needed for idf.py build
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bzbarsky-apple gdbgui
is needed for idf.py build
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to effectively say "if you use python 3.11, you will not be able to build esp examples". However it also starts allowing any other non-esp builds ... so it seems better than before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bzbarsky-apple
gdbgui
is needed foridf.py build
Not sure about that, espressif-idf removed it as well:
see: espressif/esp-idf@2685a0a
and: espressif/esp-idf@a816dfb
as well as the issue here: espressif/esp-idf#10116
i think it is only used, when you run idf.py gdbgui
which won´t work with python 3.11 as gdbgui does not support Python 3.11+
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue with older esp is that idf.py validates the environment, specifically when we do a cmake generate
. So even though we would compile just fine, we fail cmake at start because gdbui is missing :(
We did complain to ESP and were told that indeed this was removed in 5.0 I believe ... still waiting to get matter updated to the latest SDK and hoping then this will go away.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andy31415 IDF 5.0 is currently supported with connectedhomeip and examples should compile (#24720 #24983). Although, we have not officially moved to it as there may be some customers who still wish to use IDF v4.4 and not change at the last moment.
Will accepting this patch result into build failure for ESP builds for v4.4.x with Python 11?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With python 11 the build fails no matter what: without this patch it fails trying to install gdbui, with this patch it will fail at idf.py build
time due to lack of gdbui.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This patch however allows bootstrap and compile for other environments ... so while esp32 will fail on py11 no matter what, without this patch everything else fails, with this patch others may pass (e.g. linux builds or other platforms that are not esp)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think ideally we would have something that very clearly fails with an actionable error (e.g. "python 3.11 is not supported") in the cases when we really can't compile with it, while compiling in other cases. Our current errors are completely inscrutable.
If we can't do that, I agree that this is probably better than nothing....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dhrishi - what should we do here? as this does not make things worse, it seems it should be acceptaable.
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
In the mean time we disable gdbgui globally in our builds and patched esp-idf dependencies. |
also #28326 moved to esp idf 5.1 and removed gdbgui completely. |
GDBGUI is incompatible with Python >= 3.11 see cs01/gdbgui#447
and the similar fix done in esp-idf here:
espressif/esp-idf@f9e5272