Skip to content

no dist tarballs are produced with rust-1.78.0 prerelease #124528

Closed
@stefson

Description

@stefson

hello everyone,

I just downloaded the rustc-1.78.0 src tarball from the prerelease, to give it a spin and see if everything is working. The compile went smooth, but I am missing a certain feature: there used to be an xz archive for rustc, cargo, rust-std and any tools enabled within ../build/dist/ from where anyone could access them if needed.

now, the log isn't very verbose about what happens here, but for instance this command

running: BootstrapCommand { command: LD_LIBRARY_PATH="/var/tmp/portage/dev-lang/rust-1.78.0/work/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps:/var/tmp/portage/dev-lang/rust-1.78.0/work/rust-stage0/lib" RUSTC="/var/tmp/portage/dev-lang/rust-1.78.0/work/rust-stage0/bin/rustc" "/var/tmp/portage/dev-lang/rust-1.78.0/work/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-tools-bin/rust-installer" "generate" "--image-dir" "/var/tmp/portage/dev-lang/rust-1.78.0/work/rustc-1.78.0-src/build/tmp/tarball/rust-demangler/x86_64-unknown-linux-gnu/image" "--component-name=rust-demangler-preview" "--rel-manifest-dir=rustlib" "--legacy-manifest-dirs=rustlib,cargo" "--product-name=Rust" "--success-message=rust-demangler installed." "--package-name=rust-demangler-1.78.0-x86_64-unknown-linux-gnu" "--non-installed-overlay" "/var/tmp/portage/dev-lang/rust-1.78.0/work/rustc-1.78.0-src/build/tmp/tarball/rust-demangler/x86_64-unknown-linux-gnu/overlay" "--output-dir" "/var/tmp/portage/dev-lang/rust-1.78.0/work/rustc-1.78.0-src/build/dist" "--work-dir" "/var/tmp/portage/dev-lang/rust-1.78.0/work/rustc-1.78.0-src/build/tmp/tarball/rust-demangler/x86_64-unknown-linux-gnu" "--compression-formats" "xz" "--compression-profile" "no-op", failure_behavior: Exit, output_mode: PrintAll }

for creating the tarball for rust-demangler seemingly fails as it exits in only 0.008 seconds. Consequently, the image dir (/var/tmp/portage/dev-lang/rust-1.78.0/work/rustc-1.78.0-src/build/tmp/tarball/rust-demangler/x86_64-unknown-linux-gnu/image) is empty.

I had a look into the recent changes of config.toml.example, yet I couldn't find any hints of options I had to change. Here is my config.toml:

changelog-seen = 2
[llvm]
download-ci-llvm = false
optimize = true
release-debuginfo = false
assertions = false
ninja = true
targets = "ARM;AArch64;X86"
experimental-targets = ""
link-shared = true


