-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Exec format error when cross compiling #3782
Comments
What is happening here is that Meson is trying to use your C++ compiler to compile a test application to see that it is working. For some reason the executable for the compiler you have specified is not a valid executable. Common reasons for this include having a corrupted executable (maybe because it is an empty file for some reason) or that the executable is of incorrect format. These include running x86 _64 (or ARM) executables on 32 bit platforms, trying to run Windows apps on Linux without Wine and the requisite binfmt magic or mixing Cygwin/MinGW/VS/etc/etc binaries on Windows by accident (or by running Cygwin Python from Windows command shell or vice versa). Further debug would need more system information. The only advice I can give you right now is to try to run Unrelated to this, you can delete all entries in your cross file between Also, your values for |
That would be good to say when this error happens.
I did, the compiler works. Is there a way to see the command its using to invoke the compiler? I couldn't find any flags to see a log or verbose mode. |
Ok, so I see a meson-log.txt file in the build, which shows this:
Which is interesting. Why does it say the |
Are you setting |
I am setting them as part of the build environment in general as other build systems use these variable. |
So when I try to cross compile with meson, I get this error:
This is the cross file I am using:
Maybe there is something wrong with one of the settings, but it would be nice if meson would let me know which one failed.
The text was updated successfully, but these errors were encountered: