Processes started by cross emulator can't exec other binaries (?) #119885
Labels
0.kind: bug
6.topic: cross-compilation
Building packages on a different sort platform than than they will be run on
Describe the bug
Consider the following expression where
koka
is a shell script created usingwrapProgram
:This will fail with the following error message:
At first I suspected that qemu can't deal with shebang scripts for some reason since swapping out
koka
for.koka-wrapped
works (at least the binary runs, but fails due to missing certain environment variables). But the issue seems to be even worse than that:
${crossPkgs.bash} -c ${crossPkgs.koka}/bin/koka
doesn't work${crossPkgs.bash} -c ${crossPkgs.koka}/bin/.koka-wrapped
doesn't workSeems like it's pretty much impossible for a process started by the emulator to call
exec
without running into executable format issues. Not sure if this is fixable without launching a full VM?!Note that this makes most sense to test against #119468.
Notify maintainers
cc @Ericson2314 @matthewbauer @siraben
The text was updated successfully, but these errors were encountered: