Gentoo Archives: gentoo-amd64

From: Harm Geerts <harmgeerts@××××.nl>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Re: gcc wants emul libc.so.6
Date: Mon, 09 Jan 2006 12:39:43
Message-Id: 200601091338.00970.harmgeerts@home.nl
In Reply to: [gentoo-amd64] Re: gcc wants emul libc.so.6 by Daiajo Tibdixious
1 On Monday 09 January 2006 13:26, Daiajo Tibdixious wrote:
2 > On 1/9/06, Daiajo Tibdixious <daiajo@×××××.com> wrote:
3 > > On 1/9/06, Harm Geerts <harmgeerts@××××.nl> wrote:
4 > > > On Monday 09 January 2006 10:51, Daiajo Tibdixious wrote:
5 > > > > # emerge --ask --verbose gcc
6 > > > >
7 > > > > These are the packages that I would merge, in order:
8 > > > >
9 > > > > Calculating dependencies ...done!
10 > > > > [ebuild N ] sys-devel/gcc-3.4.4-r1 (-altivec) -bootstrap
11 > > > > -boundschecking -build +fortran -gcj +gtk -hardened -ip28 -mudflap
12 > > > > (-multilib) +multislot (-n32) (-n64) +nls -nocxx -nopie -nossp -objc
13 > > > > -objc-gc -vanilla 0 kB
14 > > > >
15 > > > > fails with this error
16 > > > > /usr/x86_64-pc-linux-gnu/bin/ld: cannot find
17 > > > > /emul/linux/x86/lib/libc.so.6
18 > > > >
19 > > > > # equery belongs libc.so.6
20 > > > > Searching for file 'libc.so.6' in *...
21 > > > > sys-libs/glibc-2.3.5-r2 (/lib/libc.so.6 -> libc-2.3.5.so)
22 > > > > # ls -l /lib/libc.so.6
23 > > > > lrwxrwxrwx 1 root root 13 Jan 3 20:27 /lib/libc.so.6 ->
24 > > > > libc-2.3.5.so
25 > > > >
26 > > > > I tried linking this file into the emul directory - it is ignored
27 > > > > since its 64 bit
28 > > > > # file /lib/libc-2.3.5.so
29 > > > > /lib/libc-2.3.5.so: ELF 64-bit LSB shared object, AMD x86-64, version
30 > > > > 1 (SYSV), stripped
31 > > > >
32 > > > > I expected to find the file in one of the emul-linux-x86-* I emerged
33 > > > > baselibs, glibc, gtklibs, & qtlibs with no joy.
34 > > > > Googling turned up similar problems but no solution.
35 > > >
36 > > > http://www.mail-archive.com/gentoo-amd64@l.g.o/msg02747.html
37 > > > They weren't kidding ;)
38 > > > --
39 > >
40 > > When I ugraded to 2005.0, gcc 3.4.4-r1 was working fine.
41 > > Yours truely did the most stupid thing and ummerged gcc, crippling
42 > > python and hence all of portage. I recoverd via the how-to
43 > > specifically for this. Of cousrse there was no binary for gcc 3.4.4 so
44 > > I immediately tried to emerge it.
45 > >
46 > > This is not an upgrade problem, its a dufus admin (me) problem.
47 > >
48 > > BTW the emul-linux-x86-glibc ebuild says "32bit libc is now provided
49 > > by sys-libs/glibc."
50 > > however I can't emerge glibc because it depends on gcc 3.4.4 which needs
51 > > glibc.
52 > > A catch 22.
53 > >
54 > > I need a binary glibc 2.3.5-r2
55 >
56 > Found a binary
57 >
58 > http://chinstrap.alternating.net/files/2005.0/grp/i686/glibc-2.3.5-r2.tbz2
59 > (no 386 there)
60 > only needed 2 files
61 > libc-2.3.5.so
62 > # ln -s libc-2.3.5.so libc.so.6
63 > libc_nonshared.a
64 > now gcc fails with
65 > checking for library containing gettext... configure: error: Link
66 > tests are not allowed after GCC_NO_EXECUTABLES.
67 > make[1]: *** [configure-target-libstdc++-v3] Error 1
68 > make[1]: Leaving directory `/var/tmp/portage/gcc-3.4.4-r1/work/build'
69 > make: *** [profiledbootstrap] Error 2
70 >
71 > !!! ERROR: sys-devel/gcc-3.4.4-r1 failed.
72 > !!! Function gcc_do_make, Line 1319, Exitcode 2
73 > !!! emake failed with profiledbootstrap
74 >
75 > Anyway 23:30 here, probably obvious in the morning.
76 It's a package for i686, that doesn't work well for a amd64 system :)
77
78 You could try to use the glibc files from a stage3 tarball.
79 Don't untar the whole thing in your /, just get the things you need.
80 Not sure which version it has but since your running stable it shouldn't make
81 a whole lot of difference.
82
83 I could package them for you as well, just let me know which useflags you use.
84 And if you use userlocales which locales you want.
85 Mine is build with USE="nls nptl nptlonly pic userlocales"
86 And english and dutch utf8 locales.
87 --
88 gentoo-amd64@g.o mailing list