Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap: Error: Unable to find the stamp file #109286

Closed
aDotInTheVoid opened this issue Mar 17, 2023 · 3 comments · Fixed by #109295
Closed

bootstrap: Error: Unable to find the stamp file #109286

aDotInTheVoid opened this issue Mar 17, 2023 · 3 comments · Fixed by #109295
Labels
C-bug Category: This is a bug. regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. requires-custom-config This issue requires custom config/build for rustc in some way T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@aDotInTheVoid
Copy link
Member

With profile = "tools", and a empty build/ folder, and running ./x test ./tests/rustdoc-json/, I get the following error

Building test helpers
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-o" "/home/alona/dev/rust/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers/rust_test_helpers.o" "-c" "/home/alona/dev/rust/rust/tests/auxiliary/rust_test_helpers.c"
exit status: 0
running: ZERO_AR_DATE="1" "ar" "cq" "/home/alona/dev/rust/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers/librust_test_helpers.a" "/home/alona/dev/rust/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers/rust_test_helpers.o"
exit status: 0
running: "ar" "s" "/home/alona/dev/rust/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers/librust_test_helpers.a"
exit status: 0
Uplifting library (stage2 -> stage0)
Error: Unable to find the stamp file /home/alona/dev/rust/rust/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-linux-gnu/release/.libstd.stamp, did you try to keep a nonexistent build stage?
Build completed unsuccessfully in 0:01:17

On 03b01c5, x86-64, linux.

Full Log

CC @jyn514

alona@Ashtabula:~/dev/rust/rust$ rm -rf build/
alona@Ashtabula:~/dev/rust/rust$ cat config.toml
# Includes one of the default files in src/bootstrap/defaults
profile = "tools"
changelog-seen = 2
alona@Ashtabula:~/dev/rust/rust$ ./x test ./tests/rustdoc-json/
downloading https://static.rust-lang.org/dist/2023-01-25/rust-std-beta-x86_64-unknown-linux-gnu.tar.xz
##################################################################################################################################################### 100.0%
extracting /home/alona/dev/rust/rust/build/cache/2023-01-25/rust-std-beta-x86_64-unknown-linux-gnu.tar.xz
downloading https://static.rust-lang.org/dist/2023-01-25/rustc-beta-x86_64-unknown-linux-gnu.tar.xz
##################################################################################################################################################### 100.0%
extracting /home/alona/dev/rust/rust/build/cache/2023-01-25/rustc-beta-x86_64-unknown-linux-gnu.tar.xz
downloading https://static.rust-lang.org/dist/2023-01-25/cargo-beta-x86_64-unknown-linux-gnu.tar.xz
##################################################################################################################################################### 100.0%
extracting /home/alona/dev/rust/rust/build/cache/2023-01-25/cargo-beta-x86_64-unknown-linux-gnu.tar.xz
Building bootstrap
   Compiling libc v0.2.137
   Compiling memchr v2.5.0
   Compiling cfg-if v1.0.0
   Compiling typenum v1.15.0
   Compiling version_check v0.9.4
   Compiling proc-macro2 v1.0.46
   Compiling cc v1.0.73
   Compiling pkg-config v0.3.25
   Compiling unicode-ident v1.0.0
   Compiling io-lifetimes v1.0.1
   Compiling serde v1.0.137
   Compiling regex-automata v0.1.10
   Compiling log v0.4.17
   Compiling lazy_static v1.4.0
   Compiling crossbeam-utils v0.8.14
   Compiling rustix v0.36.3
   Compiling generic-array v0.14.5
   Compiling regex-syntax v0.6.26
   Compiling syn v1.0.102
   Compiling once_cell v1.12.0
   Compiling bitflags v1.3.2
   Compiling same-file v1.0.6
   Compiling linux-raw-sys v0.1.3
   Compiling serde_json v1.0.81
   Compiling serde_derive v1.0.137
   Compiling fnv v1.0.7
   Compiling aho-corasick v0.7.18
   Compiling bstr v0.2.17
   Compiling quote v1.0.18
   Compiling lzma-sys v0.1.17
   Compiling walkdir v2.3.2
   Compiling thread_local v1.1.4
   Compiling unicode-width v0.1.9
   Compiling ryu v1.0.10
   Compiling bootstrap v0.0.0 (/home/alona/dev/rust/rust/src/bootstrap)
   Compiling cpufeatures v0.2.5
   Compiling itoa v1.0.2
   Compiling getopts v0.2.21
   Compiling opener v0.5.0
   Compiling object v0.29.0
   Compiling cmake v0.1.48
   Compiling filetime v0.2.16
   Compiling xattr v0.2.3
   Compiling build_helper v0.1.0 (/home/alona/dev/rust/rust/src/tools/build_helper)
   Compiling xz2 v0.1.6
   Compiling block-buffer v0.10.2
   Compiling crypto-common v0.1.3
   Compiling tar v0.4.38
   Compiling hex v0.4.3
   Compiling digest v0.10.3
   Compiling regex v1.5.6
   Compiling sha2 v0.10.2
   Compiling globset v0.4.8
   Compiling fd-lock v3.0.8
   Compiling ignore v0.4.18
   Compiling toml v0.5.9
    Finished dev [unoptimized] target(s) in 18.35s
