Changeset e2ccc32 for chapter05


Ignore:
Timestamp:
03/31/2021 10:41:37 AM (3 years ago)
Author:
Xℹ Ruoyao <xry111@…>
Branches:
ml-11.0, multilib
Children:
6fc519e
Parents:
43822cc
git-author:
Thomas Trepl <thomas@…> (02/24/2020 10:15:33 PM)
git-committer:
Xℹ Ruoyao <xry111@…> (03/31/2021 10:41:37 AM)
Message:

Merge upstream; Upgrade isl+firmware; add description to glibc

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

Location:
chapter05
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • chapter05/binutils-pass2.xml

    r43822cc re2ccc32  
    115115        <term><parameter>--with-sysroot</parameter></term>
    116116        <listitem>
    117           <para>The sysroot feature enables the linker to find shared objects
    118           which are required by other shared objects explicitly included on the
    119           linker's command line. Without this, some packages may not build
    120           successfully on some hosts.</para>
     117          <para>This defines a default (non-existent) sysroot directory
     118          <filename class="directory">/tools/$LFS_TGT/sys-root</filename>.
     119          It is useful when looking for shared objects which are required by
     120          other shared objects explicitly included on the linker's command
     121          line. Those objects are searched into the directories listed in
     122          <filename>&lt;sysroot&gt;/etc/ld.so.conf</filename>, and failing
     123          that, into the linker search path, which is right. If this switch
     124          is not given, <filename>/etc/ld.so.conf</filename> on the host
     125          is used, that is, programs may be linked to libraries on
     126          the host, which we want to avoid.</para>
    121127        </listitem>
    122128      </varlistentry>
  • chapter05/gcc-pass1.xml

    r43822cc re2ccc32  
    141141    <!-- see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86724 -->
    142142    <!-- Fix applied in ch5-gcc-pass{1,2}, ch6-gcc -->
     143<!--
    143144    <para arch="ml_32,ml_x32,ml_all">Fix an issue with isl-&isl-version;:</para>
    144145
    145146<screen arch="ml_32,ml_x32,ml_all"><userinput remap="pre">sed -e "/#include &lt;isl\/schedule_node.h&gt;/ a#include &lt;isl/id.h&gt;\n#include &lt;isl/space.h&gt;" \
    146147    -i gcc/graphite.h</userinput></screen>
     148-->
    147149
    148150    <para>The GCC documentation recommends building GCC
  • chapter05/gcc-pass2.xml

    r43822cc re2ccc32  
    123123
    124124    <!-- Following patch might be obsolete with gcc >= 8.2.1 -->
     125<!--
    125126    <para arch="ml_32,ml_x32,ml_all">Fix an issue with isl-&isl-version;:</para>
    126127
    127128<screen arch="ml_32,ml_x32,ml_all"><userinput remap="pre">sed -e "/#include &lt;isl\/schedule_node.h&gt;/ a#include &lt;isl/id.h&gt;\n#include &lt;isl/space.h&gt;" \
    128129    -i gcc/graphite.h</userinput></screen>
     130-->
    129131
    130132    <para>
  • chapter05/glibc.xml

    r43822cc re2ccc32  
    217217             --host=${LFS_TGT32}                \
    218218             --enable-kernel=&min-kernel;             \
     219             --with-headers=/tools/include      \
     220             --with-binutils=/tools/bin         \
    219221             --enable-multi-arch                \
    220222             --libdir=/tools/lib32              \
    221              --libexecdir=/tools/lib32          \
    222              --with-headers=/tools/include      \
    223              --with-binutils=/tools/bin</userinput></screen>
     223             --libexecdir=/tools/lib32</userinput></screen>
    224224<!--                      \
    225225             libc_cv_forced_unwind=yes          \
    226226             libc_cv_c_cleanup=yes</userinput></screen> -->
     227
     228    <variablelist>
     229      <title>The meaning of the extra configure options:</title>
     230
     231      <varlistentry>
     232        <term><parameter>--enable-multi-arch</parameter></term>
     233        <listitem>
     234          <para>Enables glibc for multiarch environments.</para>
     235        </listitem>
     236      </varlistentry>
     237
     238      <varlistentry>
     239        <term><parameter>--libdir=/tools/lib32, --libexecdir=/tools/lib32</parameter></term>
     240        <listitem>
     241          <para>Overrides location for installing 32-bit files.</para>
     242        </listitem>
     243      </varlistentry>
     244
     245      <varlistentry>
     246        <term><parameter>--with-binutils=/tools/bin</parameter></term>
     247        <listitem>
     248          <para>This tells Glibc to compile itself against the utilities
     249          found within our "tools" heirachy, because otherwise...</para>
     250        </listitem>
     251      </varlistentry>
     252
     253    </variablelist>
    227254
    228255    <para>Now compile the 32-bit version of glibc:</para>
     
    235262install -vm644 DESTDIR/tools/include/gnu/{lib-names,stubs}-32.h \
    236263               /tools/include/gnu/
    237 ln -svf /tools/lib32/ld-linux.so.2 /tools/lib/
    238 cd ..</userinput></screen>
     264ln -svf /tools/lib32/ld-linux.so.2 /tools/lib/</userinput></screen>
    239265
    240266  </sect2>
     
    244270
    245271    <para>Create a build directory for redoing glibc for x32-bit:</para>
    246 <screen><userinput remap="pre">mkdir build32x
    247 cd build32x</userinput></screen>
     272<screen><userinput remap="pre">mkdir ../build32x
     273cd ../build32x</userinput></screen>
    248274
    249275    <para>Rebuild glibc for x32-bit:</para>
     
    258284             --host=${LFS_TGTX32}               \
    259285             --enable-kernel=&min-kernel;             \
     286             --with-headers=/tools/include      \
     287             --with-binutils=/tools/bin         \
    260288             --enable-multi-arch                \
    261289             --libdir=/tools/libx32             \
    262              --libexecdir=/tools/libx32         \
    263              --with-headers=/tools/include      \
    264              --with-binutils=/tools/bin</userinput></screen>
     290             --libexecdir=/tools/libx32</userinput></screen>
    265291<!--                      \
    266292             libc_cv_forced_unwind=yes          \
    267293             libc_cv_c_cleanup=yes</userinput></screen> -->
     294
     295    <variablelist>
     296      <title>The meaning of the extra configure options:</title>
     297
     298      <varlistentry>
     299        <term><parameter>--enable-multi-arch</parameter></term>
     300        <listitem>
     301          <para>Enables glibc for multiarch environments.</para>
     302        </listitem>
     303      </varlistentry>
     304
     305      <varlistentry>
     306        <term><parameter>--libdir=/tools/libx32, --libexecdir=/tools/libx32</parameter></term>
     307        <listitem>
     308          <para>Overrides location for installing x32-bit files.</para>
     309        </listitem>
     310      </varlistentry>
     311
     312      <varlistentry>
     313        <term><parameter>--with-binutils=/tools/bin</parameter></term>
     314        <listitem>
     315          <para>This tells Glibc to compile itself against the utilities
     316          found within our "tools" heirachy, because otherwise...</para>
     317        </listitem>
     318      </varlistentry>
     319
     320    </variablelist>
    268321
    269322    <para>Now compile the x32-bit version of glibc:</para>
  • chapter05/libstdc++.xml

    r43822cc re2ccc32  
    8383        <term><parameter>--disable-libstdcxx-threads</parameter></term>
    8484        <listitem>
    85           <para>Since we have not yet built the C threads library, the C++
    86           one cannot be built either.</para>
     85          <para>Since gcc-pass1 is built without thread support, the C++
     86          thread library cannot be built either.</para>
    8787        </listitem>
    8888      </varlistentry>
Note: See TracChangeset for help on using the changeset viewer.