ahgamut / superconfigure

wrap autotools configure scripts to build with Cosmopolitan Libc
The Unlicense
159 stars 22 forks source link

zsh.com does not automatically run ape executables on M1 Mac #15

Closed mrdomino closed 6 months ago

mrdomino commented 7 months ago
% make o/aarch64/examples/hello.com
% o/aarch64/examples/hello.com
zsh: exec format error: o/aarch64/examples/hello.com
% ape o/aarch64/examples/hello.com
hello world

Was anything special done to bash.com to make it support this? If so then the same thing needs done to zsh.com. If not then we should figure out why zsh talks funny and fix it.

jart commented 7 months ago

Do you have ape installed to /usr/local/bin/ape?

jart commented 7 months ago

The special thing happens in our execve() implementation which should automatically force zsh to be able to run APE binaries. Try posting the --strace log.

mrdomino commented 6 months ago

It's not happening on the current version of zsh, so I'm going to close this as completed.