cs162-ff@h50:~/projects/cs162/group3/nachos/test $ gmake
/mips-gcc -O2 -B/mips- -G 0 -Wa,-mips1 -nostdlib -ffreestanding -c assert.c
gmake: /mips-gcc: Command not found
gmake: *** [assert.o] Error 127
i've tried replacing /mips-gcc with just mips-gcc and i get this:
cs162-ff@h50:~/projects/cs162/group3/nachos/test $ gmake
mips-gcc -O2 -Bmips- -G 0 -Wa,-mips1 -nostdlib -ffreestanding -c assert.c
<command line>:1:1: warning: "__GNUC__" redefined
<built-in>:2:1: warning: this is the location of the previous definition
<command line>:2:1: warning: "__GNUC_MINOR__" redefined
<built-in>:3:1: warning: this is the location of the previous definition
<command line>:31:12: warning: "system" re-asserted
cpp: -lang-c: linker input file unused because linking not done
mips-gcc: installation problem, cannot exec `cc1': No such file or directory
mips-gcc: file path prefix `mips-' never used
gmake: *** [assert.o] Error 1
> anybody know how to get around this?
>
> cs162-ff@h50:~/projects/cs162/group3/nachos/test $ gmake
> /mips-gcc -O2 -B/mips- -G 0 -Wa,-mips1 -nostdlib -ffreestanding -c assert.c
> gmake: /mips-gcc: Command not found
> gmake: *** [assert.o] Error 127
Is your $ARCHDIR set? Mine on h50 is
h50 [1] ~ > echo $ARCHDIR
/home/ff/cs162/bin/arch/sun4u
--
Thomas Kho
Amy@Amy-:~/cs162/nachos-eclipse/cs162/nachos/test $ make
/usr/mips-x86.win32-xgcc/mips-gcc -O2 -B/usr/mips-x86.win32-xgcc/mips-
-G 0 -Wa,-mips1 -nostdlib -ffreestanding -c assert.c
as: unrecognized option `-G'
make: *** [assert.o] Error 1
> thanks, that fixed it. however, trying to do the same on cygwin:
>
> Amy@Amy-:~/cs162/nachos-eclipse/cs162/nachos/test $ make
> /usr/mips-x86.win32-xgcc/mips-gcc -O2 -B/usr/mips-x86.win32-xgcc/mips-
> -G 0 -Wa,-mips1 -nostdlib -ffreestanding -c assert.c
> as: unrecognized option `-G'
> make: *** [assert.o] Error 1
It should be trying to execute mips-as, and probably fails since -G is a
arch-specific flag. Did you set your $ARCHDIR in Cygwin?
--
Thomas Kho
Amy@Amy-:~/cs162/nachos-eclipse/cs162/nachos/test $ make
/usr/mips-x86.win32-xgcc/mips-gcc -O2 -B/usr/mips-x86.win32-xgcc/mips-
-G 0 -Wa,-mips1 -nostdlib -ffreestanding -c assert.c
as: unrecognized option `-G'
make: *** [assert.o] Error 1
Amy@Amy-:~/cs162/nachos-eclipse/cs162/nachos/test $ echo $ARCHDIR
/usr/mips-x86.win32-xgcc
Try adding the cross compiler directory to your $PATH.
--
Thomas Kho