In file included from main.c:18:0:
/usr/include/efi/efilib.h:389:1: error: initializing argument 1 of ‘UINTN Print(CHAR16*, ...)’ [-fpermissive]
main.c:166:23: error: invalid conversion from ‘void*’ to ‘CHAR16* {aka short unsigned int*}’ [-fpermissive]
main.c: In function ‘size_t SeekImageFile(Elf_File*, size_t, Elf_Seek_Whence)’:
main.c:228:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
main.c: In function ‘Elf_File* OpenImageFile(SIMPLE_READ_FILE)’:
main.c:267:51: error: invalid conversion from ‘const wchar_t*’ to ‘CHAR16* {aka short unsigned int*}’ [-fpermissive]
In file included from main.c:24:0:
loader.h:46:6: error: initializing argument 1 of ‘void debugPrint_0(CHAR16*)’ [-fpermissive]
main.c:268:16: error: invalid conversion from ‘void*’ to ‘Elf_File* {aka Elf_File_s*}’ [-fpermissive]
main.c:275:51: error: invalid conversion from ‘const wchar_t*’ to ‘CHAR16* {aka short unsigned int*}’ [-fpermissive]
In file included from main.c:24:0:
loader.h:46:6: error: initializing argument 1 of ‘void debugPrint_0(CHAR16*)’ [-fpermissive]
main.c:277:16: error: invalid conversion from ‘void*’ to ‘Elf_File* {aka Elf_File_s*}’ [-fpermissive]
main.c:286:51: error: ‘GetSimpleReadFileHandle’ was not declared in this scope
main.c:292:50: error: invalid conversion from ‘const wchar_t*’ to ‘CHAR16* {aka short unsigned int*}’ [-fpermissive]
In file included from main.c:24:0:
loader.h:46:6: error: initializing argument 1 of ‘void debugPrint_0(CHAR16*)’ [-fpermissive]
main.c:294:16: error: invalid conversion from ‘void*’ to ‘Elf_File* {aka Elf_File_s*}’ [-fpermissive]
main.c: In function ‘wchar_t* LoaderStrConvert(const char*)’:
main.c:309:59: error: invalid conversion from ‘void*’ to ‘CHAR16* {aka short unsigned int*}’ [-fpermissive]
main.c:314:12: error: invalid conversion from ‘CHAR16* {aka short unsigned int*}’ to ‘wchar_t*’ [-fpermissive]
main.c: In function ‘int LoaderGetMemory(vaddr_t, u64)’:
main.c:326:1: error: invalid conversion from ‘EFI_ALLOCATE_PAGES {aka long unsigned int (*)(EFI_ALLOCATE_TYPE, EFI_MEMORY_TYPE, long unsigned int, long unsigned int*)}’ to ‘void*’ [-fpermissive]
In file included from /usr/include/efi/efi_sys.h:35:0,
from main.c:17:
/usr/include/efi/efibind.h:319:8: error: initializing argument 1 of ‘UINT64 efi_call4(void*, UINT64, UINT64, UINT64, UINT64)’ [-fpermissive]
main.c: In function ‘int LoaderReadFile(Elf_File*, u64, u64, void*)’:
main.c:346:67: error: invalid conversion from ‘void*’ to ‘char*’ [-fpermissive]
main.c:235:1: error: initializing argument 3 of ‘size_t ReadImageFileOff(Elf_File*, u64, char*, size_t)’ [-fpermissive]
main.c:350:32: error: ‘ASSERT’ was not declared in this scope
main.c: In function ‘EFI_STATUS StartKernel(vaddr_t)’:
main.c:377:44: error: invalid conversion from ‘const wchar_t*’ to ‘CHAR16* {aka short unsigned int*}’ [-fpermissive]
In file included from main.c:18:0:
/usr/include/efi/efilib.h:389:1: error: initializing argument 1 of ‘UINTN Print(CHAR16*, ...)’ [-fpermissive]
main.c:387:1: error: invalid conversion from ‘EFI_EXIT_BOOT_SERVICES {aka long unsigned int (*)(void*, long unsigned int)}’ to ‘void*’ [-fpermissive]
In file included from /usr/include/efi/efi_sys.h:35:0,
from main.c:17:
/usr/include/efi/efibind.h:317:8: error: initializing argument 1 of ‘UINT64 efi_call2(void*, UINT64, UINT64)’ [-fpermissive]
main.c:389:57: error: invalid conversion from ‘const wchar_t*’ to ‘CHAR16* {aka short unsigned int*}’ [-fpermissive]
In file included from main.c:18:0:
/usr/include/efi/efilib.h:389:1: error: initializing argument 1 of ‘UINTN Print(CHAR16*, ...)’ [-fpermissive]
main.c:394:17: error: invalid conversion from ‘void*’ to ‘SIMPLE_INPUT_INTERFACE* {aka _SIMPLE_INPUT_INTERFACE*}’ [-fpermissive]
main.c:396:18: error: invalid conversion from ‘void*’ to ‘SIMPLE_TEXT_OUTPUT_INTERFACE* {aka _SIMPLE_TEXT_OUTPUT_INTERFACE*}’ [-fpermissive]
main.c:398:18: error: invalid conversion from ‘void*’ to ‘SIMPLE_TEXT_OUTPUT_INTERFACE* {aka _SIMPLE_TEXT_OUTPUT_INTERFACE*}’ [-fpermissive]
main.c:399:24: error: invalid conversion from ‘void*’ to ‘EFI_BOOT_SERVICES* {aka _EFI_BOOT_SERVICES*}’ [-fpermissive]
main.c: In function ‘EFI_STATUS LoadImage(SIMPLE_READ_FILE)’:
main.c:420:45: error: invalid conversion from ‘const wchar_t*’ to ‘CHAR16* {aka short unsigned int*}’ [-fpermissive]
In file included from main.c:18:0:
/usr/include/efi/efilib.h:389:1: error: initializing argument 1 of ‘UINTN Print(CHAR16*, ...)’ [-fpermissive]
main.c:426:71: error: invalid conversion from ‘const wchar_t*’ to ‘CHAR16* {aka short unsigned int*}’ [-fpermissive]
In file included from main.c:18:0:
/usr/include/efi/efilib.h:389:1: error: initializing argument 1 of ‘UINTN Print(CHAR16*, ...)’ [-fpermissive]
main.c:430:46: error: invalid conversion from ‘void*’ to ‘Elf* {aka Elf_s*}’ [-fpermissive]
In file included from main.c:19:0:
/usr/include/efi/libelf.h:205:13: error: initializing argument 3 of ‘Elf* elf_begin(Elf_File*, Elf_Cmd, Elf*)’ [-fpermissive]
main.c:433:63: error: invalid conversion from ‘const wchar_t*’ to ‘CHAR16* {aka short unsigned int*}’ [-fpermissive]
In file included from main.c:18:0:
/usr/include/efi/efilib.h:389:1: error: initializing argument 1 of ‘UINTN Print(CHAR16*, ...)’ [-fpermissive]
main.c: In function ‘EFI_STATUS LoadKernel()’:
main.c:451:53: error: cannot convert ‘const char*’ to ‘CHAR16* {aka short unsigned int*}’ for argument ‘1’ to ‘void debugPrint_1(CHAR16*, CHAR16*)’
main.c:464:1: error: invalid conversion from ‘EFI_LOCATE_HANDLE_BUFFER {aka long unsigned int (*)(EFI_LOCATE_SEARCH_TYPE, EFI_GUID*, void*, long unsigned int*, void***)}’ to ‘void*’ [-fpermissive]
In file included from /usr/include/efi/efi_sys.h:35:0,
from main.c:17:
/usr/include/efi/efibind.h:321:8: error: initializing argument 1 of ‘UINT64 efi_call5(void*, UINT64, UINT64, UINT64, UINT64, UINT64)’ [-fpermissive]
main.c:484:16: error: invalid conversion from ‘void*’ to ‘EFI_DEVICE_PATH* {aka _EFI_DEVICE_PATH*}’ [-fpermissive]
main.c: In function ‘EFI_STATUS efi_main(EFI_HANDLE, EFI_SYSTEM_TABLE*)’:
main.c:517:1: error: invalid conversion from ‘EFI_OPEN_PROTOCOL {aka long unsigned int (*)(void*, EFI_GUID*, void**, void*, void*, unsigned int)}’ to ‘void*’ [-fpermissive]
In file included from /usr/include/efi/efi_sys.h:35:0,
from main.c:17:
/usr/include/efi/efibind.h:323:8: error: initializing argument 1 of ‘UINT64 efi_call6(void*, UINT64, UINT64, UINT64, UINT64, UINT64, UINT64)’ [-fpermissive]
main.c:519:44: error: invalid conversion from ‘const wchar_t*’ to ‘CHAR16* {aka short unsigned int*}’ [-fpermissive]
In file included from main.c:18:0:
/usr/include/efi/efilib.h:389:1: error: initializing argument 1 of ‘UINTN Print(CHAR16*, ...)’ [-fpermissive]
main.c:529:70: error: invalid conversion from ‘void*’ to ‘CHAR16* {aka short unsigned int*}’ [-fpermissive]
main.c:112:1: error: initializing argument 1 of ‘EFI_STATUS ProcessOptions(CHAR16*, UINT32)’ [-fpermissive]
main.c:543:1: error: invalid conversion from ‘EFI_CLOSE_PROTOCOL {aka long unsigned int (*)(void*, EFI_GUID*, void*, void*)}’ to ‘void*’ [-fpermissive]
In file included from /usr/include/efi/efi_sys.h:35:0,
from main.c:17:
/usr/include/efi/efibind.h:319:8: error: initializing argument 1 of ‘UINT64 efi_call4(void*, UINT64, UINT64, UINT64, UINT64)’ [-fpermissive]
main.c:545:45: error: invalid conversion from ‘const wchar_t*’ to ‘CHAR16* {aka short unsigned int*}’ [-fpermissive]
In file included from main.c:18:0:
/usr/include/efi/efilib.h:389:1: error: initializing argument 1 of ‘UINTN Print(CHAR16*, ...)’ [-fpermissive]
main.c:549:43: error: invalid conversion from ‘const wchar_t*’ to ‘CHAR16* {aka short unsigned int*}’ [-fpermissive]
In file included from main.c:18:0:
/usr/include/efi/efilib.h:389:1: error: initializing argument 1 of ‘UINTN Print(CHAR16*, ...)’ [-fpermissive]
make: *** [main.o] Error 1