Ignore:
Timestamp:
04/22/2019 06:40:16 AM (5 years ago)
Author:
Thomas Trepl <thomas@…>
Branches:
multilib-10.1
Children:
5129e84
Parents:
3c72497
Message:

Merge trunk; Add a note about kernel config to hostreqs.xml

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11584 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter06/glibc-32.xml

    r3c72497 rd8fba27  
    2020    <primary sortas="a-Glibc-32">Glibc-32</primary>
    2121  </indexterm>
    22 <!--
    23   <sect2 role="package">
    24     <title/>
    2522
    26     <para>The Glibc package contains the main C library. This library provides
    27     the basic routines for allocating memory, searching directories, opening and
    28     closing files, reading and writing files, string handling, pattern matching,
    29     arithmetic, and so on.</para>
    30 
    31     <segmentedlist>
    32       <segtitle>&buildtime;</segtitle>
    33       <segtitle>&diskspace;</segtitle>
    34 
    35       <seglistitem>
    36         <seg>&glibc-ch6-sbu;</seg>
    37         <seg>&glibc-ch6-du;</seg>
    38       </seglistitem>
    39     </segmentedlist>
    40 
    41   </sect2>
    42 -->
    43 
    44   <!-- ~~~~~~~~~~~~~~~~~~~~ ABI 32 ~~~~~~~~~~~~~~~~~~~~ -->
    45  
    46   <sect2 arch="ml_32,ml_all" role="installation">
    47     <title>Installation of Glibc - 32-bit</title>
     23  <sect2 role="installation">
     24    <title>Preparation to install of ML-Glibc</title>
    4825
    4926<screen><userinput remap="pre">patch -Np1 -i ../&glibc-fhs-patch;</userinput></screen>
     
    5229
    5330<screen><userinput remap="pre">mv /usr/include/limits.h{,.backup} </userinput></screen>
     31
     32  </sect2>
     33
     34  <!-- ~~~~~~~~~~~~~~~~~~~~ ABI 32 ~~~~~~~~~~~~~~~~~~~~ -->
     35 
     36  <sect2 arch="ml_32,ml_all" role="installation">
     37    <title>Installation of Glibc - 32-bit</title>
    5438
    5539    <para>The Glibc documentation recommends building Glibc
     
    6145    <para>Prepare Glibc for compilation:</para>
    6246
    63 <screen><userinput remap="configure">CC="gcc -m32 -ffile-prefix-map=/tools=/usr -isystem /usr/include" \
    64 CXX="g++ -m32 -ffile-prefix-map=/tools=/usr -isystem /usr/include" \
     47<screen><userinput remap="configure">CC="gcc -m32 -ffile-prefix-map=/tools=/usr" \
     48CXX="g++ -m32 -ffile-prefix-map=/tools=/usr" \
    6549../configure --prefix=/usr                          \
    6650             --disable-werror                       \
     
    10286
    10387  <!-- ~~~~~~~~~~~~~~~~~~~~ ABI x32 ~~~~~~~~~~~~~~~~~~~~ -->
     88
     89<!--
     90In case the compilation ends with
     91
     92...
     93if test -r /autolfs/sources/glibc-2.29/build/DESTDIR/usr/include/gnu/stubs-x32.h && cmp -s /autolfs/sources/glibc-2.29/build/stubs.h /autolfs/sources/glibc-2.29/build/DESTDIR/usr/include/gnu/stubs-x32.h; \
     94then echo 'stubs.h unchanged'; \
     95else /usr/bin/install -c -m 644 /autolfs/sources/glibc-2.29/build/stubs.h /autolfs/sources/glibc-2.29/build/DESTDIR/usr/include/gnu/stubs-x32.h; fi
     96rm -f /autolfs/sources/glibc-2.29/build/stubs.h
     97/autolfs/sources/glibc-2.29/build/elf/sln /autolfs/sources/glibc-2.29/build/elf/symlink.list
     98/autolfs/sources/glibc-2.29/build/elf/sln: /autolfs/sources/glibc-2.29/build/elf/sln: cannot execute binary file
     99make[1]: *** [Makefile:106: install-symbolic-link] Error 126
     100make[1]: Leaving directory '/autolfs/sources/glibc-2.29'
     101make: *** [Makefile:12: install] Error 2
     102
     103it is a good sign that the actually running kernel isn't ML-enabled.
     104ArchLinux's kernels are configured like
     105
     106CONFIG_IA32_EMULATION=y
     107# CONFIG_IA32_AOUT is not set
     108# CONFIG_X86_X32 is not set
     109
     110It isn't x32-enabled ==> Error when building x32 stuff
     111-->
    104112 
    105113  <sect2 arch="ml_x32,ml_all" role="installation">
     
    114122      <para>Prepare Glibc for compilation:</para>
    115123
    116 <screen><userinput remap="configure">CC="gcc -mx32 -ffile-prefix-map=/tools=/usr -isystem /usr/include" \
    117 CXX="g++ -mx32 -ffile-prefix-map=/tools=/usr -isystem /usr/include" \
     124<screen><userinput remap="configure">CC="gcc -mx32 -ffile-prefix-map=/tools=/usr" \
     125CXX="g++ -mx32 -ffile-prefix-map=/tools=/usr" \
    118126../configure --prefix=/usr                          \
    119127             --disable-werror                       \
     
    154162rm -rf build</userinput></screen>
    155163
     164  </sect2>
     165
     166  <!-- ~~~~~~~~~~~~~~~~~~~~ Cleanup ~~~~~~~~~~~~~~~~~~~~ -->
     167
     168  <sect2 role="installation">
     169    <title>Cleanup</title>
     170
    156171    <para>Restore the file we moved temporarily away:</para>
    157172
     
    159174
    160175  </sect2>
    161 
     176 
    162177</sect1>
    163 
Note: See TracChangeset for help on using the changeset viewer.