fwupdate build fails on i386 with assertion fail ../../bfd/elf32-i386.c:5245
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
binutils |
Unknown
|
Unknown
|
|||
binutils (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
fwupdate (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
fwupdate appears to fail to build on i386 using 2.25.51.
[...]
Preparing to unpack .../binutils_
Unpacking binutils (2.25.51.
[...]
gcc -g -O2 -fstack-
fwupdate.c: In function 'allocate':
fwupdate.c:50:10: warning: cast to pointer from integer of different size [-Wint-
*addr = (void *)pageaddr;
^
In file included from /usr/include/
fwupdate.c: In function 'free':
fwupdate.c:63:43: warning: cast from pointer to integer of different size [-Wpointer-
rc = uefi_call_
/usr/include/
#define uefi_call_
fwupdate.c: In function 'apply_capsules':
fwupdate.c:525:11: warning: cast from pointer to integer of different size [-Wpointer-
^
/usr/include/
#define uefi_call_
fwupdate.c: In function 'read_file':
fwupdate.c:88:4: warning: 'b' may be used uninitialized in this function [-Wmaybe-
CopyMem(newb, b, bs * n_blocks);
^
fwupdate.c: In function 'efi_main':
fwupdate.c:160:3: warning: 'buf' may be used uninitialized in this function [-Wmaybe-
FreePool(buf);
^
fwupdate.c:130:8: note: 'buf' was declared here
void *buf;
^
gcc -nostdlib -Wl,--warn-common -Wl,--no-undefined -Wl,--fatal-
/usr/lib/
-T elf_ia32_efi.lds
/usr/bin/ld: BFD (GNU Binutils for Ubuntu) 2.25.51.20151022 assertion fail ../../bfd/
/usr/bin/ld: BFD (GNU Binutils for Ubuntu) 2.25.51.20151022 assertion fail ../../bfd/
collect2: error: ld returned 1 exit status
make[3]: *** [fwupdate.so] Error 1
Looks similar to bug 1510067, but the upload of binutils -0ubuntu3 in xenial doesn't seem to fix the issue, it will need further investigation.