Public bug reported:

fwupdate appears to fail to build on i386 using
2.25.51.20151022-0ubuntu3:

[...]
Preparing to unpack .../binutils_2.25.51.20151022-0ubuntu3_i386.deb ...
Unpacking binutils (2.25.51.20151022-0ubuntu3) over (2.25.1-6ubuntu1) ...
[...]

gcc -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fpic 
-Wall -fshort-wchar -fno-strict-aliasing -fno-merge-constants -ffreestanding 
-fno-stack-protector -fno-stack-check --std=c11 -DCONFIG_ia32 -D__KERNEL__ 
-I/usr/include/efi/ -I/usr/include/efi/ia32/ 
-iquote/«BUILDDIR»/fwupdate-0.4+git20151015.081427/include "-DDEBUGDIR=L\"/\"" 
-mno-mmx -mno-sse -mno-red-zone -nostdinc -maccumulate-outgoing-args -m32 
-I/usr/lib/gcc/i686-linux-gnu/5/include -c -o fwupdate.o fwupdate.c
fwupdate.c: In function 'allocate':
fwupdate.c:50:10: warning: cast to pointer from integer of different size 
[-Wint-to-pointer-cast]
  *addr = (void *)pageaddr;
          ^
In file included from /usr/include/efi/efi.h:35:0,
                 from fwupdate.c:11:
fwupdate.c: In function 'free':
fwupdate.c:63:43: warning: cast from pointer to integer of different size 
[-Wpointer-to-int-cast]
  rc = uefi_call_wrapper(BS->FreePages, 2, (EFI_PHYSICAL_ADDRESS)addr,
                                           ^
/usr/include/efi/ia32/efibind.h:283:51: note: in definition of macro 
'uefi_call_wrapper'
 #define uefi_call_wrapper(func, va_num, ...) func(__VA_ARGS__)
                                                   ^
fwupdate.c: In function 'apply_capsules':
fwupdate.c:525:11: warning: cast from pointer to integer of different size 
[-Wpointer-to-int-cast]
           (EFI_PHYSICAL_ADDRESS)(VOID *)cbd);
           ^
/usr/include/efi/ia32/efibind.h:283:51: note: in definition of macro 
'uefi_call_wrapper'
 #define uefi_call_wrapper(func, va_num, ...) func(__VA_ARGS__)
                                                   ^
fwupdate.c: In function 'read_file':
fwupdate.c:88:4: warning: 'b' may be used uninitialized in this function 
[-Wmaybe-uninitialized]
    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-uninitialized]
   FreePool(buf);
   ^
fwupdate.c:130:8: note: 'buf' was declared here
  void *buf;
        ^
gcc -nostdlib -Wl,--warn-common -Wl,--no-undefined -Wl,--fatal-warnings -shared 
-Wl,-Bsymbolic -L/usr/lib -L/usr/lib -Wl,--build-id=sha1 
/usr/lib/crt0-efi-ia32.o -shared -o fwupdate.so fwupdate.o -lefi -lgnuefi \
        /usr/lib/gcc/i686-linux-gnu/5/libgcc.a \
        -T elf_ia32_efi.lds
/usr/bin/ld: BFD (GNU Binutils for Ubuntu) 2.25.51.20151022 assertion fail 
../../bfd/elf32-i386.c:5245
/usr/bin/ld: BFD (GNU Binutils for Ubuntu) 2.25.51.20151022 assertion fail 
../../bfd/elf32-i386.c:5245
collect2: error: ld returned 1 exit status
make[3]: *** [fwupdate.so] Error 1

See https://launchpadlibrarian.net/222906940/buildlog_ubuntu-
xenial-i386.fwupdate_0.4%2Bgit20151015.081427-0ubuntu3_BUILDING.txt.gz

** Affects: binutils (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: fwupdate (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: fwupdate (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1510270

Title:
  fwupdate build fails on i386 with assertion fail
  ../../bfd/elf32-i386.c:5245

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/1510270/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to