Ignore:
Timestamp:
12/04/2021 03:28:15 PM (2 years ago)
Author:
Thomas Trepl (Moody) <thomas@…>
Branches:
lazarus
Children:
e6974d1
Parents:
b22e4ceb (diff), edd2feb7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'trunk' into lazarus

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/rust.xml

    rb22e4ceb r8307474  
    77  <!ENTITY rust-download-http "https://static.rust-lang.org/dist/rustc-&rust-version;-src.tar.gz">
    88  <!ENTITY rust-download-ftp  " ">
    9   <!ENTITY rust-md5sum        "bd6fbe9ba5fe457d2514e92a6ccd7b24">
    10   <!ENTITY rust-size          "161 MB">
     9  <!ENTITY rust-md5sum        "6d1728cf0a86b0c5f33d3870379997ed">
     10  <!ENTITY rust-size          "172 MB">
    1111  <!-- Gentle Reminder: buildsize is how much the user requires for the real
    1212       install, i.e. the source with its DESTDIR *plus* the DESTDIR.  You
     
    1515       after the tests. -->
    1616
    17   <!ENTITY rust-buildsize     "9.3 GB (407 MB installed) including 291 MB of ~/.cargo files for the user building this. Add 4.0 GB including extra 179 MB of ~/.cargo files if running the tests">
    18   <!ENTITY rust-time          "31 SBU (add 13 SBU for tests, both on a 4-core machine)">
     17  <!ENTITY rust-buildsize     "8.8 GB (370 MB installed) including 309 MB of ~/.cargo files for the user building this. Add 6.2 GB including extra 273 MB of ~/.cargo files if running the tests">
     18  <!ENTITY rust-time          "27 SBU (including download time; add 13 SBU for tests, both on a 4-core machine)">
    1919]>
    2020
     
    8383        class="directory">/opt</filename> directory.  In particular, if you
    8484        have reason to rebuild with a modified configuration (e.g. using the
    85         shipped LLVM after building with shared LLVM, or for the
    86         reverse situation) it is possible for the install to leave a broken
     85        shipped LLVM after building with shared LLVM, perhaps to compile crates
     86        for architectres which the BLFS LLVM build does not support)
     87        it is possible for the install to leave a broken
    8788        <command>cargo</command> program. In such a situation, either remove
    8889        the existing installation first, or use a different prefix such as
     
    207208      (built with -DLLVM_LINK_LLVM_DYLIB=ON so that rust can link to
    208209      system LLVM instead of building its shipped version)
     210      <!-- the versions of LLVM in LFS-10.0, 10.1 and 11.0 are good enough
     211           to use for this version of rustc, so do not mention builds
     212           using shipped LLVM here, those are a lot bigger.
    209213      If using an older version, see the config.toml file below re
    210       using the shipped llvm, because of rust issue 69225.
     214      using the shipped llvm, because of rust issue 69225.-->
    211215    </para>
    212216
     
    304308    </para>
    305309
    306 <screen><userinput>export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi" &amp;&amp;
     310<screen><userinput>sed -i -e '/^curl /s/0.4.38/0.4.40/' \
     311       -e '/^curl-sys /s/0.4.48/0.4.50/' \
     312       src/tools/cargo/Cargo.toml &amp;&amp;
     313
     314export RUSTFLAGS="$RUSTFLAGS -C link-args=-lffi" &amp;&amp;
    307315python3 ./x.py build --exclude src/tools/miri</userinput></screen>
    308316
     
    325333
    326334    <para>
    327       At a minimum, seven tests will fail: ui/asm/inline-syntax.rs#arm,
    328       assembly/target-feature-multiple.rs#SINGLEFLAG,
    329       assembly/target-feature-multiple.rs#TWOFLAGS,
    330       run-make-fulldeps/long-linker-command-lines, run-make-fulldeps/split-debuginfo,
    331       run-make-fulldeps/split-dwarf, run-make-fulldeps/sysroot-crates-are-unstable.
    332       With any recent version of <command>gdb</command>, four more failures
    333       (debuginfo/extern-c-fn.rs, debuginfo/generator-objects.rs,
    334       debuginfo/issue-57822.rs, debuginfo/pretty-huge-vec.rs) can be expected.
     335      At a minimum, fifteen tests will fail: all the tests (twelve) in
     336      the <quote>assembly</quote> suite, apparently because warnings are
     337      tuened on,
     338      run-make-fulldeps/long-linker-command-lines, run-make-fulldeps/print-cfg,
     339      run-make-fulldeps/sysroot-crates-are-unstable.
     340      If <command>gdb</command> is installed,  another failure
     341      (debuginfo/function-names.rs) can be expected.
    335342    </para>
    336343
     
    440447      against the shipped llvm, or do not have clang, but the resulting build will
    441448      be larger and take longer.
     449    </para>
     450
     451    <para>
     452      <command>sed -i -e '/^curl /s/0.4.38/0.4.40/' ... </command>: two crates
     453      normally downloaded for this release do not correctly initialise
     454      <application>curl</application> if using
     455      <application>openssl-3.0.0</application>. Upstream has fixed that for a
     456      future release, this sed causes the fixed versions to be used.
    442457    </para>
    443458
     
    560575      <seglistitem>
    561576        <seg>
    562           cargo-clippy, cargo-fmt, cargo-miri, cargo, clippy-driver, miri,
    563           rls, rust-analyzer, rust-gdb, rust-gdbgui, rust-lldb, rustc,
     577          cargo-clippy, cargo-fmt, cargo-miri (optional), cargo, clippy-driver,
     578          miri (optional),
     579          rls, rust-demangler, rust-gdb, rust-gdbgui, rust-lldb, rustc,
    564580          rustdoc, rustfmt.
    565581        </seg>
    566582        <seg>
    567           Many lib*&lt;16-byte-hash&gt;.so libraries.
     583          librustc-driver-&lt;16-byte-hash&gt;.so,
     584          libstd-&lt;16-byte-hash&gt;.so, and
     585          libtest-&lt;16-byte-hash&gt;.so
    568586        </seg>
    569587        <seg>
    570588          ~/.cargo,
    571           /opt/rustc/lib/rustlib,
    572           /opt/rustc/share/doc/rustc-&rust-version;, and
    573           /opt/rustc/share/zsh/site-functions
     589          /opt/rustc, symbolic link to
     590          /opt/rustc-&rust-version;
    574591        </seg>
    575592      </seglistitem>
Note: See TracChangeset for help on using the changeset viewer.