Re: Compilation problem with kernel 2.4.16

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

 



On Fri, 2006-03-24 at 00:28, Krishna wrote:
> scripts/basic/fixdep.c: In function `print_deps':
> scripts/basic/fixdep.c:336: warning: unused variable `map'
> /home1/guest/vikram/COMPILER/specifix/broadcom_2004e_341/i686-pc-linux-gnu/bin/../lib/gcc/sb1-elf/3.4.1/../../../../sb1-elf/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000400040

You apparently have something like
HOSTCC=sb1-elf-gcc
in your linux kernel Makefile.  This will not work.  The host compiler
is the compiler for the machine that you are building the linux kernel
on.  This will normally be just "cc" or "gcc".

The other problem is that you have apparently set CROSS-COMPILE to
sb1-elf- which will also not work.  This must be either mips-linux- or
mips64-linux- (if you want a 64-bit kernel) as others have already
mentioned.

You can use the specifix toolchain release to build the linux kernel. 
However, you can't use the sb1-elf binaries.  These are only for
building embedded applications that run on top of CFE without an OS.  To
build the linux kernel, you need to grab the sources (which are just FSF
gcc-3.4.x with some SB-1 support backported), configure them for
mips-linux (or mips64-linux), and then build and install them.  You can
then use this compile to build the linux kernel.

There is a learning curve here if you have never done this before. 
There is probably a FAQ somewhere that explains how to do this.  I don't
know offhand where to look for linux kernel building FAQs.  Perhaps
someone else can point you at one.
-- 
Jim Wilson, GNU Tools Support, http://www.specifix.com



[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux