Gentoo Archives: gentoo-alt

From: Galaxy <galaxy001@×××××.com>
To: Johan Hattne <gentoo-alt@l.g.o>
Subject: Re: [gentoo-alt] How to make prefix using new glibc ?
Date: Wed, 18 Aug 2010 02:55:22
Message-Id: 1405517169.20100818105508@gmail.com
In Reply to: Re: [gentoo-alt] How to make prefix using new glibc ? by Johan Hattne
1 qdepends gcc-4.4
2 sys-devel/gcc-4.4.3-r2: >=sys-libs/zlib-1.1.4 >=sys-devel/gcc-config-1.4 virtual/libiconv >=dev-libs/gmp-4.2.1 >=dev-libs/mpfr-2.3.2 >=sys-libs/ncurses-5.2-r2 sys-devel/gettext >=sys-apps/texinfo-4.8 >=sys-devel/bison-1.875 >=sys-libs/glibc-2.8 >=sys-devel/binutils-2.15.94 sys-devel/gnuconfig >=sys-apps/sed-4
3
4 The '>=sys-libs/glibc-2.8' indicate that I can never run gcc-4.4 under glibc-2.4.
5 That is why I need to prefix another glibc.
6
7 About kernel, since it cannot be done without root private, I will not try that.
8
9 I think the benefit of a prefixed environment is to make us run things that the root are too lazy to enable.
10 And this kind of root is what I am facing.
11
12 > On 08/17/10 01:14, Galaxy wrote:
13
14 >> I googled and find http://www.nslu2-linux.org/wiki/HowTo/SetUpAToolChainOnAMac ,
15 >> which says that it is possible to compile a GNU tool chain over Mac OS X, a BSD release.
16 >> And since it works on BSD with some tweaks, it should also works on Linux.
17
18 > I'm exposing my ignorance here, but I really don't think you need all
19 > that. The page linked above seems to deal with cross-compiling for ARM,
20 > which I think is a different problem from what you're having.
21
22 > As I think of it, libc isn't really part of your toolchain, but rather
23 > your interface to the system (kernel) on which your prefix is running.
24 > You may be able to compile your own libc--whether it's GNU's or somebody
25 > else's--but then you've just moved the prefix-system interface from libc
26 > to the kernel, and you've got to (manually) ensure that your libc plays
27 > nice with all the kernels you intend to use your prefix on. You may
28 > similarly be able to compile a kernel with your prefix software, but
29 > then you've really lost the benefit of the prefixed environment.
30
31 > // Cheers; Johan

Replies