Changeset 5752f35 for general


Ignore:
Timestamp:
05/28/2024 03:42:56 PM (6 weeks ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
trunk
Children:
18bf2d4
Parents:
f834c6c
git-author:
Xi Ruoyao <xry111@…> (05/28/2024 03:27:56 PM)
git-committer:
Xi Ruoyao <xry111@…> (05/28/2024 03:42:56 PM)
Message:

rust: Remove the hack for non-SSE2 system

We are going to unsupport BLFS on 32-bit x86, and the sed command just
doesn't work for recent Rust releases.

The upstream says you should configure for i586-unknown-linux-gnu (5
instead of 6) if the system does not support SSE2 but I've not tested it
at all. It's unlikely anyone will ever test it (who'll build LFS, LLVM,
and then Rustc on a Pentium III?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/rust.xml

    rf834c6c r5752f35  
    204204    <title>Installation of Rust</title>
    205205
    206     <note>
    207       <para>
    208         Currently the rust compiler produces SSE2 instructions for 32-bit x86,
    209         causing the generated code to be broken on 32-bit systems without a
    210         SSE2-capable processor.  All x86 processor models released after
    211         2004 should be SSE2-capable.  Run
    212         <command>lscpu | grep sse2</command> as a test.  If it outputs
    213         anything, your CPU is SSE2-capable and OK.  Otherwise you may try
    214         to build this package <emphasis>on a SSE2-capable system</emphasis>
    215         with the following fix applied:
    216       </para>
    217 
    218       <!-- computeroutput used deliberately to stop anyone from copying
    219            blindly -->
    220 <screen role="nodump"><computeroutput>sed 's@pentium4@pentiumpro@' -i \
    221     compiler/rustc_target/src/spec/i686_unknown_linux_gnu.rs</computeroutput></screen>
    222 
    223       <para>
    224         And copy the resulting
    225         <filename class="directory">/opt/rustc-&rust-version;</filename>
    226         to the system without SSE2 capability. But this change is still
    227         under upstream review and not tested by BLFS editors.
    228       </para>
    229     </note>
    230 
    231206    <para>
    232207      To install into the
Note: See TracChangeset for help on using the changeset viewer.