[NSWI004] a01 Make error

Michal Tichý Michal.Tichy.y at email.cz
Tue Oct 6 20:06:47 CEST 2020


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.




S pozdravem,

Michal Tichý
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://d3s.mff.cuni.cz/pipermail/nswi004/attachments/20201006/f6ca63dc/attachment-0001.htm>


More information about the NSWI004 mailing list