Commit Graph

123 Commits

Author SHA1 Message Date
Douglas R. Reno
d71f68c943 Update to rustc-1.74.0 2023-11-20 16:28:39 -06:00
Xi Ruoyao
f764a889fe
Update to rustc-1.73.0 2023-10-09 02:32:13 +08:00
Xi Ruoyao
d6b169d789
rust: Adapt for LLVM 17 and note additional test failures 2023-09-20 01:39:33 +08:00
Xi Ruoyao
b6d544942b
building-notes: Note how to use cgroup for limiting resource usage
We were saying "-jN means using N cores (or N threads)".  This is
completely wrong. "-jN" only tells the building system to run N jobs
simultaneously, but each job can start their own subprocesses or threads
and there is no way for the building system to know how many
subprocesses or threads a job will start.

This caused a lot of misunderstandings and encouraged users to wrongly
blame building systems.

Fix the description of -jN, and add how to use cgroup to control the
usage of CPU cores and system RAM.

On a systemd-based system, systemd is the cgroup manager and manually
operating on cgroups may puzzle systemd.  So use systemd-run for
creating and setting up cgroup.  On a sysv-based system create and set
up the cgroup manually.
2023-09-19 02:59:45 +08:00
Douglas R. Reno
8cc28db68b rustc: minor text tweak on the description of systemd-run. 2023-09-05 14:15:48 -05:00
Xi Ruoyao
808aeec3d8
rust: Update to rustc-1.72.0 2023-09-04 23:50:51 +08:00
Xi Ruoyao
08b315d090
rust: Git is needed for running test suite
If Git is not installed, the test suite bails out very early.
2023-08-26 19:20:45 +08:00
Xi Ruoyao
d401fde500
rust: Correct the document for ui failures related to path length
See the updated comment for details.
2023-08-19 10:22:47 +08:00
Xi Ruoyao
00e0c9cc97
rust: Remove spurious ".old" files
This is a after-tag change but I suppose it's OK.  I don't think
anything will ever invoke a rustc utility with ".old" name.
2023-08-18 21:04:46 +08:00
Bruce Dubbs
282a0eb3c2 Tag most of Chapter 13 2023-08-17 12:39:01 -05:00
Douglas R. Reno
7e52a4ad2c rustc: Document a test that is known to hang on some systems when
scripting.

If combine_install_with_separate_uninstall hangs, a user can press the
Enter key, or remove the test with a sed.

Thanks goes to Rainer Fiebig for the report.
2023-08-17 11:41:25 -05:00
Douglas R. Reno
134f1cbadc Update to rustc-1.71.1 (Security Update) 2023-08-07 18:42:22 -05:00
Xi Ruoyao
cf983bd491
rustc: Update to rustc-1.71.0 2023-07-16 00:23:30 +08:00
Xi Ruoyao
42ddc3001a
treewide: Replace "User Notes" with "Editor Notes" 2023-06-30 02:18:51 +08:00
Xi Ruoyao
0c1c573e69
rust: Document test failures, and correct some XML elements in explanations 2023-06-12 19:08:35 +08:00
Bruce Dubbs
1fd75935de Update to rustc-1.70.0. 2023-06-07 15:30:06 -05:00
Xi Ruoyao
c407a61f5e
rust: Symlink the Zsh completion file so Zsh can find it 2023-06-03 00:22:55 +08:00
Xi Ruoyao
24ecd679da
rust: Add rustdoc into build.tools
The rustdoc program is a part of rustup default install.  And it was
installed with previous rustc releases even if we didn't specify it in
build.tools (so it's in the "contents and short descriptions" section).
But with rustc-1.69 it's not installed if we don't explicitly add it
into build.tools.

It's needed by "cargo doc" command (I use it when I develop Rust
crates), and also some BLFS packages (at least, the testsuite of
librsvg).

