Skip to content

stage 0 libtests are broken #55864

Closed
Closed
@RalfJung

Description

@RalfJung

The command ./x.py test --stage 0 src/libstd --no-doc used to be a good way to test libstd without having to build a full compiler. However, it is currently broken:

Testing std stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
   Compiling rand_core v0.2.1                                                                                                                                                                                      
   Compiling libc v0.2.43                                                                                                                                                                                          
   Compiling rand v0.5.5                                                                                                                                                                                           
   Compiling std v0.0.0 (/home/r/src/rust/rustc.2/src/libstd)                                                                                                                                                      
error: the #[global_allocator] in this crate conflicts with global allocator in: std                                                                                                                               
                                                                                                                                                                                                                   
error: aborting due to previous error                                                                                                                                                                              
                                                                                                                                                                                                                   
error: Could not compile `std`.                                                                                                                                                                                    

To learn more, run the command again with --verbose.


command did not execute successfully: "/home/r/src/rust/rustc.2/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "test" "--target" "x86_64-unknown-linux-gnu" "-j" "8" "--release" "--features" "panic-unwind backtrace" "--manifest-path" "/home/r/src/rust/rustc.2/src/libstd/Cargo.toml" "--lib" "--bins" "--examples" "--tests" "--benches" "-p" "std" "--" "--quiet"
expected success, got: exit code: 101

Cc @alexcrichton

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteArea: The testsuite used to check the correctness of rustcT-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