SamyPesse / How-to-Make-a-Computer-Operating-System

How to Make a Computer Operating System in C++
https://samypesse.gitbook.io/how-to-create-an-operating-system
Apache License 2.0
21.48k stars 3.43k forks source link

fatal: more than one output file specified: arch/x86/start.o #169

Open latenightz opened 3 years ago

latenightz commented 3 years ago

when running make run, I get

Building Kernel
make -C ./kernel
make[1]: Entering directory '/home/peepers/How-to-Make-a-Computer-Operating-System/src/kernel'
nasm   -f elf -o  -c arch/x86/start.asm -o  arch/x86/start.o
arch/x86/start.asm: fatal: more than one output file specified: arch/x86/start.o

make[1]: *** [Makefile:64: arch/x86/start.o] Error 1
make[1]: Leaving directory '/home/peepers/How-to-Make-a-Computer-Operating-System/src/kernel'
make: *** [Makefile:11: all] Error 2
RichCini commented 3 years ago

I had the same issue. You need to either edit /kernel/Makefile to remove the extra '-o' from the command line, or remove it from ASMFLAG in /kernel/arch/x86/config.make.