Open jfolz opened 2 years ago
I've had another go from a fresh checkout. Since musl-gcc
is available in the container I linked it to where the build process expects it:
mkdir -p /enroot/deps/dist/musl/bin/
ln -s /usr/bin/x86_64-alpine-linux-musl-gcc /enroot/deps/dist/musl/bin/musl-gcc
It appears to now build and install correctly, but the process is pretty hacky.
Yeah, right now the build vendors every dependencies including Musl.
We also need to patch musl-gcc
for static PIE.
Is there any reason why you want to use the toolchain from the container rather than the one that is vendored with Enroot?
No not really. Linking was just something easy I tried since the musl-gcc
binary wasn't built (or at least not copied to the expected path).
Hello! I'm struggling getting enroot to compile in an alpine container (also enroot in case that makes a difference). Some advice would be much appreciated.
I've adapted the instructions so far:
Compilation gets underway, but there's an issue in the
libbsd
dependency:Adding
#include <fcntl.h>
toflopen.c
letslibbsd
compile.However it seems like
musl
doesn't compile correctly now:There don't appear to be any errors in the
musl
build log, but the dist folder is basically empty:I've attached the full build log: enroot-build-log.txt