[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mips-linux-gcc and make-kpkg

On Fri, Oct 18, 2002 at 02:47:34PM -0500, Nick Golder wrote:
> I am working on building a new kernel (2.4.19) for my Indy R5000 running
> Woody and am having a few problems.

> When running 'make menuconfig' I get:
> /bin/sh: mips-linux-gcc: command not found

> When running make-kpkg I get:

> test -f stamp-configure || /usr/bin/make -f
> /usr/share/kernel-package/rules configure
> /usr/bin/make    ARCH=mips \
>                      boot
> /bin/sh: mips-linux-gcc: command not found
> make[1]: Entering directory `/root/linux-2.4.19'
> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -o
> scripts/split-include scripts/split-include.c
> scripts/split-include include/linux/autoconf.h include/config
> mips-linux-gcc -D__KERNEL__ -I/root/linux-2.4.19/include -Wall
> -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
> -fomit-frame-pointer -I /root/linux-2.4.19/include/asm/gcc -G 0
> -mno-abicalls -fno-pic -pipe -mcpu=r5000 -mips2 -Wa,--trap  
> -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
> make[1]: mips-linux-gcc: Command not found
> make[1]: *** [init/main.o] Error 127
> make[1]: Leaving directory `/root/linux-2.4.19'
> make: *** [stamp-build] Error 2

The problem is that the kernel thinks you're trying to cross-compile, and
isn't finding the appropriate cross-compiler.  ISTR that there's an
option in the kernel config for MIPS that lets you say whether or not
you're trying to cross-compile, and I think it defaults to on.  If you're
compiling this new kernel on the Indy, you'll want to unset that.

Steve Langasek
postmodern programmer

Attachment: pgp4x4RXAY6fU.pgp
Description: PGP signature

Reply to: