Skip to content

Fix ubuntu 21.10 build#391

Open
ChrisMacGregor wants to merge 6 commits intopfalcon:masterfrom
ChrisMacGregor:fix-ubuntu-21.10-build
Open

Fix ubuntu 21.10 build#391
ChrisMacGregor wants to merge 6 commits intopfalcon:masterfrom
ChrisMacGregor:fix-ubuntu-21.10-build

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.
@thanibee
Copy link

thanibee commented Dec 2, 2024

Thank you ChrisMacGregor. Compiled perfectly in WSL (debaian)

@dk2233
Copy link

dk2233 commented Oct 25, 2025

Hi, Maybe this could be merged to master?

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.

3 participants