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

How to Make a Computer Operating System in C++

Home Page:https://samypesse.gitbook.io/how-to-create-an-operating-system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

latenightz opened this issue · 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

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.