Skip to content

Can't run x.py dist on rust 1.85.0 source distribution #137332

Closed
@orium

Description

@orium

On the rust 1.85.0 source distribution (from https//static.rust-lang.org/dist/2025-02-20/rustc-1.85.0-src.tar.xz) it's not possible to build rustc with ./x.py dist:

Steps to reproduce:

$ curl -O https://static.rust-lang.org/dist/2025-02-20/rustc-1.85.0-src.tar.xz
$ tar xf rustc-1.85.0-src.tar.xz
$ cd rustc-1.85.0-src
$ cp config.example.toml config.toml
$ ./x.py dist

thread 'main' panicked at src/bootstrap/src/utils/helpers.rs:441:5:
std::fs::read_dir(dir) failed with No such file or directory (os error 2)

If I add a debug println!() I can see it is failing because the directory src/gcc does not exist. It did exist in rustc-1.84.0-src:

$ ls rustc-1.84.0-src/src/gcc
ABOUT-NLS           compile       configure        COPYING3      gotools     libbacktrace  libgcc       libiberty     libssp           ltmain.sh       maintainer-scripts  mkdep           SECURITY.txt
ar-lib              config        configure.ac     COPYING3.LIB  include     libcc1        libgfortran  libitm        libstdc++-v3     lto-plugin      MAINTAINERS         mkinstalldirs   symlink-tree
c++tools            config-ml.in  contrib          depcomp       INSTALL     libcody       libgm2       libobjc       libtool-ldflags  ltoptions.m4    Makefile.def        move-if-change  test-driver
ChangeLog           config.guess  COPYING          fixincludes   install-sh  libcpp        libgo        libphobos     libtool.m4       ltsugar.m4      Makefile.in         multilib.am     ylwrap
ChangeLog.jit       config.rpath  COPYING.LIB      gcc           libada      libdecnumber  libgomp      libquadmath   libvtv           ltversion.m4    Makefile.tpl        patches         zlib
ChangeLog.tree-ssa  config.sub    COPYING.RUNTIME  gnattools     libatomic   libffi        libgrust     libsanitizer  ltgcc.m4         lt~obsolete.m4  missing             README
$ ls rustc-1.85.0-src/src/gcc
"rustc-1.85.0-src/src/gcc": No such file or directory (os error 2)

Was the rustc-1.85.0-src.tar.xz wrongly packaged or did something change?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions