burg efi32 fail to make with error 1

Bug #689557 reported by fireicer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
burg
New
Undecided
Unassigned

Bug Description

Make process followed:

../configure --with-platform=efi --target=i386 --prefix=${HOME}/burg_efi32

make

make install

Process fails during the make process with

CC linux_mod-loader_i386_efi_linux.o
cc1: warnings being treated as errors
../loader/i386/efi/linux.c: In function ‘grub_linux_setup_video’:
../loader/i386/efi/linux.c:582: error: passing argument 1 of ‘gop->blt’ from incompatible pointer type
../loader/i386/efi/linux.c:582: note: expected ‘struct grub_efi_uga_draw_protocol *’ but argument is of type ‘struct grub_efi_graphics_output_protocol *’
make: *** [linux_mod-loader_i386_efi_linux.o] Error 1

Tags: burg grub2 make
Revision history for this message
fireicer (f1r31c3r) wrote :

Update:

I modified the file:

graphics_output.h

 grub_efi_status_t
/* (*blt) (struct grub_efi_uga_draw_protocol *this, */
  (*blt) (struct grub_efi_graphics_output_protocol *this,
   struct grub_efi_uga_pixel *blt_buffer,
   enum grub_efi_uga_blt_operation blt_operation,
   grub_efi_uintn_t src_x,
   grub_efi_uintn_t src_y,
   grub_efi_uintn_t dest_x,
   grub_efi_uintn_t dest_y,
   grub_efi_uintn_t width,
   grub_efi_uintn_t height,
   grub_efi_uintn_t delta);

  struct grub_efi_graphics_output_mode *mode;

This section falls towards the end of the file ~Line 78. The commented out section refereed to uga_draw_protocol which seemed strange to me why it was in the graphics output header, as you can see from the above i modified it to (*blt) (struct grub_efi_graphics_output_protocol.

The make process compiles past this file and fails on a further error

CC netfs_mod-fs_efi_netfs.o
cc1: warnings being treated as errors
../fs/efi/netfs.c: In function ‘find_handles’:
../fs/efi/netfs.c:55: error: passing argument 3 of ‘grub_efi_system_table->boot_services->handle_protocol’ from incompatible pointer type
../fs/efi/netfs.c:55: note: expected ‘void **’ but argument is of type ‘struct grub_efi_load_file_protocol_t **’
make: *** [netfs_mod-fs_efi_netfs.o] Error 1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.