Gentoo Archives: gentoo-mips

From: Michael Bevilacqua <michael@××××××××××.us>
To: gentoo-mips@l.g.o
Cc: Michael Bevilacqua <michael@××××××××××.us>
Subject: [gentoo-mips] O2 IP32 | mips-sources fails to find ldscripts
Date: Mon, 19 Feb 2007 16:32:13
During kernel compile ld(1) is unable to find

I was able to compile my current kernel without problems prior to changing
to gcc 4.1.1 and rebuilding world with the -e flag, so I have a bad feeling
something was altered to make this error occur.

To get through the compile I created a link within /usr/src/linux like so:

ln -s /usr/lib/binutils/mips-unknown-linux-gnu/2.16.1/ldscripts .

However, even with the working .config that is running on my machine or the
default ip32 config, I can't get this newly compiled kernel to work. It just
hangs or does even load.

Here is the original error:

nano linux # make vmlinux.32 modules modules_install
  CHK     include/linux/version.h
  SPLIT   include/linux/autoconf.h -> include/config/*
  CC      arch/mips/kernel/asm-offsets.s
  GEN     include/asm-mips/asm-offsets.h
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
  HOSTLD  scripts/mod/modpost
  HOSTCC  scripts/pnmtologo
  HOSTCC  scripts/conmakehash
  HOSTCC  scripts/bin2c
  CC      init/main.o
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  CC      init/do_mounts.o
  LD      init/mounts.o
mips64-unknown-linux-gnu-ld: cannot open linker script file
ldscripts/elf64btsmip.xr: No such file or directory
make[1]: *** [init/mounts.o] Error 1
make: *** [init] Error 2

Here is some system information that I hope will assist someone in pointing
me at any mistakes I might have made:

[ebuild   R   ] sys-devel/binutils-2.16.1-r3  USE="-multislot -multitarget
-nls -test -vanilla" 12,368 kB

[ebuild   R   ] sys-devel/gcc-4.1.1  USE="(-altivec) -bootstrap -build -doc
-fortran -gcj -gtk (-hardened) -ip28 -ip32r10k -mudflap (-multilib)
-multislot (-n32) (-n64) -nls -nocxx -objc -objc++ -objc-gc -test -vanilla"
38,303 kB

nano linux # gcc-config -l
 [1] mips-unknown-linux-gnu-4.1.1 *
 [2] mips64-unknown-linux-gnu-4.1.1 *

Michael D. Bevilacqua