I would be shocked if the rust documentation didn't explain very clearly how to bootstrap rustc starting from gcc
> the only way to build a modern version of rustc is a slightly less modern version.
(There is, at least theoretically, a non-circular bootstrap chain starting with a very old rustc written in OCaml, but the more practical alternative is probably to use mrustc[2] instead.)
[1] https://rustc-dev-guide.rust-lang.org/building/bootstrapping...