[NSWI004] a01 Make error
Vojtech Horky
horky at d3s.mff.cuni.cz
Tue Oct 6 22:40:54 CEST 2020
Hello.
Dne 06. 10. 20 v 20:06 Michal Tichý napsal(a):
> Hello,
> I tried running make in unmodified repository for the a01 assignment on
> a rotunda machine,
> but kept getting errors.
>
> Make output:
> make -C kernel
> make[1]: Entering directory
> '/afs/ms.mff.cuni.cz/u/t/********/Op_sys/a01-********/kernel'
> for i in src/main.o src/head.o src/debug/code.o src/lib/print.o
> src/lib/runtime.o boot/loader.o; do mkdir -p `dirname $i`; done
> cc -march=r4000 -mabi=32 -mgp32 -msoft-float -mlong32 -G 0 -mno-abicalls
> -fno-pic -fno-builtin -ffreestanding -nostdlib -nostdinc -pipe -Wall
> -Wextra -Werror -Wno-unused-parameter -Wmissing-prototypes -g3 -std=c11
> -I. -D__ASM__ -c -o boot/loader.o boot/loader.S
> cc: error: unrecognized argument in option ‘-mabi=32’
> cc: note: valid arguments to ‘-mabi=’ are: ms sysv
> cc: error: 0: No such file or directory
> cc: error: unrecognized command line option ‘-mgp32’; did you mean ‘-m32’?
> cc: error: unrecognized command line option ‘-mlong32’
> cc: error: unrecognized command line option ‘-G’
> cc: error: unrecognized command line option ‘-mno-abicalls’
> make[1]: *** [Makefile:115: boot/loader.o] Error 1
> make[1]: Leaving directory
> '/afs/ms.mff.cuni.cz/u/t/********/Op_sys/a01-********/kernel'
> make: *** [Makefile:20: kernel] Error 2
>
> I think the problem is that the repository does not contain the file
> `config.mk`.
> After including the file from the `Examples` repository Make ran
> successfully.
Have you run configure.py first? That is not needed for the mentioned
examples but required for A01.
- VH
More information about the NSWI004
mailing list