[Snek] ev3 build: musl or static older libc, or ?
dottedmag at dottedmag.net
Wed Feb 19 13:38:13 PST 2020
I'm preparing a patch with a skeleton of EV3 support, and stumbled into
Stable ev3dev (distro for Lego EV3) is based on Debian stretch, with
Unstable is now at glibc 2.29, so naively cross-compiling causes
I've tried two ways to work around it. Both work, which one to choose?
Or something else?
1. Build musl toolchain (e.g. https://github.com/GregorR/musl-cross) and
Upsides: works with unstable, resulting binaries are static.
Downsides: takes ~20 minutes to build one
2. Install ARM cross-compiler and libc from stretch, and use it to
Upsides: it's the toolchain used by the ev3dev.
Downsides: another Dockerfile just for the sake of ev3?
More information about the Snek