source: BOOK/cross-tools/alpha/eglibc-headers.xml@ 2c56282

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 2c56282 was 52ed4da, checked in by William Harrington <kb0iic@…>, 11 years ago

Update eglibc install commands for 2.17 update and add time zone data install.

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