keigo1216 / ketchup

raspberrypi 3A+用のOS
1 stars 0 forks source link

Fix build error on WSL2 #55

Closed keigo1216 closed 2 months ago

keigo1216 commented 2 months ago
rm -f kernel/alloc.o kernel/ipc.o kernel/kernel.o kernel/print.o kernel/process.o kernel/timer.o kernel/trap.o common/common.o user/shell.o user/user.o common/common.o kernel.elf shell.elf shell.bin shell.bin.o kernel.dump *.map *.nm *.dump
cc -std=c11 -Wall -O0 -g3 --target=aarch64-none-elf -march=armv8-a -ffreestanding -nostdlib  -Ikernel  -Icommon  -Iuser   -c -o kernel/alloc.o kernel/alloc.c
cc: error: unrecognized command-line option '--target=aarch64-none-elf'
make: *** [<builtin>: kernel/alloc.o] Error 1
keigo1216 commented 2 months ago

${CLANG}を${CC}にするとうまくいったよ

https://qiita.com/mizcii/items/cfbd2aa17f6b7517c37f