1 |
During kernel compile ld(1) is unable to find |
2 |
/usr/lib/binutils/mips-unknown-linux-gnu/2.16.1/ldscripts |
3 |
|
4 |
I was able to compile my current kernel without problems prior to changing |
5 |
to gcc 4.1.1 and rebuilding world with the -e flag, so I have a bad feeling |
6 |
something was altered to make this error occur. |
7 |
|
8 |
To get through the compile I created a link within /usr/src/linux like so: |
9 |
|
10 |
ln -s /usr/lib/binutils/mips-unknown-linux-gnu/2.16.1/ldscripts . |
11 |
|
12 |
However, even with the working .config that is running on my machine or the |
13 |
default ip32 config, I can't get this newly compiled kernel to work. It just |
14 |
hangs or does even load. |
15 |
|
16 |
|
17 |
Here is the original error: |
18 |
|
19 |
nano linux # make vmlinux.32 modules modules_install |
20 |
CROSS_COMPILE=mips64-unknown-linux-gnu- |
21 |
CHK include/linux/version.h |
22 |
SPLIT include/linux/autoconf.h -> include/config/* |
23 |
CC arch/mips/kernel/asm-offsets.s |
24 |
GEN include/asm-mips/asm-offsets.h |
25 |
CC scripts/mod/empty.o |
26 |
HOSTCC scripts/mod/mk_elfconfig |
27 |
MKELF scripts/mod/elfconfig.h |
28 |
HOSTCC scripts/mod/file2alias.o |
29 |
HOSTCC scripts/mod/modpost.o |
30 |
HOSTCC scripts/mod/sumversion.o |
31 |
HOSTLD scripts/mod/modpost |
32 |
HOSTCC scripts/pnmtologo |
33 |
HOSTCC scripts/conmakehash |
34 |
HOSTCC scripts/bin2c |
35 |
CC init/main.o |
36 |
CHK include/linux/compile.h |
37 |
UPD include/linux/compile.h |
38 |
CC init/version.o |
39 |
CC init/do_mounts.o |
40 |
LD init/mounts.o |
41 |
mips64-unknown-linux-gnu-ld: cannot open linker script file |
42 |
ldscripts/elf64btsmip.xr: No such file or directory |
43 |
make[1]: *** [init/mounts.o] Error 1 |
44 |
make: *** [init] Error 2 |
45 |
|
46 |
|
47 |
Here is some system information that I hope will assist someone in pointing |
48 |
me at any mistakes I might have made: |
49 |
|
50 |
[ebuild R ] sys-devel/binutils-2.16.1-r3 USE="-multislot -multitarget |
51 |
-nls -test -vanilla" 12,368 kB |
52 |
|
53 |
[ebuild R ] sys-devel/gcc-4.1.1 USE="(-altivec) -bootstrap -build -doc |
54 |
-fortran -gcj -gtk (-hardened) -ip28 -ip32r10k -mudflap (-multilib) |
55 |
-multislot (-n32) (-n64) -nls -nocxx -objc -objc++ -objc-gc -test -vanilla" |
56 |
38,303 kB |
57 |
|
58 |
nano linux # gcc-config -l |
59 |
[1] mips-unknown-linux-gnu-4.1.1 * |
60 |
[2] mips64-unknown-linux-gnu-4.1.1 * |
61 |
|
62 |
|
63 |
|
64 |
-- |
65 |
Michael D. Bevilacqua |
66 |
michael@××××××××××.us |