Changeset e1fe4a2 for general/prog
- Timestamp:
- 03/23/2024 06:33:22 PM (5 weeks ago)
- Branches:
- trunk
- Children:
- d271ed4
- Parents:
- 7a3a458
- git-author:
- Xi Ruoyao <xry111@…> (03/23/2024 06:25:07 PM)
- git-committer:
- Xi Ruoyao <xry111@…> (03/23/2024 06:33:22 PM)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/rust.xml
r7a3a458 re1fe4a2 7 7 <!ENTITY rust-download-http "https://static.rust-lang.org/dist/rustc-&rust-version;-src.tar.xz"> 8 8 <!ENTITY rust-download-ftp " "> 9 <!ENTITY rust-md5sum " 14a8ac688b461a3127090cad513aee05">10 <!ENTITY rust-size "15 5MB">9 <!ENTITY rust-md5sum "7df442945fb2e32cbccd45a7faa3a5e1"> 10 <!ENTITY rust-size "156 MB"> 11 11 <!ENTITY rust-buildsize "8.9 GB (298 MB installed); add 6.4 GB if running the tests"> 12 12 <!ENTITY rust-time "6.7 SBU (including download time; add 6.2 SBU for tests, both using parallelism=8)"> … … 145 145 </listitem> 146 146 </itemizedlist> 147 147 <!-- only keep this here for reuse in case we need a patch 148 148 <bridgehead renderas="sect3">Additional Downloads</bridgehead> 149 149 <itemizedlist spacing="compact"> … … 155 155 </listitem> 156 156 </itemizedlist> 157 157 --> 158 158 <bridgehead renderas="sect3">Rust Dependencies</bridgehead> 159 159 … … 252 252 253 253 <para> 254 If running the test suite, apply a patch to prevent the build255 system from unnecessarily rebuilding the compiler:256 </para>257 258 <screen><userinput>patch -Np1 -i ../rustc-&rust-version;-testsuite_fix-1.patch</userinput></screen>259 260 <para>261 254 Create a suitable <filename>config.toml</filename> file which will 262 255 configure the build. … … 271 264 # and updated it to follow the major changes of the building system, 272 265 # so x.py will not warn us to do such a review. 273 change-id = 1 18703266 change-id = 102579 274 267 275 268 [llvm] … … 341 334 </note> 342 335 343 <!-- https://github.com/rust-lang/rust/pull/116672 -->344 <para>345 If building with system <xref linkend='llvm'/>,346 adapt rustc to allow it to build and function with the changes in347 LLVM-18:348 </para>349 350 <screen><userinput remap="pre">sed 's/f[0-9][0-9]:/i128:128-&/' \351 -i compiler/rustc_target/src/spec/targets/{i?86,x86_64}*.rs &&352 sed '/static_assert_size!\((Lit|MetaItemLit|BasicBlockData|Terminator)/d' \353 -ri compiler/{rustc_ast/src/ast.rs,rustc_middle/src/mir/mod.rs}</userinput></screen>354 355 336 <para> 356 337 Compile <application>Rust</application> by running the following … … 389 370 <!-- https://github.com/rust-lang/rust/pull/115869 --> 390 371 <para> 391 Two tests, <filename>tests/ui/issues/issue-21763.rs</filename> and372 Two tests, <filename>tests/ui/issues/issue-21763.rs</filename> and 392 373 <filename>tests/debuginfo/regression-bad-location-list-67992.rs</filename>, 393 374 are known to fail. 394 375 </para> 395 376 396 <para> 397 With LLVM-18, two codegen tests named 398 <!-- https://github.com/rust-lang/rust/pull/119523 --> 399 <filename>abi-main-signature-32bit-c-int.rs</filename> and 400 <!-- Don't know why yet ??? --> 401 <filename>slice-reverse.rs</filename> are 402 known to fail. 377 <!-- https://github.com/rust-lang/rust/pull/120529 --> 378 <para> 379 With LLVM-18, two <literal>[run-make]</literal> tests named 380 <filename>rustdoc-target-spec-json-path</filename> and 381 <filename>target-specs</filename> are known to fail. 403 382 </para> 404 383 … … 467 446 python3 x.py install --stage=1 cargo clippy rustfmt</userinput></screen> 468 447 469 <!-- https://github.com/rust-lang/rust/issues/115213 --> 470 <para> 471 The building system attempts to install some files twice, and during 472 the second attempt it renames the old one (installed in the first 473 attempt) with the <filename class='extension'>.old</filename> suffix. 474 As the &root; user, remove these files: 475 </para> 476 477 <screen role='root'><userinput>find /opt/rustc-&rust-version; -name "*.old" -delete</userinput></screen> 478 479 <para> 480 Still as the &root; user, symlink a <application>Zsh</application> 448 <para> 449 Still as the &root; user, fix the installation of documentations 450 and symlink a <application>Zsh</application> 481 451 completion file into the correct location: 482 452 </para> 483 453 484 <screen role='root'><userinput>install -vdm755 /usr/share/zsh/site-functions && 454 <screen role='root'><userinput>rm -fv /opt/rustc-&rust-version;/share/doc/rustc-&rust-version;/*.old && 455 install -vm644 README.md \ 456 /opt/rustc-&rust-version;/share/doc/rustc-&rust-version; && 457 458 install -vdm755 /usr/share/zsh/site-functions && 485 459 ln -sfv /opt/rustc/share/zsh/site-functions/_cargo \ 486 460 /usr/share/zsh/site-functions</userinput></screen>
Note:
See TracChangeset
for help on using the changeset viewer.