downloading https://static.rust-lang.org/dist/2023-01-30/rustfmt-nightly-x86_64-unknown-linux-gnu.tar.xz
##################################################################################################################################################### 100.0%
extracting /home/alona/dev/rust/rust/build/cache/2023-01-30/rustfmt-nightly-x86_64-unknown-linux-gnu.tar.xz to /home/alona/dev/rust/rust/build/x86_64-unknown-linux-gnu/rustfmt
downloading https://static.rust-lang.org/dist/2023-01-30/rustc-nightly-x86_64-unknown-linux-gnu.tar.xz
##################################################################################################################################################### 100.0%
extracting /home/alona/dev/rust/rust/build/cache/2023-01-30/rustc-nightly-x86_64-unknown-linux-gnu.tar.xz to /home/alona/dev/rust/rust/build/x86_64-unknown-linux-gnu/rustfmt
downloading https://ci-artifacts.rust-lang.org/rustc-builds/03b01c5bec658081605ab078ad3fbcdb6b30f6c2/rust-std-nightly-x86_64-unknown-linux-gnu.tar.xz
##################################################################################################################################################### 100.0%
extracting /home/alona/dev/rust/rust/build/cache/03b01c5bec658081605ab078ad3fbcdb6b30f6c2/rust-std-nightly-x86_64-unknown-linux-gnu.tar.xz to /home/alona/dev/rust/rust/build/x86_64-unknown-linux-gnu/ci-rustc
downloading https://ci-artifacts.rust-lang.org/rustc-builds/03b01c5bec658081605ab078ad3fbcdb6b30f6c2/rustc-nightly-x86_64-unknown-linux-gnu.tar.xz
##################################################################################################################################################### 100.0%
extracting /home/alona/dev/rust/rust/build/cache/03b01c5bec658081605ab078ad3fbcdb6b30f6c2/rustc-nightly-x86_64-unknown-linux-gnu.tar.xz to /home/alona/dev/rust/rust/build/x86_64-unknown-linux-gnu/ci-rustc
downloading https://ci-artifacts.rust-lang.org/rustc-builds/03b01c5bec658081605ab078ad3fbcdb6b30f6c2/rustc-dev-nightly-x86_64-unknown-linux-gnu.tar.xz
##################################################################################################################################################### 100.0%
extracting /home/alona/dev/rust/rust/build/cache/03b01c5bec658081605ab078ad3fbcdb6b30f6c2/rustc-dev-nightly-x86_64-unknown-linux-gnu.tar.xz to /home/alona/dev/rust/rust/build/x86_64-unknown-linux-gnu/ci-rustc
downloading https://ci-artifacts.rust-lang.org/rustc-builds/03b01c5bec658081605ab078ad3fbcdb6b30f6c2/rust-src-nightly.tar.xz
##################################################################################################################################################### 100.0%
extracting /home/alona/dev/rust/rust/build/cache/03b01c5bec658081605ab078ad3fbcdb6b30f6c2/rust-src-nightly.tar.xz to /home/alona/dev/rust/rust/build/x86_64-unknown-linux-gnu/ci-rustc
Building test helpers
running: "cc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-o" "/home/alona/dev/rust/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers/rust_test_helpers.o" "-c" "/home/alona/dev/rust/rust/tests/auxiliary/rust_test_helpers.c"
exit status: 0
running: ZERO_AR_DATE="1" "ar" "cq" "/home/alona/dev/rust/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers/librust_test_helpers.a" "/home/alona/dev/rust/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers/rust_test_helpers.o"
exit status: 0
running: "ar" "s" "/home/alona/dev/rust/rust/build/x86_64-unknown-linux-gnu/native/rust-test-helpers/librust_test_helpers.a"
exit status: 0
Uplifting library (stage2 -> stage0)
Error: Unable to find the stamp file /home/alona/dev/rust/rust/build/x86_64-unknown-linux-gnu/stage2-std/x86_64-unknown-linux-gnu/release/.libstd.stamp, did you try to keep a nonexistent build stage?
Build completed unsuccessfully in 0:01:17

CC @jyn514

@aDotInTheVoid aDotInTheVoid added the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Mar 17, 2023
@jyn514
Copy link
Member

jyn514 commented Mar 18, 2023

@aDotInTheVoid is this a recent regression? are you able to bisect it?

@jyn514
Copy link
Member

jyn514 commented Mar 18, 2023

off the top of my head, (stage2 -> stage0) looks very fishy, that should never happem

@jsha
Copy link
Contributor

jsha commented Mar 18, 2023

I've locally bisected to 38b9655, which contains this PR that sounds relevant: #108866

@jyn514 jyn514 added C-bug Category: This is a bug. regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. labels Mar 21, 2023
@rustbot rustbot added the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Mar 21, 2023
@jyn514 jyn514 added the requires-custom-config This issue requires custom config/build for rustc in some way label Mar 21, 2023
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this issue Mar 21, 2023
refactor `fn bootstrap::builder::Builder::compiler_for` logic

- check compiler stage before forcing for stage2.
- check if download_rustc is not set before forcing for stage1.

resolves rust-lang#109286
@apiraino apiraino removed the I-prioritize Issue: Indicates that prioritization has been requested for this issue. label Mar 22, 2023
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this issue Mar 22, 2023
refactor `fn bootstrap::builder::Builder::compiler_for` logic

- check compiler stage before forcing for stage2.
- check if download_rustc is not set before forcing for stage1.

resolves rust-lang#109286
@bors bors closed this as completed in 7a57d88 Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. requires-custom-config This issue requires custom config/build for rustc in some way T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants