Skip to content
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

Cross compile errors (see below please) #17

Open
ghost opened this issue Apr 13, 2023 · 3 comments
Open

Cross compile errors (see below please) #17

ghost opened this issue Apr 13, 2023 · 3 comments

Comments

@ghost
Copy link

ghost commented Apr 13, 2023

Screenshot from 2023-04-12 18-03-16
So upon trying to cross compile the sources there appears to be some sort of issue here with missing functions. Unless I'm not doing something correctly this kind of sucks because I refuse to learn the Intel/AMD platforms just to get a working EFI bootloader made

@milkylainen
Copy link

Yep. Having the same errors for v7a arm cross-builds here with .17
iirc I don't think I had these errors when using .15. Probably anecdotal though.
Toolchain is a rather modern 12.2.0 with 2.37 glibc, ct-ng based.

@milkylainen
Copy link

milkylainen commented May 6, 2023

After looking into it I think the compile error is because gnu-efi doesn't carry the needed set of ARM __aeabi* implementations with regard to floating point. It is freestanding after all. Anyway.. print.c uses floats and needs them. So either gnu-efi needs to implement them or you need softfp or hard as -mfloat-abi. A pure soft implementation won't currently do iiuc.

-mfloat-abi=softfp

@ghost
Copy link

ghost commented May 23, 2023

Screenshot from 2023-04-12 18-03-16 So upon trying to cross compile the sources there appears to be some sort of issue here with missing functions. Unless I'm not doing something correctly this kind of sucks because I refuse to learn the Intel/AMD platforms just to get a working EFI bootloader made

You need the arm-linux-gnueabihf compiler for this. Using this particular compiler and running a fresh make clean then re-running make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- will resolve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant