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

Fix ubuntu 21.10 build #391

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

ChrisMacGregor
Copy link

This is a minimal set of changes to get the build to work on Ubuntu 21.10, which (based on the numerous posts, issues, questions, etc. that I found in the course of figuring out how to get this to build) would apparently save a lot of people a lot of trouble. The MicroPython ESP8266 port points to your repo, so anyone trying to follow those instructions is going to run into these same problems.

isl.gforge.inria.fr seems to no longer work.

This is from: pfalcon#386
…no longer

available from the one that had been used.

NOTE: The reason the old location didn't work is that expat-2.1.0.tar.gz on sourceforge had been renamed to "expat-2.1.0-RENAMED-VULNERABLE-PLEASE-USE-2.3.0-INSTEAD.tar.gz"... I considered seeing if it would work using 2.3.0 as suggested, but 2.3.0 similarly redirects to 2.4.1, and the immediate goal is to get this stuff to build with minimally intrusive changes.

However, it would probably be wise to switch to a newer expat!
…gcc (e.g. gcc 11.2 on Ubuntu 21.10).

The error was:

.../esp-open-sdk/crosstool-NG/.build/src/gcc-4.8.5/gcc/reload1.c:89:24: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
…y fixing gdb to not use an internal-only API.

As suggested by canardos in their 2018-08-28 comment on pfalcon#339
applying (by hand) this patch: https://sourceware.org/legacy-ml/gdb-patches/2018-05/msg00863.html
to gdb/python.c fixed the issue.  This patch is the diff that resulted.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant