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

cross-gdb build broken #1

Open
binary1230 opened this issue Oct 26, 2021 · 2 comments
Open

cross-gdb build broken #1

binary1230 opened this issue Oct 26, 2021 · 2 comments

Comments

@binary1230
Copy link
Member

[INFO ]  Installing cross-gdb
[ERROR]    /opt/esp-open-sdk/esp-open-sdk/crosstool-NG/.build/src/gdb-7.10/gdb/python/python.c:1757:3: error: too few arguments to function '_PyImport_FixupBuiltin'
[ERROR]    make[5]: *** [Makefile:2517: python.o] Error 1
[ERROR]    make[4]: *** [Makefile:8755: all-gdb] Error 2
[ERROR]    make[3]: *** [Makefile:845: all] Error 2
[ERROR]
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing cross-gdb'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_debug_gdb_build[scripts/build/debug/300-gdb.sh@120]
[ERROR]  >>        called from: do_debug[scripts/build/debug.sh@35]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@646]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      'share/doc/crosstool-ng/crosstool-ng-1.22.0-71-g7a6451e0/B - Known issues.txt'

it's probably this.
pfalcon#339

as a workaround I just turned off gdb building since we don't need it for our fork, but, probably better to fix this the right way. when we figure it out, undo this commit:
Unit-e/crosstool-NG@0f3d04b

@binary1230 binary1230 changed the title fix cross-gdb build cross-gdb build broken Oct 26, 2021
@ChrisMacGregor
Copy link

This may be the fix you want:

https://github.com/ChrisMacGregor/esp-open-sdk/blob/builds-on-Ubuntu-21.10/1000-fix-build-python3.9.patch

I also ran into some other issues that needed patches. In case it is useful, the end result (which gets me a clean build on Ubuntu 21.10 of an apparently working toolchain) can be found here:

pfalcon#391
https://github.com/ChrisMacGregor/esp-open-sdk/tree/builds-on-Ubuntu-21.10
Tarball of built toolchain: https://github.com/ChrisMacGregor/esp-open-sdk/releases/tag/builds-on-Ubuntu-21.10

@binary1230
Copy link
Member Author

Hey nice! Might give this a shot soon. Cc @cnlohr in case he's interested too

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

No branches or pull requests

2 participants