Add rustdoc into build.tools so it will be built and installed.
2023-06-01 19:09:45 +08:00
Bruce Dubbs
320d985bc3 Update to rustc-1.69.0. 2023-04-23 14:39:49 -05:00
Douglas R. Reno
98b722543f Update to rustc-1.68.2 2023-03-30 19:49:09 -05:00
Xi Ruoyao
afb71d0a95
Add notes about Internet connection requirement for building or testing 2023-03-27 16:08:36 +08:00
Xi Ruoyao
e59834d2c0
rust: Promote curl to required
It's needed for downloading the stage 0 binaries.
2023-03-27 15:55:43 +08:00
Douglas R. Reno
8f9e533c5b Update to rust-1.68.1 2023-03-26 23:15:43 -05:00
Xi Ruoyao
17418d43e2
Update to rustc-1.68.0 (#17822) 2023-03-19 15:57:52 +08:00
Douglas R. Reno
b474dfa2af Another round of tags 2023-02-17 11:06:49 -06:00
Bruce Dubbs
340bf9de9b Update to rustc-1.67.1. 2023-02-13 18:18:39 -06:00
Xi Ruoyao
642fdb7a9f
rust: Add a note about passing LIBSSH2_SYS_USE_PKG_CONFIG to root 2023-02-11 18:55:35 +08:00
Pierre Labastie
29c8a42370 Use mkdir -pv /opt/rustc-<version>
The most likely reason to rerun a scripted build of rust is that
something failed during build. But since this directory is created at
the beginning of the script, the script will fail early cresting the
directory.

Of course, now, there is no protection against erasing a successful
build when rerunning with different options.
2023-02-09 13:06:58 +01:00
Bruce Dubbs
cc7b915a96 Update to rustc-1.67.0. 2023-02-08 21:24:40 -06:00
Xi Ruoyao
97e721913b
rust: revise config.toml entries (#17520)
- Add `locked-deps = true` and `vendor = true`.  These allows building
  the package w/o downloading from crates.io (the bootstrap compiler
  still needs to be downloaded though), and eliminates the necessity of
  using a DESTDIR installation.  Note that in LFS we already do DESTDIR
  installation for ncurses so we won't lose too much educational
  material.
- Add `description = "for BLFS &version;"` so BLFS version will show up
  in the output of `rustc --version`.
- Remove `rpath = false`.  With rpath we can skip the modification of
  `/etc/ld.so.conf` file.  Note that rpath is coded as
  `$ORIGIN/../lib`, so if you run `ldd` on the executable in the build
  directory, it will show the path to the build directory; but if you
  run `ldd` on the installed executable, it will show the correct path
  to the installed library.  See `man ld.so` for more information about
  `$ORIGIN`.
2023-01-18 11:16:10 +08:00
Pierre Labastie
f15d31dfb7 Use remap as in the template for rust tests 2023-01-15 09:06:37 +01:00
Ken Moffat
7baeffeaad Update to rustc-1.66.1. 2023-01-15 03:16:16 +00:00
David Bryant
48771ae06f Unless it's a directory name, or something like that, "test suite"
should be spelled as two words.
2022-12-13 12:19:29 -06:00
Pierre Labastie
3f2db3a638 Remove sect1info tags
They only contain a date tag that is nowhere used.
2022-11-29 08:58:07 +01:00
Xi Ruoyao
13d9cb6a90
rustc: list libgit2 as external dependency
We are using internally shipped libgit2 for now.
2022-10-08 20:03:49 +08:00
Xi Ruoyao
f2ae6ba809
rustc: demote curl and libssh2 to recommended
And, adjust LIBSSH2_SYS_USE_PKG_CONFIG according to if libssh2 is
installed.  Export it earlier so x.py build and x.py install will use
the same LIBSSH2_SYS_USE_PKG_CONFIG value.  This can reduce some
repeated building process.
2022-10-08 19:04:53 +08:00
Pierre Labastie
8706503737 Fix SBU values for llvm and rust
When measuring the SB unit, I used a terminal with "time { ... }".
When measuring LLVM and rust SBUs, I redirected output. It seems
the gnome terminal is very slow, and when redirecting the output of
the "time" command above, the SB unit goes from 119s down to
86s.
2022-09-27 22:15:24 +02:00
Pierre Labastie
bf4b5fc3e7 Update to rustc-1.64.0 2022-09-25 10:26:38 +02:00
Pierre Labastie
4e207bb418 Replace tabs with spaces (except in Makefile :) 2022-09-11 18:22:44 +02:00
Xi Ruoyao
ed2176e518
rust: for systemd, tell how to use systemd-run to limit CPU cores 2022-08-29 12:01:21 +08:00
Xi Ruoyao
c0dfeeaf5e
rust: it's broken on non-SSE2 i686 2022-08-29 11:27:14 +08:00
Xi Ruoyao
115415d97c
rust: 43 + 1 = 44
Text change only.
2022-08-25 13:23:26 +08:00
Douglas R. Reno
aa0b625099 Tag Xorg and dependencies 2022-08-22 21:55:59 -05:00
Xi Ruoyao
0daaefc8fc
rust: remove reference to clang
I've built and installed rust with system LLVM built w/o clang.
2022-04-21 17:59:37 +08:00
Pierre Labastie
8d0270d150 Update to rust-1.60.0 2022-04-11 19:07:48 +02:00
Pierre Labastie
0bc808cc20 Remove the -i flag in rustc symlink
When scripting, this flag makes the linking silently ignored... This
leads to headaches when one thinks he is using a just built new
version of rust and the old version is still used...
2022-03-29 09:19:21 +02:00
Bruce Dubbs
c2f9a33871 tags 2022-02-17 23:47:09 -06:00
Douglas R. Reno
8e305cf42f rustc: Allow manual pages to be accessed. 2022-02-13 13:04:01 -06:00
Ken Moffat
ca97a2a1e3 Update to rustc-1.58.1. 2022-01-24 20:14:04 +00:00
Ken Moffat
e7c8506a18 Update to rustc-1.56.1 and fixit for openssl-3 :
Use a sed to ensure fixed versions of the curl and curl-sys crates
are downloaded.
2021-11-20 23:29:04 +00:00