source: BOOK/cross-tools/ppc64/glibc.xml@ 69af1b1

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 69af1b1 was c5fc724, checked in by Joe Ciccone <jciccone@…>, 18 years ago

Finished the glibc update and did the gcc update for the sysroot build.

  • Property mode set to 100644
File size: 6.8 KB
Line 
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 <para >The kernel's <filename class="directory">asm-ppc</filename> and
54 <filename class="directory">asm-ppc64</filename> headers were merged into
55 <filename class="directory">asm-powerpc</filename> during 2.6.15. Glibc for
56 powerpc installs a version of <filename>procfs.h</filename> which looks for
57 the __PPC64_ELF_H symbol to determine if it is running on powerpc64. That
58 symbol disappeared in the merge, its replacement does not indicate if the
59 machine is running as 64 bit. The absence of the original symbol causes
60 the 32-bit definitions to be used, which leads to compilation failure early
61 in 64-bit glibc when an incompatible kernel definition is included. The
62 following sed will correct this, we need to repeat it every time we install
63 either size of glibc.</para>
64
65<screen os="t2"><userinput>cp -v sysdeps/unix/sysv/linux/powerpc/sys/procfs.h{,.orig}
66sed 's/__PPC64_ELF_H/__powerpc64__/' \
67 sysdeps/unix/sysv/linux/powerpc/sys/procfs.h.orig \
68 > sysdeps/unix/sysv/linux/powerpc/sys/procfs.h</userinput></screen>
69
70 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
71 href="../common/glibc.xml"
72 xpointer="xpointer(//*[@os='e'])"/>
73
74 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
75 href="../common/glibc.xml"
76 xpointer="xpointer(//*[@os='f'])"/>
77
78 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
79 href="../common/glibc.xml"
80 xpointer="xpointer(//*[@os='dd'])"/>
81
82 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
83 href="../common/glibc.xml"
84 xpointer="xpointer(//*[@os='de'])"/>
85
86 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
87 href="../common/glibc.xml"
88 xpointer="xpointer(//*[@os='n1'])"/>
89
90 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
91 href="../common/glibc.xml"
92 xpointer="xpointer(//*[@os='n2'])"/>
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=${CLFS}/cross-tools/bin \
105 --with-headers=${CLFS}/tools/include \
106 --cache-file=config.cache</userinput></screen>
107
108 <variablelist os="dg">
109 <title>The meaning of the new configure options:</title>
110
111 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
112 href="../common/glibc.xml"
113 xpointer="xpointer(//*[@os='dg1'])"/>
114
115 <varlistentry os="ea1">
116 <term><parameter>CC="${CLFS_TARGET}-gcc ${BUILD32}"</parameter></term>
117 <listitem>
118 <para>Forces Glibc to utilize our target architecture GCC utilizing
119 the 32 Bit flags.</para>
120 </listitem>
121 </varlistentry>
122
123 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
124 href="../common/glibc.xml"
125 xpointer="xpointer(//*[@os='dg3'])"/>
126
127 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
128 href="../common/glibc.xml"
129 xpointer="xpointer(//*[@os='dg4'])"/>
130
131 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
132 href="../common/glibc.xml"
133 xpointer="xpointer(//*[@os='dg5'])"/>
134
135 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
136 href="../common/glibc.xml"
137 xpointer="xpointer(//*[@os='dg6'])"/>
138
139 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
140 href="../common/glibc.xml"
141 xpointer="xpointer(//*[@os='dg7'])"/>
142
143 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
144 href="../common/glibc.xml"
145 xpointer="xpointer(//*[@os='dg8'])"/>
146
147 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
148 href="../common/glibc.xml"
149 xpointer="xpointer(//*[@os='dg9'])"/>
150
151 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
152 href="../common/glibc.xml"
153 xpointer="xpointer(//*[@os='dg10'])"/>
154
155 </variablelist>
156
157 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
158 href="../common/glibc.xml"
159 xpointer="xpointer(//*[@os='dh'])"/>
160
161 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
162 href="../common/glibc.xml"
163 xpointer="xpointer(//*[@os='di'])"/>
164
165 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
166 href="../common/glibc.xml"
167 xpointer="xpointer(//*[@os='dj'])"/>
168
169 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
170 href="../common/glibc.xml"
171 xpointer="xpointer(//*[@os='dk'])"/>
172
173 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
174 href="../common/glibc.xml"
175 xpointer="xpointer(//*[@os='dl'])"/>
176
177 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
178 href="../common/glibc.xml"
179 xpointer="xpointer(//*[@os='dm'])"/>
180
181 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
182 href="../common/glibc.xml"
183 xpointer="xpointer(//*[@os='dn'])"/>
184
185 </sect2>
186
187 <sect2 role="content">
188 <title/>
189
190 <para>Details on this package are located in <xref
191 linkend="contents-glibc" role="."/></para>
192
193 </sect2>
194
195</sect1>
Note: See TracBrowser for help on using the repository browser.