Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 912891 Details for
Bug 927826
sys-boot/grub-2.12-r2 fails to build on x32 (grub/efi/api.h:1117:3: error: X32 does not support ‘ms_abi’ attribute)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
0001-efi-stub-out-__grub_efi_api-when-GRUB_UTIL-is-define.patch (text/plain), 1.18 KB, created by
Mike Gilbert
on 2024-11-30 21:22:34 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Mike Gilbert
Created:
2024-11-30 21:22:34 UTC
Size:
1.18 KB
patch
obsolete
>From 40c63fa872322f2ed4beb31e0acf740a8f923cb3 Mon Sep 17 00:00:00 2001 >From: Mike Gilbert <floppym@gentoo.org> >Date: Sat, 30 Nov 2024 16:07:52 -0500 >Subject: [PATCH] efi: stub out __grub_efi_api when GRUB_UTIL is defined > >When building utils for x32, ms_abi is not a valid attribute. > >Bug: https://bugs.gentoo.org/945484 >Signed-off-by: Mike Gilbert <floppym@gentoo.org> >--- > include/grub/efi/api.h | 4 ++++ > 1 file changed, 4 insertions(+) > >diff --git a/include/grub/efi/api.h b/include/grub/efi/api.h >index b686e8afe..8b70be5e7 100644 >--- a/include/grub/efi/api.h >+++ b/include/grub/efi/api.h >@@ -590,6 +590,7 @@ typedef grub_efi_uintn_t grub_efi_status_t; > * annotation. (This includes protocols implemented by GRUB that are installed > * into the EFI protocol database.) > */ >+#if !defined(GRUB_UTIL) > #if defined(__i386__) > #define __grub_efi_api __attribute__((regparm(0))) > #elif defined(__x86_64__) >@@ -597,6 +598,9 @@ typedef grub_efi_uintn_t grub_efi_status_t; > #else > #define __grub_efi_api > #endif >+#else /* defined(GRUB_UTIL) */ >+#define __grub_efi_api >+#endif > > #define GRUB_EFI_ERROR_CODE(value) \ > ((((grub_efi_status_t) 1) << (sizeof (grub_efi_status_t) * 8 - 1)) | (value)) >-- >2.47.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 927826
:
888559
| 912891