Gentoo Archives: gentoo-mips

From: "J. Scott Kasten" <jscottkasten@×××××.com>
To: gentoo-mips@l.g.o
Cc: Michael Bevilacqua <michael@××××××××××.us>
Subject: Re: [gentoo-mips] O2 IP32 | mips-sources fails to find ldscripts
Date: Mon, 19 Feb 2007 23:11:05
Message-Id: Pine.LNX.4.64.0702191723150.24546@bluefang.tetracon-eng.net
In Reply to: [gentoo-mips] O2 IP32 | mips-sources fails to find ldscripts by Michael Bevilacqua
1 Hi,
2
3 The ldscripts directory that you mention is a part of the bintuils ebuild.
4 Not sure why your other tools are having problems. Here's the present
5 levels of all my relevant stuff:
6
7 binutils-2.16.1-r3
8 binutils-config-1.9-r3
9 gcc-3.4.6-r1
10 gcc-4.1.1
11 gcc-config-1.3.13-r4
12 kgcc64-3.4.6
13 kgcc64-4.1.1
14
15 As I look at it, it appears that only gcc-4.1.1 and kgcc64-4.1.1 are new.
16 The others all came from the mips4 stage3 tarball when I installed the
17 system a few weeks ago.
18
19 When I call mips64-unknown-linux-gnu-gcc with the -v flag, it is clearly
20 the 3.4.6 compiler. So the 4.1.1 versions would appear somewhat
21 irrelevant at the moment. I built the kernel I'm running on now, and by
22 appearances, it must have been the kgcc/gcc 3.4.6 that was used. It seems
23 the only way I can call the 4.1.1 compiler is by using an explicit path
24 down into it's tree.
25
26 -S-
27
28
29 On Mon, 19 Feb 2007, Michael Bevilacqua wrote:
30
31 > During kernel compile ld(1) is unable to find
32 > /usr/lib/binutils/mips-unknown-linux-gnu/2.16.1/ldscripts
33 >
34 > I was able to compile my current kernel without problems prior to changing
35 > to gcc 4.1.1 and rebuilding world with the -e flag, so I have a bad feeling
36 > something was altered to make this error occur.
37 >
38 > To get through the compile I created a link within /usr/src/linux like so:
39 >
40 > ln -s /usr/lib/binutils/mips-unknown-linux-gnu/2.16.1/ldscripts .
41 >
42 > However, even with the working .config that is running on my machine or the
43 > default ip32 config, I can't get this newly compiled kernel to work. It just
44 > hangs or does even load.
45 >
46 >
47 > Here is the original error:
48 >
49 > nano linux # make vmlinux.32 modules modules_install
50 > CROSS_COMPILE=mips64-unknown-linux-gnu-
51 > CHK include/linux/version.h
52 > SPLIT include/linux/autoconf.h -> include/config/*
53 > CC arch/mips/kernel/asm-offsets.s
54 > GEN include/asm-mips/asm-offsets.h
55 > CC scripts/mod/empty.o
56 > HOSTCC scripts/mod/mk_elfconfig
57 > MKELF scripts/mod/elfconfig.h
58 > HOSTCC scripts/mod/file2alias.o
59 > HOSTCC scripts/mod/modpost.o
60 > HOSTCC scripts/mod/sumversion.o
61 > HOSTLD scripts/mod/modpost
62 > HOSTCC scripts/pnmtologo
63 > HOSTCC scripts/conmakehash
64 > HOSTCC scripts/bin2c
65 > CC init/main.o
66 > CHK include/linux/compile.h
67 > UPD include/linux/compile.h
68 > CC init/version.o
69 > CC init/do_mounts.o
70 > LD init/mounts.o
71 > mips64-unknown-linux-gnu-ld: cannot open linker script file
72 > ldscripts/elf64btsmip.xr: No such file or directory
73 > make[1]: *** [init/mounts.o] Error 1
74 > make: *** [init] Error 2
75 >
76 >
77 > Here is some system information that I hope will assist someone in pointing
78 > me at any mistakes I might have made:
79 >
80 > [ebuild R ] sys-devel/binutils-2.16.1-r3 USE="-multislot -multitarget
81 > -nls -test -vanilla" 12,368 kB
82 >
83 > [ebuild R ] sys-devel/gcc-4.1.1 USE="(-altivec) -bootstrap -build -doc
84 > -fortran -gcj -gtk (-hardened) -ip28 -ip32r10k -mudflap (-multilib)
85 > -multislot (-n32) (-n64) -nls -nocxx -objc -objc++ -objc-gc -test -vanilla"
86 > 38,303 kB
87 >
88 > nano linux # gcc-config -l
89 > [1] mips-unknown-linux-gnu-4.1.1 *
90 > [2] mips64-unknown-linux-gnu-4.1.1 *
91 >
92 >
93 >
94 > --
95 > Michael D. Bevilacqua
96 > michael@××××××××××.us
97 >
98 >
99 --
100 gentoo-mips@g.o mailing list