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

Adding xPack arm-gcc toolchain for Python 3 support in GDB #45

Open
salkinium opened this issue Mar 14, 2023 · 2 comments
Open

Adding xPack arm-gcc toolchain for Python 3 support in GDB #45

salkinium opened this issue Mar 14, 2023 · 2 comments

Comments

@salkinium
Copy link
Contributor

salkinium commented Mar 14, 2023

The official arm-none-eabi-gdb-py only supports Python 2.7 and only up to GCC10. GCC11 and GCC12 has completely removed Python 2.7 support (since it's EOL) but didn't add Python 3 support, which sucks a little much.

So… I've looked around, and the xPack GNU Arm Embedded GCC seems to be the best alternative: it uses the official source tarball and adds Python 3 support, and builds both x64 and ARM64.

Would you be interested in adding and maintaining a arm-gcc-xpack formula for this?

You can try our simple formula here:

brew install modm-ext/modm/arm-gcc-xpack@12
@salkinium
Copy link
Contributor Author

Hm, the package seems to install an out-of-date SSL certificate into the Python3.11 installation, very weird:

 $ python3 -c 'import ssl; print(ssl.get_default_verify_paths().openssl_cafile)'
/Users/ilg/actions-runners/xpack-dev-tools/_work/arm-none-eabi-gcc-xpack/arm-none-eabi-gcc-xpack/build/darwin-arm64/aarch64-apple-darwin20.6.0/install/openssl/cert.pem

 $ brew uninstall arm-gcc-xpack@12
Uninstalling /opt/homebrew/Cellar/arm-gcc-xpack@12/12.2.Rel1... (6,499 files, 815.6MB)

 $ python3 -c 'import ssl; print(ssl.get_default_verify_paths().openssl_cafile)'
/opt/homebrew/etc/[email protected]/cert.pem

@ladislas
Copy link
Member

I've been looking into xpack myself but never got the time to try it.

I'm happy to review a PR! :)

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