source: BOOK/cross-tools/ppc64/glibc.xml@ 0c3999a

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 0c3999a was 07114c98, checked in by Jim Gifford <clfs@…>, 18 years ago

r4209@server: jim | 2006-07-01 12:46:18 -0700
Updated variables -

LFS_TARGET is now CLFS_TARGET
LFS_HOST is now CLFS_HOST
LFS_TARGET32 is now CLFS_TARGET32
LFS is now CLFS
/mnt/lfs is now /mnt/clfs


  • Property mode set to 100644
File size: 6.5 KB
RevLine 
[a80ea23]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='s1'])"/>
48
49 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
50 href="../common/glibc.xml"
51 xpointer="xpointer(//*[@os='s2'])"/>
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
[661d1a4]65<screen os="t2"><userinput>cp -v sysdeps/unix/sysv/linux/powerpc/sys/procfs.h{,.orig}
[a80ea23]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='g'])"/>
89
[07114c98]90<screen os="df"><userinput>BUILD_CC="gcc" CC="${CLFS_TARGET}-gcc ${BUILD32}" \
91 AR="${CLFS_TARGET}-ar" RANLIB="${CLFS_TARGET}-ranlib" \
[a80ea23]92 ../glibc-&glibc-version;/configure --prefix=/tools \
[07114c98]93 --host=${CLFS_TARGET32} --build=${CLFS_HOST} \
[a80ea23]94 --disable-profile --enable-add-ons \
95 --with-tls --enable-kernel=2.6.0 --with-__thread \
96 --with-binutils=/cross-tools/bin --with-headers=/tools/include \
97 --cache-file=config.cache</userinput></screen>
98
99 <variablelist os="dg">
100 <title>The meaning of the new configure options:</title>
101
102 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
103 href="../common/glibc.xml"
104 xpointer="xpointer(//*[@os='dg1'])"/>
105
106 <varlistentry os="ea1">
[07114c98]107 <term><parameter>CC="${CLFS_TARGET}-gcc ${BUILD32}"</parameter></term>
[a80ea23]108 <listitem>
109 <para>Forces Glibc to utilize our target architecture GCC utilizing
110 the 32 Bit flags.</para>
111 </listitem>
112 </varlistentry>
113
114 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
115 href="../common/glibc.xml"
116 xpointer="xpointer(//*[@os='dg3'])"/>
117
118 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
119 href="../common/glibc.xml"
120 xpointer="xpointer(//*[@os='dg4'])"/>
121
122 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
123 href="../common/glibc.xml"
124 xpointer="xpointer(//*[@os='dg5'])"/>
125
126 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
127 href="../common/glibc.xml"
128 xpointer="xpointer(//*[@os='dg6'])"/>
129
130 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
131 href="../common/glibc.xml"
132 xpointer="xpointer(//*[@os='dg7'])"/>
133
134 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
135 href="../common/glibc.xml"
136 xpointer="xpointer(//*[@os='dg8'])"/>
137
138 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
139 href="../common/glibc.xml"
140 xpointer="xpointer(//*[@os='dg9'])"/>
141
142 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
143 href="../common/glibc.xml"
144 xpointer="xpointer(//*[@os='dg10'])"/>
145
146 </variablelist>
147
148 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
149 href="../common/glibc.xml"
150 xpointer="xpointer(//*[@os='dh'])"/>
151
152 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
153 href="../common/glibc.xml"
154 xpointer="xpointer(//*[@os='di'])"/>
155
156 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
157 href="../common/glibc.xml"
158 xpointer="xpointer(//*[@os='dj'])"/>
159
160 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
161 href="../common/glibc.xml"
162 xpointer="xpointer(//*[@os='dk'])"/>
163
164 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
165 href="../common/glibc.xml"
166 xpointer="xpointer(//*[@os='dl'])"/>
167
168 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
169 href="../common/glibc.xml"
170 xpointer="xpointer(//*[@os='dm'])"/>
171
172 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
173 href="../common/glibc.xml"
174 xpointer="xpointer(//*[@os='dn'])"/>
175
176 </sect2>
177
178 <sect2 role="content">
179 <title/>
180
181 <para>Details on this package are located in <xref
182 linkend="contents-glibc" role="."/></para>
183
184 </sect2>
185
186</sect1>
Note: See TracBrowser for help on using the repository browser.