I’m trying to compile OpenELEC, a minimal buildroot based distribution, under a container based on dock0/arch.
This works great, as long as I do the compilation in the container’s own filesystem. If I try to compile on my external disk which is connected with -v, I can get it compiled but some of the resulting binaries have issues loading shared libraries:
kodi.bin: error while loading shared libraries: libvorbisenc.so.2
I think it’s probably related to SECCOMP or SELINUX, as googling shows similar problems from people who are trying to run binaries off storage mounted with the “noexec” option. In fact, I need to remount my external drive “exec” before compiling, which makes sense. However, something is corrupting the compiled binaries.
I’ve tried using --cap-add=all and every --security-opt, and the container is running --privileged. Any ideas how to resolve this so I can compile binaries on external storage?