FS#69926 - [gnu-efi] provide IA32 UEFI libraries and headers

Attached to Project: Arch Linux
Opened by nl6720 (nl6720) - Tuesday, 09 March 2021, 16:39 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 03 October 2023, 04:57 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
Please provide IA32 UEFI libraries and headers.

I think it should be possible accomplish this in the same package by duplicating the make commands and adding ARCH variable (i.e. `make ARCH=x86_64 ...` and `make ARCH=ia32 ...`). But this links things very wrongly as can be observed by the failure to build actual EFI applications with `make -C apps`. It can result (depending on the `make` order), in:

ld: skipping incompatible ../lib/libefi.a when searching for -lefi

ld: i386 architecture of input file `../lib/libefi.a(initplat.o)' is incompatible with i386:x86-64 output
ld: i386 architecture of input file `../lib/libefi.a(math.o)' is incompatible with i386:x86-64 output

ld: i386:x86-64 architecture of input file `../lib/libefi.a(initplat.o)' is incompatible with i386 output
ld: i386:x86-64 architecture of input file `../lib/libefi.a(math.o)' is incompatible with i386 output

Additional info:
* package version(s)
* config and/or log files etc.
* link to upstream bug report, if any
gnu-efi 3.0.12-1

Steps to reproduce:
This task depends upon

Closed by  Toolybird (Toolybird)
Tuesday, 03 October 2023, 04:57 GMT
Reason for closing:  None
Additional comments about closing:  "There's no use case for this."
Comment by David Runge (dvzrv) - Friday, 08 April 2022, 18:48 GMT
@nl6720: Thanks for the report!

I guess we might need modifications to the Makefiles if they hardcode the target architectures/ lib locations.
I'll try to have a look!
Comment by David Runge (dvzrv) - Friday, 08 April 2022, 18:48 GMT
Hmm... possibly this makes more sense in a lib32-gnu-efi package though.
Comment by nl6720 (nl6720) - Saturday, 09 April 2022, 06:44 GMT
When systemd-boot gains mixed mode booting support, the systemd package should start shipping IA32 systemd-boot EFI binaries. I'm guessing that having systemd makedepend on a multilib package would not look good.
Comment by Buggy McBugFace (bugbot) - Tuesday, 08 August 2023, 19:11 GMT
This is an automated comment as this bug is open for more then 2 years. Please reply if you still experience this bug otherwise this issue will be closed after 1 month.
Comment by Buovjaga (Buovjaga) - Friday, 15 September 2023, 13:30 GMT
I noticed this recent commit: https://gitlab.archlinux.org/archlinux/packaging/packages/systemd/-/commit/52da3ec564ed2587ae15cf67ba45d405fc4a9d80
add make dependency on lib32-gcc-libs for ia32 UEFI binaries

systemd-boot got mixed mode support last year in https://github.com/systemd/systemd/commit/ebd4571e3142f9e1870302bc5bd29a5ff3a88423
Comment by nl6720 (nl6720) - Saturday, 16 September 2023, 07:03 GMT
systemd-boot doesn't use gnu-efi anymore, so solving this issue does not affect that use case.

Loading...