Changeset cfa8b6d for general


Ignore:
Timestamp:
01/07/2019 01:30:32 AM (5 years ago)
Author:
Ken Moffat <ken@…>
Branches:
10.0, 10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, 8.4, 9.0, 9.1, bdubbs/svn, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
d8a1b786
Parents:
af80dbe
Message:

Use python2 to build rustc.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@20927 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/rust.xml

    raf80dbe rcfa8b6d  
    5858        Rustc defaults to building for ALL supported architectures, using a
    5959        shipped copy of LLVM. In BLFS the build is only for the X86 architecture.
    60         Rustc still claims to require Python2, but that is only really necessary
    61         when building some other architectures with the shipped LLVM. If you
     60        If you
    6261        intend to develop rust crates, this build may not be good enough for your
    6362        purposes.
     
    120119      <xref linkend="curl"/>,
    121120      <xref linkend="cmake"/>,
    122       <xref linkend="libssh2"/>
    123 <!--  <xref linkend="python2"/> -->
     121      <xref linkend="libssh2"/>, and
     122      <xref linkend="python2"/>
    124123    </para>
    125124
     
    195194
    196195<screen><userinput>export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi" &amp;&amp;
    197 python3 ./x.py build</userinput></screen>
     196./x.py build</userinput></screen>
    198197
    199198    <para>
     
    206205      <para>
    207206        On AMD Ryzen processors (family 17h), the non-optimized version of libstd
    208         which is compiled at the start of the tests contains two opcodes which are
    209         not implemented on this CPU family. These will be logged in the
     207        which is compiled at the start of the tests contains one or more opcodes
     208        which are not implemented on this CPU family. These will be logged in the
    210209        <phrase revision="sysv">system log</phrase>
    211210        <phrase revision="systemd">systemd journal</phrase>
     
    225224    <para>
    226225      To run the tests issue
    227       <command>python3 ./x.py test --verbose --no-fail-fast | tee rustc-testlog</command>:
     226      <command>./x.py test --verbose --no-fail-fast | tee rustc-testlog</command>:
    228227      as with the build, that will use all available CPUs.  This runs many suites
    229228      of tests (in an apparently random order), several will fail in BLFS:
     
    262261
    263262<screen><userinput>export LIBSSH2_SYS_USE_PKG_CONFIG=1 &amp;&amp;
    264 DESTDIR=${PWD}/install python3 ./x.py install &amp;&amp;
     263DESTDIR=${PWD}/install ./x.py install &amp;&amp;
    265264unset LIBSSH2_SYS_USE_PKG_CONFIG</userinput></screen>
    266265
Note: See TracChangeset for help on using the changeset viewer.