1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-cross-tools-glibc" role="wrap">
|
---|
9 | <?dbhtml filename="glibc.html"?>
|
---|
10 |
|
---|
11 | <title>Glibc-&glibc-version; 32 Bit</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-cross-tools-glibc">
|
---|
14 | <primary sortas="a-Glibc">Glibc</primary>
|
---|
15 | <secondary>cross tools, 32 Bit</secondary>
|
---|
16 | </indexterm>
|
---|
17 |
|
---|
18 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
19 | href="../../final-system/common/glibc.xml"
|
---|
20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
21 |
|
---|
22 | <sect2 role="installation">
|
---|
23 | <title>Installation of Glibc</title>
|
---|
24 |
|
---|
25 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
26 | href="../common/glibc.xml"
|
---|
27 | xpointer="xpointer(//*[@os='da'])"/>
|
---|
28 |
|
---|
29 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
30 | href="../common/glibc.xml"
|
---|
31 | xpointer="xpointer(//*[@os='db'])"/>
|
---|
32 |
|
---|
33 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
34 | href="../common/glibc.xml"
|
---|
35 | xpointer="xpointer(//*[@os='dc'])"/>
|
---|
36 |
|
---|
37 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
38 | href="../../final-system/common/glibc.xml"
|
---|
39 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
40 |
|
---|
41 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
42 | href="../../final-system/common/glibc.xml"
|
---|
43 | xpointer="xpointer(//*[@os='d'])"/>
|
---|
44 |
|
---|
45 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
46 | href="../common/glibc.xml"
|
---|
47 | xpointer="xpointer(//*[@os='p1'])"/>
|
---|
48 |
|
---|
49 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
50 | href="../common/glibc.xml"
|
---|
51 | xpointer="xpointer(//*[@os='p2'])"/>
|
---|
52 |
|
---|
53 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
54 | href="../common/glibc.xml"
|
---|
55 | xpointer="xpointer(//*[@os='s1'])"/>
|
---|
56 |
|
---|
57 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
58 | href="../common/glibc.xml"
|
---|
59 | xpointer="xpointer(//*[@os='s2'])"/>
|
---|
60 |
|
---|
61 | <para >The kernel's <filename class="directory">asm-ppc</filename> and
|
---|
62 | <filename class="directory">asm-ppc64</filename> headers were merged into
|
---|
63 | <filename class="directory">asm-powerpc</filename> during 2.6.15. Glibc for
|
---|
64 | powerpc installs a version of <filename>procfs.h</filename> which looks for
|
---|
65 | the __PPC64_ELF_H symbol to determine if it is running on powerpc64. That
|
---|
66 | symbol disappeared in the merge, its replacement does not indicate if the
|
---|
67 | machine is running as 64 bit. The absence of the original symbol causes
|
---|
68 | the 32-bit definitions to be used, which leads to compilation failure early
|
---|
69 | in 64-bit glibc when an incompatible kernel definition is included. The
|
---|
70 | following sed will correct this, we need to repeat it every time we install
|
---|
71 | either size of glibc.</para>
|
---|
72 |
|
---|
73 | <screen os="t2"><userinput>cp -v sysdeps/unix/sysv/linux/powerpc/sys/procfs.h{,.orig}
|
---|
74 | sed 's/__PPC64_ELF_H/__powerpc64__/' \
|
---|
75 | sysdeps/unix/sysv/linux/powerpc/sys/procfs.h.orig \
|
---|
76 | > sysdeps/unix/sysv/linux/powerpc/sys/procfs.h</userinput></screen>
|
---|
77 |
|
---|
78 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
79 | href="../common/glibc.xml"
|
---|
80 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
81 |
|
---|
82 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
83 | href="../common/glibc.xml"
|
---|
84 | xpointer="xpointer(//*[@os='f'])"/>
|
---|
85 |
|
---|
86 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
87 | href="../common/glibc.xml"
|
---|
88 | xpointer="xpointer(//*[@os='dd'])"/>
|
---|
89 |
|
---|
90 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
91 | href="../common/glibc.xml"
|
---|
92 | xpointer="xpointer(//*[@os='de'])"/>
|
---|
93 |
|
---|
94 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
95 | href="../common/glibc.xml"
|
---|
96 | xpointer="xpointer(//*[@os='g'])"/>
|
---|
97 |
|
---|
98 | <screen os="df"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILD32}" \
|
---|
99 | AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
|
---|
100 | ../glibc-&glibc-version;/configure --prefix=/tools \
|
---|
101 | --host=${CLFS_TARGET32} --build=${CLFS_HOST} \
|
---|
102 | --disable-profile --enable-add-ons \
|
---|
103 | --with-tls --enable-kernel=2.6.0 --with-__thread \
|
---|
104 | --with-binutils=/cross-tools/bin --with-headers=/tools/include \
|
---|
105 | --cache-file=config.cache</userinput></screen>
|
---|
106 |
|
---|
107 | <variablelist os="dg">
|
---|
108 | <title>The meaning of the new configure options:</title>
|
---|
109 |
|
---|
110 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
111 | href="../common/glibc.xml"
|
---|
112 | xpointer="xpointer(//*[@os='dg1'])"/>
|
---|
113 |
|
---|
114 | <varlistentry os="ea1">
|
---|
115 | <term><parameter>CC="${CLFS_TARGET}-gcc ${BUILD32}"</parameter></term>
|
---|
116 | <listitem>
|
---|
117 | <para>Forces Glibc to utilize our target architecture GCC utilizing
|
---|
118 | the 32 Bit flags.</para>
|
---|
119 | </listitem>
|
---|
120 | </varlistentry>
|
---|
121 |
|
---|
122 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
123 | href="../common/glibc.xml"
|
---|
124 | xpointer="xpointer(//*[@os='dg3'])"/>
|
---|
125 |
|
---|
126 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
127 | href="../common/glibc.xml"
|
---|
128 | xpointer="xpointer(//*[@os='dg4'])"/>
|
---|
129 |
|
---|
130 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
131 | href="../common/glibc.xml"
|
---|
132 | xpointer="xpointer(//*[@os='dg5'])"/>
|
---|
133 |
|
---|
134 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
135 | href="../common/glibc.xml"
|
---|
136 | xpointer="xpointer(//*[@os='dg6'])"/>
|
---|
137 |
|
---|
138 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
139 | href="../common/glibc.xml"
|
---|
140 | xpointer="xpointer(//*[@os='dg7'])"/>
|
---|
141 |
|
---|
142 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
143 | href="../common/glibc.xml"
|
---|
144 | xpointer="xpointer(//*[@os='dg8'])"/>
|
---|
145 |
|
---|
146 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
147 | href="../common/glibc.xml"
|
---|
148 | xpointer="xpointer(//*[@os='dg9'])"/>
|
---|
149 |
|
---|
150 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
151 | href="../common/glibc.xml"
|
---|
152 | xpointer="xpointer(//*[@os='dg10'])"/>
|
---|
153 |
|
---|
154 | </variablelist>
|
---|
155 |
|
---|
156 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
157 | href="../common/glibc.xml"
|
---|
158 | xpointer="xpointer(//*[@os='dh'])"/>
|
---|
159 |
|
---|
160 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
161 | href="../common/glibc.xml"
|
---|
162 | xpointer="xpointer(//*[@os='di'])"/>
|
---|
163 |
|
---|
164 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
165 | href="../common/glibc.xml"
|
---|
166 | xpointer="xpointer(//*[@os='dj'])"/>
|
---|
167 |
|
---|
168 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
169 | href="../common/glibc.xml"
|
---|
170 | xpointer="xpointer(//*[@os='dk'])"/>
|
---|
171 |
|
---|
172 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
173 | href="../common/glibc.xml"
|
---|
174 | xpointer="xpointer(//*[@os='dl'])"/>
|
---|
175 |
|
---|
176 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
177 | href="../common/glibc.xml"
|
---|
178 | xpointer="xpointer(//*[@os='dm'])"/>
|
---|
179 |
|
---|
180 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
181 | href="../common/glibc.xml"
|
---|
182 | xpointer="xpointer(//*[@os='dn'])"/>
|
---|
183 |
|
---|
184 | </sect2>
|
---|
185 |
|
---|
186 | <sect2 role="content">
|
---|
187 | <title/>
|
---|
188 |
|
---|
189 | <para>Details on this package are located in <xref
|
---|
190 | linkend="contents-glibc" role="."/></para>
|
---|
191 |
|
---|
192 | </sect2>
|
---|
193 |
|
---|
194 | </sect1>
|
---|