Cross-Compiler auf Ubuntu 14.04.5 LTS unter Linux Subsystem für Windows

Cross-Compiler auf Ubuntu 14.04.5 LTS unter Linux Subsystem für Windows

Ich versuche, meinen Cross-Compiler (32-Bit) zu erstellen und auszuführen, kann die Binärdatei aber nicht ausführen. Ich erhalte eineExec-Formatfehler.

fileund readelfbehaupten, dass es sich um eine 32-Bit-ausführbare Datei handelt, aber ldddem widerspricht. Was übersehe ich hier? Das gleiche Verfahren funktioniert auf RedHat-basierten Hosts.

$ ./arm-none-linux-gnueabi-gcc -v
bash: ./arm-none-linux-gnueabi-gcc: cannot execute binary file: Exec format error

$ ldd arm-none-linux-gnueabi-gcc
not a dynamic executable

$ file arm-none-linux-gnueabi-gcc
arm-none-linux-gnueabi-gcc: ELF 32-bit LSB  executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, stripped

$ cat /etc/issue
Ubuntu 14.04.5 LTS \n \l

Antwort1

https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13377507-please-add-32-bit-elf-support-to-the-kernel

und hier ist die Antwort. 32-Bit-vorkompilierte Binärdateien funktionieren nicht unter dem Linux-Subsystem für Linux.

verwandte Informationen