Skip to content

bootstrap fails, fresh build "found possibly newer version of crate std which getopts depends on" #59951

Closed
@matthiaskrgr

Description

@matthiaskrgr

repo @ e4c66af

rm -rf build
./x.py build
Updating only changed submodules
Submodules updated in 0.03 seconds
downloading https://static.rust-lang.org/dist/2019-03-20/rust-std-beta-x86_64-unknown-linux-gnu.tar.gz
################################################################################################################################################################################################################ 100,0%
extracting /home/matthias/vcs/github/rust_cpy/build/cache/2019-03-20/rust-std-beta-x86_64-unknown-linux-gnu.tar.gz
downloading https://static.rust-lang.org/dist/2019-03-20/rustc-beta-x86_64-unknown-linux-gnu.tar.gz
######################################################################################################################################################################################################################################################### 100,0%
extracting /home/matthias/vcs/github/rust_cpy/build/cache/2019-03-20/rustc-beta-x86_64-unknown-linux-gnu.tar.gz
downloading https://static.rust-lang.org/dist/2019-03-20/cargo-beta-x86_64-unknown-linux-gnu.tar.gz
######################################################################################################################################################################################################################################################### 100,0%
extracting /home/matthias/vcs/github/rust_cpy/build/cache/2019-03-20/cargo-beta-x86_64-unknown-linux-gnu.tar.gz
   Compiling proc-macro2 v0.4.24
   Compiling unicode-xid v0.1.0
   Compiling ryu v0.2.7
   Compiling serde v1.0.82
   Compiling libc v0.2.51
   Compiling ordermap v0.3.5
   Compiling cc v1.0.35
   Compiling itoa v0.4.3
   Compiling cfg-if v0.1.6
   Compiling fixedbitset v0.1.9
   Compiling getopts v0.2.17
   Compiling lazy_static v0.2.11
   Compiling build_helper v0.1.0 (/home/matthias/vcs/github/rust_cpy/src/build_helper)
   Compiling cmake v0.1.38
   Compiling petgraph v0.4.13
   Compiling quote v0.6.10
   Compiling syn v0.15.22
   Compiling time v0.1.40
   Compiling filetime v0.2.4
   Compiling num_cpus v1.8.0
   Compiling toml v0.4.10
   Compiling serde_json v1.0.33
   Compiling serde_derive v1.0.81
   Compiling bootstrap v0.0.0 (/home/matthias/vcs/github/rust_cpy/src/bootstrap)
    Finished dev [unoptimized] target(s) in 41.97s
Building stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
   Compiling cc v1.0.35
   Compiling libc v0.2.51
   Compiling core v0.0.0 (/home/matthias/vcs/github/rust_cpy/src/libcore)
   Compiling build_helper v0.1.0 (/home/matthias/vcs/github/rust_cpy/src/build_helper)
   Compiling unwind v0.0.0 (/home/matthias/vcs/github/rust_cpy/src/libunwind)
   Compiling compiler_builtins v0.1.10
   Compiling cmake v0.1.38
   Compiling profiler_builtins v0.0.0 (/home/matthias/vcs/github/rust_cpy/src/libprofiler_builtins)
   Compiling backtrace-sys v0.1.27
   Compiling std v0.0.0 (/home/matthias/vcs/github/rust_cpy/src/libstd)
   Compiling rustc_lsan v0.0.0 (/home/matthias/vcs/github/rust_cpy/src/librustc_lsan)
   Compiling rustc_tsan v0.0.0 (/home/matthias/vcs/github/rust_cpy/src/librustc_tsan)
   Compiling rustc_asan v0.0.0 (/home/matthias/vcs/github/rust_cpy/src/librustc_asan)
   Compiling rustc_msan v0.0.0 (/home/matthias/vcs/github/rust_cpy/src/librustc_msan)
   Compiling rustc-std-workspace-core v1.0.0 (/home/matthias/vcs/github/rust_cpy/src/tools/rustc-std-workspace-core)
   Compiling alloc v0.0.0 (/home/matthias/vcs/github/rust_cpy/src/liballoc)
   Compiling panic_abort v0.0.0 (/home/matthias/vcs/github/rust_cpy/src/libpanic_abort)
   Compiling rustc-demangle v0.1.10
   Compiling panic_unwind v0.0.0 (/home/matthias/vcs/github/rust_cpy/src/libpanic_unwind)
warning: /home/matthias/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/compiler_builtins-0.1.10/compiler-rt/lib/profile/InstrProfilingUtil.c:128:3: warning: implicit declaration of function 'flock' is invalid in C99 [-Wimplicit-function-declaration]
warning:   flock(fd, LOCK_EX);
warning:   ^
warning: /home/matthias/.cargo/registry/src/github.1485827954.workers.dev-1ecc6299db9ec823/compiler_builtins-0.1.10/compiler-rt/lib/profile/InstrProfilingUtil.c:153:3: warning: implicit declaration of function 'flock' is invalid in C99 [-Wimplicit-function-declaration]
warning:   flock(fd, LOCK_UN);
warning:   ^
warning: 2 warnings generated.
    Finished release [optimized] target(s) in 21.36s
Copying stage0 std from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Building stage0 test artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
   Compiling term v0.0.0 (/home/matthias/vcs/github/rust_cpy/src/libterm)
   Compiling proc_macro v0.0.0 (/home/matthias/vcs/github/rust_cpy/src/libproc_macro)
   Compiling getopts v0.2.17
   Compiling test v0.0.0 (/home/matthias/vcs/github/rust_cpy/src/libtest)
error[E0460]: found possibly newer version of crate `std` which `getopts` depends on
  --> src/libtest/lib.rs:34:5
   |
34 | use getopts;
   |     ^^^^^^^
   |
   = note: perhaps that crate needs to be recompiled?
   = note: the following crate versions were found:
           crate `std`: /home/matthias/vcs/github/rust_cpy/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-28bc271858497054.rlib
           crate `std`: /home/matthias/vcs/github/rust_cpy/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-28bc271858497054.so
           crate `getopts`: /home/matthias/vcs/github/rust_cpy/build/x86_64-unknown-linux-gnu/stage0-test/x86_64-unknown-linux-gnu/release/deps/libgetopts-44069824bc6a7f7b.rlib

error: aborting due to previous error

For more information about this error, try `rustc --explain E0460`.
error: Could not compile `test`.

To learn more, run the command again with --verbose.
command did not execute successfully: "/home/matthias/vcs/github/rust_cpy/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "-j" "4" "--release" "--manifest-path" "/home/matthias/vcs/github/rust_cpy/src/libtest/Cargo.toml" "--message-format" "json"
expected success, got: exit code: 101
failed to run: /home/matthias/vcs/github/rust_cpy/build/bootstrap/debug/bootstrap build
Build completed unsuccessfully in 0:03:10

The error is reproducible after clearning build directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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