Changeset c0dfeea


Ignore:
Timestamp:
08/29/2022 03:27:14 AM (20 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.2, 11.3, 12.0, 12.1, 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, xry111/llvm18, xry111/soup3, xry111/xf86-video-removal
Children:
ed2176e5
Parents:
96923ef
Message:

rust: it's broken on non-SSE2 i686

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/rust.xml

    r96923ef rc0dfeea  
    3434  <sect2 role="package">
    3535    <title>Introduction to Rust</title>
     36
     37    <note>
     38      <para>
     39        Currently Rust compiler produces SSE2 instructions for 32-bit x86,
     40        causing the generated code broken on 32-bit systems without a
     41        SSE2-capable processor.  All x86 processor models released after
     42        2004 should be SSE2-capable.  Run
     43        <command>lscpu | grep sse2</command> as a test.  If it outputs
     44        anything, your CPU is SSE2-capable and OK.  Otherwise you may try
     45        to build this package <emphasis>on a SSE2-capable system</emphasis>
     46        with the following fix applied:
     47      </para>
     48
     49      <!-- computeroutput used deliberately to stop anyone from copying
     50           blindly -->
     51<screen role="nodump"><computeroutput>sed 's@pentium4@pentiumpro@' -i \
     52    compiler/rustc_target/src/spec/i686_unknown_linux_gnu.rs</computeroutput></screen>
     53
     54      <para>
     55        And copy the resulted
     56        <filename class="directory">/opt/rustc-&rust-version;</filename>
     57        to the system without SSE2 capability. But this change is still
     58        under upstream review and not tested by BLFS editors.
     59      </para>
     60    </note>
    3661
    3762    <para>
Note: See TracChangeset for help on using the changeset viewer.