[NSWI004] Compilation Error Related to GCC Arugments

Vojtech Horky horky at d3s.mff.cuni.cz
Mon Nov 30 15:56:48 CET 2020


Hello.

Dne 30. 11. 20 v 15:53 Baatyrbekov, Beksultan napsal(a):
> When I compile on the examples repo, it does compile.
> Unfortunately, for the team project, I get errors related to arguments.
> Other teammates have no such issue. I can't figure out what's wrong.
> 
> The following error log:
> 
> make -C kernel
> make[1]: Entering directory '/home/baatyrbb/team-stonks/kernel'
> for i in src/main.o src/head.o src/debug/code.o src/debug/padding.o 
> src/exc/exc.o src/exc/handlers.o src/lib/print.o src/lib/runtime.o 
> src/mm/heap.o src/proc/context.o src/proc/mutex.o src/proc/scheduler.o 
> src/proc/sem.o src/proc/thread.o boot/loader.o; do mkdir -p `dirname 
> $i`; done
> cc -Iinclude -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=gnu99 -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:124: boot/loader.o] Error 1

A wild guess from the information you provided is that you have probably 
not run configure.py first.

Wondering how it is possible that you get such errors after two months 
of work ;-).

Hope this helps,
- VH


More information about the NSWI004 mailing list