https://pastebin.com/MHva2UsM
Trying to build for ia32 efi and getting this issue:
commands/efi/setup_var.c: In function ‘grub_cmd_setup_var’:
commands/efi/setup_var.c:269:110: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘grub_efi_status_t {aka unsigned int}’ [-Werror=format=]
_ERR_INVALID_COMMAND, "can't get variable using efi (error: 0x%016lx)", status);
~~~~~^
%016x
commands/efi/setup_var.c:296:58: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘grub_uint64_t {aka long long unsigned int}’ [-Werror=format=]
grub_printf("offset 0x%02x is: 0x%02lx\n", offset, pack_data(tmp_data, offset, var_size));
~~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%02llx
commands/efi/setup_var.c:305:58: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘grub_uint64_t {aka long long unsigned int}’ [-Werror=format=]
grub_printf("offset 0x%02x is: 0x%02lx\n", offset, pack_data(tmp_data, offset, var_size));
~~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%02llx
commands/efi/setup_var.c:328:110: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘grub_efi_status_t {aka unsigned int}’ [-Werror=format=]
_ERR_INVALID_COMMAND, "can't set variable using efi (error: 0x%016lx)", status);
~~~~~^
%016x
commands/efi/setup_var.c:341:65: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘grub_uint64_t {aka long long unsigned int}’ [-Werror=format=]
grub_printf("setting offset 0x%02x to 0x%02lx\n", offset, larger_set_value);
~~~~^
%02llx
commands/efi/setup_var.c:351:114: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘grub_efi_status_t {aka unsigned int}’ [-Werror=format=]
_ERR_INVALID_COMMAND, "can't set variable using efi (error: 0x%016lx)", status);
~~~~~^
%016x
commands/efi/setup_var.c:365:65: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘grub_uint64_t {aka long long unsigned int}’ [-Werror=format=]
grub_printf("setting offset 0x%02x to 0x%02lx\n", offset, larger_set_value);
~~~~^
%02llx
commands/efi/setup_var.c:375:114: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘grub_efi_status_t {aka unsigned int}’ [-Werror=format=]
_ERR_INVALID_COMMAND, "can't set variable using efi (error: 0x%016lx)", status);
~~~~~^
%016x
cc1: all warnings being treated as errors
Makefile:41199: recipe for target 'commands/efi/setup_var_module-setup_var.o' failed
make[3]: *** [commands/efi/setup_var_module-setup_var.o] Error 1
make[3]: Leaving directory '/home/ubuntu/grub/grub-core'
Makefile:27083: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/ubuntu/grub/grub-core'
Makefile:11667: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ubuntu/grub'
Makefile:3525: recipe for target 'all' failed
make: *** [all] Error 2
https://pastebin.com/MHva2UsM
Trying to build for ia32 efi and getting this issue:
commands/efi/setup_var.c: In function ‘grub_cmd_setup_var’:
commands/efi/setup_var.c:269:110: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘grub_efi_status_t {aka unsigned int}’ [-Werror=format=]
_ERR_INVALID_COMMAND, "can't get variable using efi (error: 0x%016lx)", status);
~~~~~^
%016x
commands/efi/setup_var.c:296:58: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘grub_uint64_t {aka long long unsigned int}’ [-Werror=format=]
grub_printf("offset 0x%02x is: 0x%02lx\n", offset, pack_data(tmp_data, offset, var_size));
~~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%02llx
commands/efi/setup_var.c:305:58: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘grub_uint64_t {aka long long unsigned int}’ [-Werror=format=]
grub_printf("offset 0x%02x is: 0x%02lx\n", offset, pack_data(tmp_data, offset, var_size));
~~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%02llx
commands/efi/setup_var.c:328:110: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘grub_efi_status_t {aka unsigned int}’ [-Werror=format=]
_ERR_INVALID_COMMAND, "can't set variable using efi (error: 0x%016lx)", status);
~~~~~^
%016x
commands/efi/setup_var.c:341:65: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘grub_uint64_t {aka long long unsigned int}’ [-Werror=format=]
grub_printf("setting offset 0x%02x to 0x%02lx\n", offset, larger_set_value);
~~~~^
%02llx
commands/efi/setup_var.c:351:114: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘grub_efi_status_t {aka unsigned int}’ [-Werror=format=]
_ERR_INVALID_COMMAND, "can't set variable using efi (error: 0x%016lx)", status);
~~~~~^
%016x
commands/efi/setup_var.c:365:65: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘grub_uint64_t {aka long long unsigned int}’ [-Werror=format=]
grub_printf("setting offset 0x%02x to 0x%02lx\n", offset, larger_set_value);
~~~~^
%02llx
commands/efi/setup_var.c:375:114: error: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘grub_efi_status_t {aka unsigned int}’ [-Werror=format=]
_ERR_INVALID_COMMAND, "can't set variable using efi (error: 0x%016lx)", status);
~~~~~^
%016x
cc1: all warnings being treated as errors
Makefile:41199: recipe for target 'commands/efi/setup_var_module-setup_var.o' failed
make[3]: *** [commands/efi/setup_var_module-setup_var.o] Error 1
make[3]: Leaving directory '/home/ubuntu/grub/grub-core'
Makefile:27083: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/ubuntu/grub/grub-core'
Makefile:11667: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/ubuntu/grub'
Makefile:3525: recipe for target 'all' failed
make: *** [all] Error 2