enable-warnings = false
[llvm.build-config]
CMAKE_VERBOSE_MAKEFILE = "ON"
CMAKE_C_FLAGS_RELEASE = "-O2 -pipe"
CMAKE_CXX_FLAGS_RELEASE = "-O2 -pipe"
CMAKE_EXE_LINKER_FLAGS_RELEASE = "-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
CMAKE_MODULE_LINKER_FLAGS_RELEASE = "-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
CMAKE_SHARED_LINKER_FLAGS_RELEASE = "-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
CMAKE_STATIC_LINKER_FLAGS_RELEASE = ""
[build]
build-stage = 2
test-stage = 2
build = "x86_64-unknown-linux-gnu"
host = ["x86_64-unknown-linux-gnu"]
target = ["x86_64-unknown-linux-gnu","armv7-unknown-linux-gnueabihf","thumbv7neon-unknown-linux-gnueabihf","aarch64-unknown-linux-gnu"]
cargo = "/var/tmp/portage/dev-lang/rust-1.78.0/work/rust-stage0/bin/cargo"
rustc = "/var/tmp/portage/dev-lang/rust-1.78.0/work/rust-stage0/bin/rustc"
rustfmt = "/var/tmp/portage/dev-lang/rust-1.78.0/work/rust-stage0/bin/rustfmt"
docs = false
compiler-docs = false
submodules = false
python = "python3.11"
locked-deps = true
vendor = true
extended = true
tools = ["cargo","rustdoc","rust-demangler","rustfmt"]
verbose = 2
sanitizers = false
profiler = true
cargo-native-static = false
[install]
prefix = "/usr/lib/rust/1.78.0"
sysconfdir = "etc"
docdir = "share/doc/rust"
bindir = "bin"
libdir = "lib"
mandir = "share/man"
[rust]
# https://github.com/rust-lang/rust/issues/54872
codegen-units-std = 1
optimize = true
debug = false
debug-assertions = false
debug-assertions-std = false
debuginfo-level = 0
debuginfo-level-rustc = 0
debuginfo-level-std = 0
debuginfo-level-tools = 0
debuginfo-level-tests = 0
backtrace = true
incremental = false
default-linker = "x86_64-pc-linux-gnu-gcc"
parallel-compiler = false
channel = "stable"
description = "gentoo"
rpath = false
verbose-tests = true
optimize-tests = true
codegen-tests = true
dist-src = false
remap-debuginfo = true
lld = false
# only deny warnings if doc+wasm are NOT requested, documenting stage0 wasm std fails without it
# https://github.com/rust-lang/rust/issues/74976
# https://github.com/rust-lang/rust/issues/76526
deny-warnings = true
backtrace-on-ice = true
jemalloc = false
# See https://github.com/rust-lang/rust/issues/121124
lto = "off"
[dist]
src-tarball = false
compression-formats = ["xz"]
compression-profile = "balanced"
[target.x86_64-unknown-linux-gnu]
ar = "x86_64-pc-linux-gnu-ar"
cc = "x86_64-pc-linux-gnu-gcc"
cxx = "x86_64-pc-linux-gnu-g++"
linker = "x86_64-pc-linux-gnu-gcc"
ranlib = "x86_64-pc-linux-gnu-ranlib"
llvm-libunwind = "no"
llvm-config = "/usr/lib/llvm/18/bin/llvm-config"
[target.armv7-unknown-linux-gnueabihf]
ar = "armv7a-unknown-linux-gnueabihf-ar"
cc = "armv7a-unknown-linux-gnueabihf-gcc"
cxx = "armv7a-unknown-linux-gnueabihf-g++"
linker = "armv7a-unknown-linux-gnueabihf-gcc"
ranlib = "armv7a-unknown-linux-gnueabihf-ranlib"
llvm-config = "/usr/lib/llvm/18/bin/llvm-config"
[target.thumbv7neon-unknown-linux-gnueabihf]
ar = "armv7a-unknown-linux-gnueabihf-ar"
cc = "armv7a-unknown-linux-gnueabihf-gcc"
cxx = "armv7a-unknown-linux-gnueabihf-g++"
linker = "armv7a-unknown-linux-gnueabihf-gcc"
ranlib = "armv7a-unknown-linux-gnueabihf-ranlib"
llvm-config = "/usr/lib/llvm/18/bin/llvm-config"
[target.aarch64-unknown-linux-gnu]
ar = "aarch64-unknown-linux-gnu-ar"
cc = "aarch64-unknown-linux-gnu-gcc"
cxx = "aarch64-unknown-linux-gnu-g++"
linker = "aarch64-unknown-linux-gnu-gcc"
ranlib = "aarch64-unknown-linux-gnu-ranlib"
llvm-config = "/usr/lib/llvm/18/bin/llvm-config"

I will attach the full and compressed log: build.log.gz it's a wooping 110mb uncompressed.

Has any option in config.toml changed which I am unaware of? I'm a little lost here, sorry if I missed something obvious! :')

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-discussionCategory: Discussion or questions that doesn't represent real issues.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