-
Notifications
You must be signed in to change notification settings - Fork 821
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/android/prebuilts/misc/linux-x86/bison fails to run (Exec format error) #1687
Comments
BTW objdump -a bison bison: file format elf32-i386 mgross@marks-x1: |
Ah -- it's a 32-bit binary. WSL doesn't currently support 32-bit binaries ( #228 ). This would be a hack -- but could you try installing bison from apt and using Ubuntu's version? |
Marking as a duplicate of #390. |
Knowing the root cause is half the battle. I recomend this limitation to Bash on Windows be documented in getting started documentation. Thanks! I will attempt the hack this weekend. Maybe it will work. |
Yes. I had to replace it with the Ubuntu (64-bit) version. |
I am trying to build Android from the AOSP progject using Bash on windows. It looks like its getting close. However bash on windows has problems running the bison prebuilt tool.
To reproduce clone the prebuilts/misc git project and navigate to the bison folder and try to run bison.
945 git clone https://android.googlesource.com/platform/prebuilts/misc
946 cd misc/linux-x86/bison/
947 ls
948 ./bison
Expected results
./bison: ./bison: missing operand
Try
./bison --help
for more information.Actual results (with terminal output if applicable)
mgross@marks-x1:~/misc/linux-x86/bison$ ./bison
-bash: ./bison: cannot execute binary file: Exec format error
Your Windows build number
14986.rs_prerelease.161202-1928
Steps / All commands required to reproduce the error from a brand new installation
945 git clone https://android.googlesource.com/platform/prebuilts/misc
946 cd misc/linux-x86/bison/
947 ls
948 ./bison
Strace of the failing command
mgross@marks-x1:~/misc/linux-x86/bison$ strace ./bison
execve("./bison", ["./bison"], [/* 19 vars */]) = -1 ENOEXEC (Exec format error)
write(2, "strace: exec: Exec format error\n", 32strace: exec: Exec format error
) = 32
exit_group(1) =
Required packages and commands to install
git
See our contributing instructions for assistance.
The text was updated successfully, but these errors were encountered: