ipxe-qemu-256k-compat ftbfs in focal
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ipxe-qemu-256k-compat (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Focal |
Fix Released
|
Low
|
Unassigned |
Bug Description
seen in the second focal test rebuild
https:/
ar: creating bin-x86_
util/elf2efi.c: In function ‘process_section’:
util/elf2efi.
337 | unsigned long flags = bfd_get_
| ^~~~~~~
| bfd_set_
util/elf2efi.
362 | section_memsz = bfd_section_size ( bfd, section );
| ^~~
| |
| bfd * {aka struct bfd *}
In file included from util/elf2efi.c:32:
/usr/include/
1206 | bfd_section_size (const asection *sec)
| ~~~~~~~~~~~~~~~~^~~
util/elf2efi.
362 | section_memsz = bfd_section_size ( bfd, section );
| ^~~~~~~~~~~~~~~~
In file included from util/elf2efi.c:32:
/usr/include/
1206 | bfd_section_size (const asection *sec)
| ^~~~~~~~~~~~~~~~
util/elf2efi.
372 | new->hdr.
| ^~~~~~~~~~~~~~~~~~~
| bfd_set_section_vma
make[2]: *** [Makefile.
make[2]: *** Waiting for unfinished jobs....
ranlib bin-x86_
rm bin-x86_
make[2]: Leaving directory '/<<BUILDDIR>
dh_auto_build: error: cd src && make -j4 V=1 NO_WERROR=1 VERSION=
make[1]: *** [debian/rules:18: src/bin-
Changed in ipxe-qemu-256k-compat (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → High |
tags: | added: ftbfs rls-ff-incoming |
We are using a rather old upstream snapshot of ipxe: commit a25a16d dates back to April 2015. I guess this is because upstream didn't tag any release between 2010 and January 2, 2020, when version v1.20.1 was tagged.
The FTBFS does not happen with the latest upstream version, as the use of bfd has been dropped in 2016 by this commit:
https:/ /github. com/ipxe/ ipxe/commit/ efd5cf9aadcaf36 f45db5d1c305919 7a8479567c
While that's the commit fixing (actually, removing) the issue, I would not consider this "patch on a table" scenario, as at that point the codebase already diverged significantly from what we have in Ubuntu, plus it's difficult to tell what the code status was at that arbitrary point of the commit history.
It would be nice to ship v1.20.1 in Focal, but we are late in the cycle. The attached patch fixes the issue according to:
https:/ /wiki.gentoo. org/wiki/ Binutils_ 2.34_porting_ notes/undefined _reference_ to_bfd_ get_section_ *