klange / toaruos

A completely-from-scratch hobby operating system: bootloader, kernel, drivers, C library, and userspace including a composited graphical UI, dynamic linker, syntax-highlighting text editor, network stack, etc.
https://toaruos.org/
University of Illinois/NCSA Open Source License
6.03k stars 475 forks source link

build error #207

Closed The-Jat closed 2 years ago

The-Jat commented 2 years ago

mak@mak-VirtualBox:~/toaruos$ make x86_64-pc-toaru-gcc -fno-stack-protector -fpic -DEFI_PLATFORM -ffreestanding -fshort-wchar -I /usr/include/efi -mno-red-zone -I /usr/include/efi/x86_64 -DEFI_FUNCTION_WRAPPER -c -o boot/efi/platform.o boot/platform.c boot/platform.c:5:10: fatal error: efi.h: No such file or directory 5 | #include | ^~~ compilation terminated. make: *** [Makefile:299: boot/efi/platform.o] Error 1

klange commented 2 years ago

You need headers from GNU-EFI (generally packaged as gnu-efi) to build the EFI bootloader, which was reintroduced to the codebase a week or so ago.

I suggest referencing the package list from the Dockerfile used to build the CI builder images: https://github.com/klange/toaruos/blob/master/util/docker/Dockerfile#L6

You can also just use the Docker build container directly, which is described in the README. It gets regular testing from the Github Actions CI process.

klange commented 2 years ago

@mnisk Have you been able to resolve your build issue with the instructions above?