-
-
Notifications
You must be signed in to change notification settings - Fork 185
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
CPython integration help needed #689
Comments
I'm using micropython in other projects with good success, but those embedded systems don't have deep dependency trees. I'll poke at cpython to see if there is an easy way to apply the fix from 360651 |
I first build a native version for the build machine and then build a cross compiled version using the native as the
Another problem is that python wants openssl, which is a massive dependency. |
Yeah, the wrong compiler is definitely going to make this a mess:
|
Oops, I swapped the
Takes forever due to warnings in |
@osresearch : Anything practical to provide here to help fix things upstream? |
I was idly wondering about building a fakeroot environment so that the build environment is "native" and doesn't have the cross compilation issues. This would mean building a bootstrap compiler to build the musl native compiler, although since we have busybox already built for musl we have most of the rest of the environment that we would need. |
@osresearch : ping? |
Some progress upstream https://bugs.python.org/issue45881 |
Was able to compile. 13mb static binary unpacked and unstripped, built only when host provides the same python version, so PoC under 3.9.2 |
Not bad, 800k stripped cost, compressed under intrd with xz |
Well, this is just the interpreter alone. Still not bad, but still not ready, everything else is missing and a lot of errors are still happening for Buildroot seems to be used in other cross-compiling environments https://github.com/minghuadev/minecraft-tests/blob/master/other-p2js/arm-cross-python-386/readme-buildroot-howto |
Still some issues upstream with musl-cross-make and python's assumptions, building target against host's buildstack, not defined one per environment variables, autotool config being faulty and hacks needed, pending upstream. python/cpython#24502 As of today with 3.9.2, python tries to link against host's libc and does not respect libc path given at configure step, resulting in build failing. Details in WiP inclusion PR at #1216 (comment) |
Seems like the following might fix the problem and OpenWrt is a good source for those kind of issues
|
Opened issue python/cpython#97842 |
python/cpython#107221 seem to fix triplet and libc fixation fixing python/cpython#97842 Might be time to retry! |
Micropython would not fit the bill of wyng dependencies in the long run.
CPython could work with additional space freed with modified IFD and Neutered ME, but I would need to understand how to properly cross-compile it.
Outcome would be chipsec inclusion, wyng-backups inclusion permitting to have factory disk restore/integrity validation inside of Heads.
Linked #233
The text was updated successfully, but these errors were encountered: