How-to-Make-a-Computer-Operating-System icon indicating copy to clipboard operation
How-to-Make-a-Computer-Operating-System copied to clipboard

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

Open latenightz opened this issue 4 years ago • 1 comments

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

latenightz avatar Apr 26 '21 13:04 latenightz

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.

RichCini avatar Aug 16 '21 15:08 RichCini