- Timestamp:
- Apr 13, 2006, 12:10:33 AM (19 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 9e4aab3
- Parents:
- 2b244a4
- Location:
- BOOK/cross-tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/alpha/glibc-headers.xml
r2b244a4 r7482ad3 23 23 <title>Installation of Glibc Headers</title> 24 24 25 < xi:include xmlns:xi="http://www.w3.org/2003/XInclude"26 href="../x86/glibc-headers.xml"27 xpointer="xpointer(//*[@os='s1'])"/>28 29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"30 href="../x86/glibc-headers.xml" 31 xpointer="xpointer(//*[@os='s2'])"/>25 <para os="s1">The following sed removes a dependency of gcc 3.4.x from 26 the glibc we are using in cross-lfs. The reason we are changing it is 27 because this only installs the headers, no compiling takes place. In the 28 next glibc chapter, we use the gcc that's build right after this chapter.</para> 29 30 <screen os="s2"><userinput>cp configure{,.orig} 31 sed -e 's/3.4/3.[0-9]/g' configure.orig > configure</userinput></screen> 32 32 33 33 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 43 43 xpointer="xpointer(//*[@os='dd'])"/> 44 44 45 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 46 href="../common/glibc.xml" 47 xpointer="xpointer(//*[@os='de'])"/> 48 49 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 50 href="../x86/glibc-headers.xml" 51 xpointer="xpointer(//*[@os='df'])"/> 52 53 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 54 href="../x86/glibc-headers.xml" 55 xpointer="xpointer(//*[@os='dg'])"/> 45 <screen os="de"><userinput>echo "libc_cv_forced_unwind=yes" > config.cache 46 echo "libc_cv_c_cleanup=yes" >> config.cache 47 echo "libc_cv_mlong_double_128=yes" >> config.cache 48 echo "ibc_cv_alpha_tls=yes" >> config.cache</userinput></screen> 56 49 57 50 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" … … 59 52 xpointer="xpointer(//*[@os='g'])"/> 60 53 61 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 62 href="../x86/glibc-headers.xml" 63 xpointer="xpointer(//*[@os='s3'])"/> 54 <screen os="s3"><userinput>CC=gcc ../glibc-&glibc-version;/configure --prefix=/tools \ 55 --host=${LFS_TARGET} --build=${LFS_HOST} \ 56 --disable-sanity-checks --enable-kernel=2.6.0 \ 57 --with-headers=/tools/include --cache-file=config.cache \ 58 --with-binutils=/cross-tools/${LFS_TARGET}/bin</userinput></screen> 64 59 65 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 66 href="../x86/glibc-headers.xml" 67 xpointer="xpointer(//*[@os='e1'])"/> 60 <warning os="e1"> 61 <para><emphasis>Any</emphasis> error message you see about nptl at this point 62 can safely be ignored.</para> 63 </warning> 68 64 69 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 70 href="../x86/glibc-headers.xml" 71 xpointer="xpointer(//*[@os='ca'])"/> 65 <variablelist os="ca"> 66 <title>The meaning of the configure options:</title> 67 68 <varlistentry os="ca1"> 69 <term><parameter>CC=gcc</parameter></term> 70 <listitem> 71 <para>Tells GLIBC to use the hosts GCC compiler.</para> 72 </listitem> 73 </varlistentry> 74 75 <varlistentry os="ca2"> 76 <term><parameter>--prefix=/tools</parameter></term> 77 <listitem> 78 <para>This tells the configure script to prepare to install the 79 package in the <filename class="directory">/tools</filename> 80 directory.</para> 81 </listitem> 82 </varlistentry> 83 84 <varlistentry os="ca3"> 85 <term><parameter>--build=${LFS_HOST}</parameter></term> 86 <listitem> 87 <para>When used with --host, this creates a cross-architecture 88 executable that creates files for ${LFS_TARGET} but runs on ${LFS_HOST).</para> 89 </listitem> 90 </varlistentry> 91 92 <varlistentry os="ca4"> 93 <term><parameter>--host=${LFS_TARGET}</parameter></term> 94 <listitem> 95 <para>When used with --build, this creates a cross-architecture 96 executable that creates files for ${LFS_TARGET} but runs on ${LFS_HOST).</para> 97 </listitem> 98 </varlistentry> 99 100 <varlistentry os="ca5"> 101 <term><parameter>--disable-sanity-checks</parameter></term> 102 <listitem> 103 <para>This switch disables any checks that are in place.</para> 104 </listitem> 105 </varlistentry> 106 107 <varlistentry os="ca6"> 108 <term><parameter>--enable-kernel=2.6.0</parameter></term> 109 <listitem> 110 <para>This tells Glibc to compile the library with support 111 for 2.6.x Linux kernels.</para> 112 </listitem> 113 </varlistentry> 114 115 <varlistentry os="ca7"> 116 <term><parameter>--with-headers=/tools/include</parameter></term> 117 <listitem> 118 <para>This tells Glibc to compile itself against the headers 119 recently installed to the <filename class="directory">/tools</filename> 120 directory, so that it knows exactly what features the kernel has 121 and can optimize itself accordingly.</para> 122 </listitem> 123 </varlistentry> 124 125 <varlistentry os="ca8"> 126 <term><parameter>--with-binutils=/cross-tools/${LFS_TARGET}/bin</parameter></term> 127 <listitem> 128 <para>This tells GLIBC to use the binutils for our specific target architecture.</para> 129 </listitem> 130 </varlistentry> 131 132 </variablelist> 133 134 <para os="cb">Now, install the headers:</para> 72 135 73 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 74 href="../x86/glibc-headers.xml" 75 xpointer="xpointer(//*[@os='cb'])"/> 136 <screen os="cd"><userinput>make install-headers</userinput></screen> 76 137 77 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 78 href="../x86/glibc-headers.xml" 79 xpointer="xpointer(//*[@os='cd'])"/> 138 <para os="ce">Some files aren't installed by the above command, then 139 we will copy the header files we need:</para> 80 140 81 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 82 href="../x86/glibc-headers.xml" 83 xpointer="xpointer(//*[@os='ce'])"/> 141 <para os="cf">First we will copy a common file over to <filename 142 class="directory">/tools/include</filename>:</para> 84 143 85 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 86 href="../x86/glibc-headers.xml" 87 xpointer="xpointer(//*[@os='cf'])"/> 144 <screen os="cg"><userinput>install -d /tools/include/bits 145 cp bits/stdio_lim.h /tools/include/bits</userinput></screen> 88 146 89 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 90 href="../x86/glibc-headers.xml" 91 xpointer="xpointer(//*[@os='cg'])"/> 147 <para os="ch">Now we will create a blank stub file:</para> 92 148 93 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 94 href="../x86/glibc-headers.xml" 95 xpointer="xpointer(//*[@os='ch'])"/> 149 <screen os="ci"><userinput>touch /tools/include/gnu/stubs.h</userinput></screen> 96 150 97 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 98 href="../x86/glibc-headers.xml" 99 xpointer="xpointer(//*[@os='ci'])"/> 100 101 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 102 href="../x86/glibc-headers.xml" 103 xpointer="xpointer(//*[@os='cj'])"/> 104 105 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 106 href="../x86/glibc-headers.xml" 107 xpointer="xpointer(//*[@os='ck'])"/> 108 109 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 110 href="../x86/glibc-headers.xml" 111 xpointer="xpointer(//*[@os='cl'])"/> 112 151 <para os="cj">For NPTL we use the following command:</para> 152 113 153 <screen><userinput>cp -v ../glibc-&glibc-version;/nptl/sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h /tools/include/bits/</userinput></screen> 114 154 -
BOOK/cross-tools/ppc64/glibc-headers.xml
r2b244a4 r7482ad3 24 24 25 25 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 26 href="../ x86/glibc-headers.xml"26 href="../alpha/glibc-headers.xml" 27 27 xpointer="xpointer(//*[@os='s1'])"/> 28 28 29 29 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 30 href="../ x86/glibc-headers.xml"30 href="../alpha/glibc-headers.xml" 31 31 xpointer="xpointer(//*[@os='s2'])"/> 32 32 … … 48 48 49 49 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 50 href="../x86/glibc-headers.xml"51 xpointer="xpointer(//*[@os='df'])"/>52 53 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"54 href="../x86/glibc-headers.xml"55 xpointer="xpointer(//*[@os='dg'])"/>56 57 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"58 50 href="../../final-system/common/glibc.xml" 59 51 xpointer="xpointer(//*[@os='g'])"/> 60 52 61 53 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 62 href="../ x86/glibc-headers.xml"54 href="../alpha/glibc-headers.xml" 63 55 xpointer="xpointer(//*[@os='s3'])"/> 64 56 65 57 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 66 href="../ x86/glibc-headers.xml"58 href="../alpha/glibc-headers.xml" 67 59 xpointer="xpointer(//*[@os='e1'])"/> 68 60 69 61 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 70 href="../ x86/glibc-headers.xml"62 href="../alpha/glibc-headers.xml" 71 63 xpointer="xpointer(//*[@os='ca'])"/> 72 64 73 65 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 74 href="../ x86/glibc-headers.xml"66 href="../alpha/glibc-headers.xml" 75 67 xpointer="xpointer(//*[@os='cb'])"/> 76 68 77 69 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 78 href="../ x86/glibc-headers.xml"70 href="../alpha/glibc-headers.xml" 79 71 xpointer="xpointer(//*[@os='cd'])"/> 80 72 81 73 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 82 href="../ x86/glibc-headers.xml"74 href="../alpha/glibc-headers.xml" 83 75 xpointer="xpointer(//*[@os='ce'])"/> 84 76 85 77 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 86 href="../ x86/glibc-headers.xml"78 href="../alpha/glibc-headers.xml" 87 79 xpointer="xpointer(//*[@os='cf'])"/> 88 80 89 81 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 90 href="../ x86/glibc-headers.xml"82 href="../alpha/glibc-headers.xml" 91 83 xpointer="xpointer(//*[@os='cg'])"/> 92 84 93 85 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 94 href="../ x86/glibc-headers.xml"86 href="../alpha/glibc-headers.xml" 95 87 xpointer="xpointer(//*[@os='ch'])"/> 96 88 97 89 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 98 href="../ x86/glibc-headers.xml"90 href="../alpha/glibc-headers.xml" 99 91 xpointer="xpointer(//*[@os='ci'])"/> 100 92 101 93 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 102 href="../ x86/glibc-headers.xml"94 href="../alpha/glibc-headers.xml" 103 95 xpointer="xpointer(//*[@os='cj'])"/> 104 105 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"106 href="../x86/glibc-headers.xml"107 xpointer="xpointer(//*[@os='ck'])"/>108 109 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"110 href="../x86/glibc-headers.xml"111 xpointer="xpointer(//*[@os='cl'])"/>112 96 113 97 <screen os="cm"><userinput>cp -v ../glibc-&glibc-version;/nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h /tools/include/bits/</userinput></screen>
Note:
See TracChangeset
for help on using the changeset viewer.