Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

compiling gmake test (mips-gcc command not found)

868 views
Skip to first unread message

Amy Hwang

unread,
Mar 2, 2007, 12:12:49 AM3/2/07
to
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


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

Thomas Kho

unread,
Mar 2, 2007, 1:06:21 AM3/2/07
to
In article <es8bof$qu7$1...@geode.berkeley.edu>,
Amy Hwang <am...@berkeley.edu> wrote:

> 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 Hwang

unread,
Mar 2, 2007, 1:30:42 AM3/2/07
to
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

Thomas Kho

unread,
Mar 2, 2007, 2:06:02 AM3/2/07
to
In article <es8gag$s79$1...@geode.berkeley.edu>,
Amy Hwang <am...@berkeley.edu> wrote:

> 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 Hwang

unread,
Mar 2, 2007, 2:43:46 AM3/2/07
to

> 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?
>
yes

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

Thomas Kho

unread,
Mar 2, 2007, 3:18:22 PM3/2/07
to
In article <es8kjh$t7p$1...@geode.berkeley.edu>,
Amy Hwang <am...@berkeley.edu> wrote:

Try adding the cross compiler directory to your $PATH.

--
Thomas Kho

0 new messages