Ben Collins wrote: > On Sun, Sep 05, 1999 at 05:27:03PM +0200, Eric Delaunay wrote: > > Ben Collins wrote: > > > On Fri, Aug 13, 1999 at 08:51:35PM +0200, Samuel Tardieu wrote: > > > > When recompiling a kernel with "make-kpkg --arch sparc64 ..." on an > > > > Ultra5: > > > > > > > > sparc64-linux-ld -r -o kernel.o signal.o ksyms.o sched.o dma.o fork.o > > > > exec_domain.o panic.o printk.o sys.o module.o exit.o itimer.o info.o > > > > time.o softirq.o resource.o sysctl.o acct.o capability.o kmod.o > > > > make[3]: sparc64-linux-ld: Command not found > > > > > > > > Where can I find it? > > > > > > as root: > > > ln -s ld /usr/bin/sparc64-linux-ld > > > ln -s as /usr/bin/sparc64-linux-as > > > > The next one is ar. > > The actual fix for ld is to symlink /usr/sparc-linux to . > > ln -s . /usr/sparc-linux > > This allows ld to find the correct linker scripts.
Not really useful (could be ln -s /usr/sparc-linux . ?) In effect, ld on sparc32 arch tries to create sparc32 binaries, not sparc64 ones unless "-m elf64_sparc" is provided on the command line. The makefiles in linux kernel sources tree don't call ld like above but just sparc64-linux-ld. Therefore I have had to replace the link with a script to put the -m argument in front of the command line. I could say this a bug because sparc64-linux-ld should always create sparc64 binaries, not sparc32 ones by default, unless -m elf32_sparc is provided on the command line. I don't know however where to fix it: no package provide sparc64-linux-xxx alternatives yet (good candidate could be egcs64). Regards. PS: I forgot nm -> sparc64-linux-nm in the list above. -- Eric Delaunay | "La guerre justifie l'existence des militaires. [EMAIL PROTECTED] | En les supprimant." Henri Jeanson (1900-1970)

