-
Notifications
You must be signed in to change notification settings - Fork 7.5k
gcc: "Exec format error" - WSL in Windows 10 1803 #10420
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
Comments
Are you sure it is 64-bit VM? Could you provide the output of the following commands?
Further could you try for an other board? |
Hi there, It's not a VM, it's Subsystem for Linux on Windows: I assume it's supported since it's mentioned on the documentation here: I've tried running the QEMU_x86 board one suggested on the Getting Started page but it returns the same error. Here is the output of the requested commands:
Thank you |
No experience with WSL but it seems this is a known issue with WSL 1803: |
Good catch, from reading the bugs its broken on a couple versions. How can we suggest documentation improvements? It would be a good addition to have a warning about the broken windows versions. |
Due to some people loosing files from documents when updating to Windows 10 1809, the update is currently unavailable. I will wait for the update, do it and report back. |
@Ralms I tested 1809 and it fixes the issue as I mentioned here: microsoft/WSL#3154 (comment) I am closing this issue now. If you want to add this to the doc I suggest you sent a PR against this file: |
@carlescufi Thank you for the information. |
@Ralms thank you for submitting it! I will review it |
Even with the latest windows updates at 1809 I'm still getting Exec format error when compiling using a powerpc version of gcc. Anything I can do for more info? /bin/sh: 1: powerpc-604-linux-gnu-gcc: Exec format error OS Build 1809 |
Hello everyone.
I'm having an issue doing the first build with CMake and it's starting to discourage me to get into ZephyrOS development :(
My setup is the following:
Subsystem Linux on a Windows 10 1803 machine.
Using Ubuntu 18.04.1 LTS
cmake version 3.8.2
zephyr-sdk-0.9.3
Board Intel D2000 (although I don't think its relevant with this error)
I've followed these guides twice:
https://docs.zephyrproject.org/latest/getting_started/getting_started.html
https://docs.zephyrproject.org/latest/getting_started/installation_linux.html
And was trying to do the HelloWorld test from:
https://docs.zephyrproject.org/latest/boards/x86/quark_d2000_crb/doc/quark_d2000_crb.html
My issue is when I run:
~/zephyr/samples/hello_world/build$ cmake -GNinja -DBOARD=quark_d2000_crb ..
I get the following:
I've than ran:
/home/unixu/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/i586-zephyr-elf/i586-zephyr-elf-gcc --version
And I get:
-bash: /home/unixu/zephyr-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/i586-zephyr-elf/i586-zephyr-elf-gcc: cannot execute binary file: Exec format error
I've tried to search for this error in a lot of locations but it seems very generic and I'm stuck.
Sorry if this isn't the best location for this type of requests but I'm getting desperate.
Thank you for your help and time.
The text was updated successfully, but these errors were encountered: