I have followed the given build instructions (building.md) but have been running into the same problem while trying to build on MacOS (ARM).
sources/kernel/x86_64/boot.c:25:51: error: unused parameter 'magic' [-Werror,-Wunused-parameter]
void arch_entry_main(Handover *handover, uint64_t magic)
^
1 error generated.
make: *** [bin/devel/x86_64-kernel-llvm/kernel/x86_64/boot.c.o] Error 1
โ brutal git:(main) brew install qemu nasm xorriso llvm binutils wget pkg-config sdl2
Warning: qemu 7.1.0 is already installed and up-to-date.
To reinstall 7.1.0, run:
brew reinstall qemu
Warning: nasm 2.15.05 is already installed and up-to-date.
To reinstall 2.15.05, run:
brew reinstall nasm
Warning: xorriso 1.5.4 is already installed and up-to-date.
To reinstall 1.5.4, run:
brew reinstall xorriso
Warning: llvm 15.0.3 is already installed and up-to-date.
To reinstall 15.0.3, run:
brew reinstall llvm
Warning: binutils 2.39_1 is already installed and up-to-date.
To reinstall 2.39_1, run:
brew reinstall binutils
Warning: wget 1.21.3 is already installed and up-to-date.
To reinstall 1.21.3, run:
brew reinstall wget
Warning: pkg-config 0.29.2_3 is already installed and up-to-date.
To reinstall 0.29.2_3, run:
brew reinstall pkg-config
Warning: sdl2 2.24.1 is already installed and up-to-date.
To reinstall 2.24.1, run:
brew reinstall sdl2
The needed environment variables have also been set.