[NSWI004] Compilation Error Related to GCC Arugments

Baatyrbekov, Beksultan baatybek at fit.cvut.cz
Mon Nov 30 15:53:57 CET 2020


Hello,

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

Best regards,
Beksultan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://d3s.mff.cuni.cz/pipermail/nswi004/attachments/20201130/cc913221/attachment.htm>


More information about the NSWI004 mailing list