In message <[EMAIL PROTECTED]>
          Matthew Wilcox <[EMAIL PROTECTED]> wrote:

> On Sun, Apr 25, 1999 at 07:34:52PM +0000, Peter Teichmann wrote:
> > Hi,
> > 
> > I now managed to compile binutils-2.9.1.0.19a and egcs-1.1.2 thanks to
> > Chris Rutters toolchain guide. They are now in installed in 
> > /usr/local/arm-tmp. They are also working, but of course not suitable
> > for compiling binaries that run under a 2.0.35 kernel.
> 
> You can run ELF binaries under 2.0.35; I have.  Just recompile your
> 2.0.35 kernel with ELF support enabled.
> 
> > But now I have a problem with compiling a new kernel (2.2.3): Wen compiling
> > the kernel is seems that there are some programs to be compiled before the
> > kernel and needed to compile the kernel. How do I tell the computer to use
> > the old C compiler (in /usr) for all these programs, and the new C compiler
> > for the kernel?
> 
> Edit the makefile to specify
> HOSTCC=/usr/bin/gcc
> and
> CROSS_COMPILE=/usr/local/arm-tmp/bin/

The compiling was now without problems, but when it came to linking all
together I got the following error:

/usr/local/arm-tmp/bin/ld -T /usr/src/linux-2.2.3/arch/arm/vmlinux-armv.lds -e stext 
-Ttext 0xC0008000 arch/arm/kernel/head-armv.o arch/arm/kernel/init_task.o init/main.o 
init/version.o \
--start-group \
arch/arm/kernel/kernel.o arch/arm/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
fs/filesystems.a \
net/network.a \
drivers/block/block.a drivers/char/char.a drivers/misc/misc.a drivers/net/net.a 
drivers/cdrom/cdrom.a drivers/video/video.a arch/arm/special/special.a 
drivers/acorn/block/acorn-block.a drivers/acorn/char/acorn-char.a 
drivers/acorn/net/acorn-net.a drivers/acorn/scsi/acorn-scsi.a \
arch/arm/lib/lib.a /usr/src/linux-2.2.3/lib/lib.a `/usr/local/arm-tmp/bin/gcc 
-D__KERNEL__ -I/usr/src/linux-2.2.3/include  -mapcs-32 -mshort-load-bytes -mcpu=arm6 
--print-libgcc-file-name` \
        --end-group \
        -o vmlinux
/usr/local/arm-tmp/lib/gcc-lib/arm-linux/egcs-2.91.66/libgcc.a: could not read 
symbols: Archive has no index; run ranlib to add one
make: *** [vmlinux] Error 1

How can that be and what can I do against it?

-- 
Peter Teichmann

----------------------------------------------------------------------------
Email: [EMAIL PROTECTED]  WWW: rcswww.urz.tu-dresden.de/~teich-p

unsubscribe: body of `unsubscribe linux-arm' to [EMAIL PROTECTED]

Reply via email to