-
Notifications
You must be signed in to change notification settings - Fork 11
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
MIPS64: Compilation error on Ubuntu 24.04 #29
Comments
I'm not a big cross compiler.. but I tried and ran into a different issue. $ make ARCH=mips64 CROSS_COMPILE=mips64-linux-gnu- |
Looks like missing glibc-headers |
I'm not seeing this on my platform. It does look like you invoked the build with a different tuple than what I tested with though: You may want to reinstall the MIP64 toolchain with |
Yes, testing with a different distro - running on RHEL-9.1. |
Should be the same (it's arch independent), looks like it's missing /usr/include from system header path, we could force include it using (-isystem) |
Pete (@pbatard) needs to test your two suggestions |
I never had the header issue in the first place, so From what I can tell, the core of the issue is that the MIPS linker is unable to properly resolve the gnu-efi/gnuefi/crt0-efi-mips64el.S Line 71 in 70b1421
And of course, the issue is we can't just hardcode My testing shows that the MIPS assembler does properly parse the And once again, this has nothing to do with a header error, which is something Nigel experienced on a different platform, but which I never got on Ubuntu. |
What happens if you re-write it as
I know that was in case Nigel tested it |
Good try though... |
Trying to force computation in case it helps with symbol resolution (with something like |
Considering that this is unlikely to be resolved soon, and that we are now getting the following from our GitHub Actions runs:
I think we have to look into removing MIPS builds from GitHub Actions (for which we don't run tests anyway, since we don't have a MIPS UEFI firmware for QEMU). So, unless there are objections, I will also be submitting a PR that does just that (which of course will not be removing MIPS support from gnu-efi, just the GitHub Actions builds). |
Ubuntu 24.04 binutils breaks mips64 compilation, per ncroxon#29, and we didn't run tests for MIPS anyway for lack of a UEFI firmware. With GitHub Actions in the process of switching to Ubuntu 24.04 as the base image, we proactively remove MIPS builds. Signed-off-by: Pete Batard <[email protected]>
When compiling gnu-efi for mips64 on Ubuntu 24.04 (
make ARCH=mips64 CROSS_COMPILE=mips64el-linux-gnuabi64-
), the following error is produced when building the apps:This is likely to impact us with automated builds when GitHub Actions switches their
ubuntu-latest
builder from 22.04 to 24.04 (and this issue was actually discovered when I tested some builds with GitHub Actions on theirubuntu-24.04
builder).The text was updated successfully, but these errors were encountered: