From: Adrian M. <ad...@mc...> - 2001-09-11 07:49:54
|
On Tuesday 11 September 2001 3:54 am, M. R. Brown wrote: > * Adrian McMenamin <ad...@mc...> on Tue, Sep 11, 2001: > > The ftp site appears to be down and so I loaded the rpm for the tools > > package ... but it doesn't appear to work for me. > > > > I am sure this is because of my settings, but I am not clever enough to > > know how to set this right! > > > > When I run... > > > > make > > CROSS_COMPILE=/opt/billgatliff/H-i686-pc-linux-gnu/sh4-linux/sh4-linux/bi > >n/ dep zImage > > You forgot ARCH=sh in your make command. > > > I get this sort of thing... > > > > /opt/billgatliff/H-i686-pc-linux-gnu/sh4-linux/sh4-linux/bin/gcc > > -D__KERNEL__ -I/home/Adrian/linux/include -Wall -Wstrict-prototypes -O2 > > -fomit-frame-pointer -fno-strict-aliasing -pipe -march=i686 -c -o > > init/main.o init/main.c > > cc1: Invalid option `arch=i686' > > In file included from /home/Adrian/linux/include/linux/wait.h:19, > > from /home/Adrian/linux/include/linux/fs.h:12, > > from /home/Adrian/linux/include/linux/capability.h:17, > > from /home/Adrian/linux/include/linux/binfmts.h:5, > > from /home/Adrian/linux/include/linux/sched.h:9, > > from /home/Adrian/linux/include/linux/mm.h:4, > > from /home/Adrian/linux/include/linux/slab.h:14, > > from /home/Adrian/linux/include/linux/proc_fs.h:5, > > from init/main.c:15: > > [snip] > > > {standard input}:1776: Error: unknown opcode > > {standard input}:1777: Error: unknown opcode > > {standard input}:1778: Error: invalid operands for opcode > > make: *** [init/main.o] Error 1 > > > > > > Eeeek! What's wrong??? > > Because you didn't specify ARCH=sh, you attempted to compile an i386 > kernel with a sh4 compiler. Use that for *all* kernel targets, including > menuconfig. > > And I hope you're using the latest kernel from LinuxSH CVS (should be at > least 2.4.10-pre6). > I am using the latest stuff from the CVS, yes. Late last night I was able to access the ftp site - so should I use the downloaded tools or the ones that popped out of the RPM? Not wishing to sound ungrateful for what is, after all, help offered voluntarily. But if I am meant to add an extra command why isn't it mentioned in the HOWTOs? > M. R. |