-
-
Notifications
You must be signed in to change notification settings - Fork 21.8k
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
Linux cross-compilation with Clang (use_llvm=yes
) doesn't work out of the box
#103251
Comments
I think the problem is just that cross-compilation with Clang isn't supported out of the box. The build is done for the That's also why official Godot builds made with GCC compiled specifically for arm32 don't have this issue. |
This is strange, calls to this function is in the |
huf_decompress.o
use_llvm=yes
) doesn't work out of the box
Seems like |
Yeah #64366 addresses that but needs proper review to make sure the chosen architectures are the ones we actually target. |
Probably only partially, usually default toolchain is not capable of cross compiling, and won't have any libraries to link. But it should at least produce error if wrong tools are used. |
I removed this from the 4.4 priorities as it's not actually a regression, it's a pre-existing issue that was just made more obvious by #96303. Even before that PR, the builds created with |
Tested versions
System information
Fedora 41, Clang 19.1.7
Issue description
Cross-compiling Godot on Linux for another Linux arch with Clang doesn't work out of the box. No
--target
or--sysroot
arguments are passed, and no check if performed to confirm that the toolchain is properly setup.This was initially noticed while trying to cross-compile for
arm32
fromx86_64
, where somex86_64
code gets compiled in zstd:Fails with:
Steps to reproduce
Minimal reproduction project (MRP)
n/a
The text was updated successfully, but these errors were encountered: