source: BOOK/cross-tools/alpha/eglibc-headers.xml@ 5cabdc2

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 5cabdc2 was df4f9ca, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Updated EGlibc 2.12 to r12509. Removed the Make 3.82 Patch, issue has been fixed upstream.

  • Property mode set to 100644
File size: 6.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-cross-tools-eglibc-headers" role="wrap">
9 <?dbhtml filename="eglibc-headers.html"?>
10
11 <title>EGLIBC-&eglibc-version; Headers</title>
12
13 <indexterm zone="ch-cross-tools-eglibc-headers">
14 <primary sortas="a-EGLIBC">EGLIBC</primary>
15 <secondary>cross tools, headers</secondary>
16 </indexterm>
17
18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
19 href="../../final-system/common/eglibc.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
21
22 <sect2 role="installation">
23 <title>Installation of EGLIBC Headers</title>
24
25 <para os="s1">EGLIBC's <filename>configure</filename> script checks the
26 version of GCC, and will fail if it's less than 3.4. The next EGLIBC build
27 will use the GCC that will be installed into
28 <filename class="directory">/cross-tools</filename> in the next step.
29 However, in this step only the EGLIBC headers are being installed - no
30 compiling is taking place - so the GCC version isn't important. The
31 following sed removes the dependency of GCC 3.4.x:</para>
32
33<screen os="s2"><userinput>cp -v configure{,.orig}
34sed -e 's/3.4/3.[0-9]/g' configure.orig &gt; configure</userinput></screen>
35
36 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
37 href="../../final-system/common/eglibc.xml"
38 xpointer="xpointer(//*[@os='e'])"/>
39
40 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
41 href="../../final-system/common/eglibc.xml"
42 xpointer="xpointer(//*[@os='f'])"/>
43
44 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
45 href="../common/eglibc.xml"
46 xpointer="xpointer(//*[@os='dd'])"/>
47
48<screen os="de"><userinput>cat &gt; config.cache &lt;&lt; "EOF"
49libc_cv_forced_unwind=yes
50libc_cv_c_cleanup=yes
51libc_cv_mlong_double_128=yes
52libc_cv_alpha_tls=yes
53libc_cv_gnu89_inline=yes
54libc_cv_ssp=no
55EOF</userinput></screen>
56
57 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
58 href="../../final-system/common/eglibc.xml"
59 xpointer="xpointer(//*[@os='g'])"/>
60
61<screen os="s3"><userinput>CC=gcc ../eglibc-&eglibc-version;/configure --prefix=/tools \
62 --host=${CLFS_TARGET} --build=${CLFS_HOST} \
63 --disable-sanity-checks --enable-kernel=2.6.0 \
64 --with-headers=/tools/include --cache-file=config.cache \
65 --with-binutils=/cross-tools/${CLFS_TARGET}/bin</userinput></screen>
66
67 <note os="e1">
68 <para><emphasis>Any</emphasis> error message you see about nptl at this point
69 can safely be ignored.</para>
70 </note>
71
72 <variablelist os="ca">
73 <title>The meaning of the configure options:</title>
74
75 <varlistentry os="ca1">
76 <term><parameter>CC=gcc</parameter></term>
77 <listitem>
78 <para>Tells EGLIBC to use the host's GCC compiler.</para>
79 </listitem>
80 </varlistentry>
81
82 <varlistentry os="ca2">
83 <term><parameter>--prefix=/tools</parameter></term>
84 <listitem>
85 <para>This tells the configure script to prepare to install the
86 package in the <filename class="directory">/tools</filename>
87 directory.</para>
88 </listitem>
89 </varlistentry>
90
91 <varlistentry os="ca3">
92 <term><parameter>--build=${CLFS_HOST}</parameter></term>
93 <listitem>
94 <para>When used with --host, this creates a cross-architecture
95 executable that creates files for ${CLFS_TARGET} but runs on ${CLFS_HOST}.</para>
96 </listitem>
97 </varlistentry>
98
99 <varlistentry os="ca4">
100 <term><parameter>--host=${CLFS_TARGET}</parameter></term>
101 <listitem>
102 <para>When used with --build, this creates a cross-architecture
103 executable that creates files for ${CLFS_TARGET} but runs on ${CLFS_HOST}.</para>
104 </listitem>
105 </varlistentry>
106
107 <varlistentry os="ca5">
108 <term><parameter>--disable-sanity-checks</parameter></term>
109 <listitem>
110 <para>This switch disables any checks that are in place.</para>
111 </listitem>
112 </varlistentry>
113
114 <varlistentry os="ca6">
115 <term><parameter>--enable-kernel=2.6.0</parameter></term>
116 <listitem>
117 <para>This tells EGLIBC to compile the library with support
118 for 2.6.x Linux kernels.</para>
119 </listitem>
120 </varlistentry>
121
122 <varlistentry os="ca7">
123 <term><parameter>--with-headers=/tools/include</parameter></term>
124 <listitem>
125 <para>This tells EGLIBC to compile itself against the headers
126 recently installed to the <filename class="directory">/tools</filename>
127 directory, so that it knows exactly what features the kernel has
128 and can optimize itself accordingly.</para>
129 </listitem>
130 </varlistentry>
131
132 <varlistentry os="ca8">
133 <term><parameter>--with-binutils=/cross-tools/${CLFS_TARGET}/bin</parameter></term>
134 <listitem>
135 <para>This tells EGLIBC to use the Binutils for our specific target architecture.</para>
136 </listitem>
137 </varlistentry>
138
139 </variablelist>
140
141 <para os="cb">Now, install the headers:</para>
142
143<screen os="cd"><userinput>make install-headers</userinput></screen>
144
145 <para os="ce">Some files aren't installed by the above command, so
146 we will copy the additional header files we need.</para>
147
148 <para os="cf">First we will copy a common file over to <filename
149 class="directory">/tools/include</filename>:</para>
150
151<screen os="cg"><userinput>install -dv /tools/include/bits
152cp -v bits/stdio_lim.h /tools/include/bits</userinput></screen>
153
154 <para os="ch">Now we will create a blank stub file:</para>
155
156<screen os="ci"><userinput>touch /tools/include/gnu/stubs.h</userinput></screen>
157
158 <para os="cj">Another header is needed for NPTL:</para>
159
160<screen><userinput>cp -v ../eglibc-&eglibc-version;/nptl/sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h \
161 /tools/include/bits/</userinput></screen>
162
163 </sect2>
164
165 <sect2 role="content">
166 <title/>
167
168 <para>Details on this package are located in <xref
169 linkend="contents-eglibc" role="."/></para>
170
171 </sect2>
172
173</sect1>
Note: See TracBrowser for help on using the repository browser.