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

./x.py test fails on local machine #48347

Closed
milesand opened this issue Feb 19, 2018 · 4 comments
Closed

./x.py test fails on local machine #48347

milesand opened this issue Feb 19, 2018 · 4 comments
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc C-bug Category: This is a bug. O-windows Operating system: Windows

Comments

@milesand
Copy link
Contributor

Running py -2 ./x.py test completes unsuccessfully with 3 failures; namely, compile-fail\lifetime-bound-will-change-warning.rs, compile-fail\trait-bounds-on-structs-and-enums-xc.rs, and compile-fail\trait-bounds-on-structs-and-enums-xc1.rs.

output on stderr shows note: gcc.exe: error: C:\workspace\projects\rust\build\x86_64-pc-windows-gnu\test\compile-fail\trait-bounds-on-structs-and-enums-xc.stage2-x86_64-pc-windows-gnu.aux\trait_bounds_on_structs_and_enums_xc.trait_bounds_on_structs_and_enums_xc0-8787f43e282added376259c1adb08b80.rs.rcgu.o: No such file or directory for compile-fail\trait-bounds-on-structs-and-enums-xc, and the like with different file names for other cases; However, navigating to said path shows a file with the same name.

Complete output:

failures:

---- [compile-fail] compile-fail\lifetime-bound-will-change-warning.rs stdout ----

error: auxiliary build of "C:\\workspace\\projects\\rust\\src/test\\compile-fail\\auxiliary\\lifetime_bound_will_change_warning_lib.rs" failed to compile:
status: exit code: 101
command: PATH="C:\workspace\projects\rust\build\x86_64-pc-windows-gnu\stage2\bin;C:\workspace\projects\rust\build\x86_64-pc-windows-gnu\stage0-tools\x86_64-pc-windows-gnu\release\deps;C:\workspace\projects\rust\build\x86_64-pc-windows-gnu\stage0-sysroot\lib\rustlib\x86_64-pc-windows-gnu\lib;C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;C:\msys64\usr\bin;(Some path componentes omitted)" "C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\stage2\\bin\\rustc.exe" "C:\\workspace\\projects\\rust\\src/test\\compile-fail\\auxiliary\\lifetime_bound_will_change_warning_lib.rs" "-L" "C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\test\\compile-fail" "--target=x86_64-pc-windows-gnu" "--error-format" "json" "-C" "prefer-dynamic" "--out-dir" "C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\test\\compile-fail\\lifetime-bound-will-change-warning.stage2-x86_64-pc-windows-gnu.aux" "-Crpath" "-O" "-Zmiri" "-Zunstable-options" "-Lnative=C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\native\\rust-test-helpers" "--crate-type" "dylib" "-L" "C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\test\\compile-fail\\lifetime-bound-will-change-warning.stage2-x86_64-pc-windows-gnu.aux"
stdout:
------------------------------------------

------------------------------------------
stderr:
------------------------------------------
{"message":"unused variable: `x`","code":{"code":"unused_variables","explanation":null},"level":"warning","spans":[{"file_name":"C:\\workspace\\projects\\rust\\src/test\\compile-fail\\auxiliary\\lifetime_bound_will_change_warning_lib.rs","byte_start":612,"byte_end":613,"line_start":16,"line_end":16,"column_start":17,"column_end":18,"is_primary":true,"text":[{"text":"pub fn just_ref(x: &Fn()) {","highlight_start":17,"highlight_end":18}],"label":null,"suggested_replacement":null,"expansion":null}],"children":[{"message":"#[warn(unused_variables)] on by default","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"consider using `_x` instead","code":null,"level":"help","spans":[{"file_name":"C:\\workspace\\projects\\rust\\src/test\\compile-fail\\auxiliary\\lifetime_bound_will_change_warning_lib.rs","byte_start":612,"byte_end":613,"line_start":16,"line_end":16,"column_start":17,"column_end":18,"is_primary":true,"text":[{"text":"pub fn just_ref(x: &Fn()) {","highlight_start":17,"highlight_end":18}],"label":null,"suggested_replacement":"_x","expansion":null}],"children":[],"rendered":null}],"rendered":"warning: unused variable: `x`\n  --> C:\\workspace\\projects\\rust\\src/test\\compile-fail\\auxiliary\\lifetime_bound_will_change_warning_lib.rs:16:17\n   |\n16 | pub fn just_ref(x: &Fn()) {\n   |                 ^ help: consider using `_x` instead\n   |\n   = note: #[warn(unused_variables)] on by default\n\n"}
{"message":"unused variable: `x`","code":{"code":"unused_variables","explanation":null},"level":"warning","spans":[{"file_name":"C:\\workspace\\projects\\rust\\src/test\\compile-fail\\auxiliary\\lifetime_bound_will_change_warning_lib.rs","byte_start":642,"byte_end":643,"line_start":19,"line_end":19,"column_start":16,"column_end":17,"is_primary":true,"text":[{"text":"pub fn ref_obj(x: &Box<Fn()>) {","highlight_start":16,"highlight_end":17}],"label":null,"suggested_replacement":null,"expansion":null}],"children":[{"message":"consider using `_x` instead","code":null,"level":"help","spans":[{"file_name":"C:\\workspace\\projects\\rust\\src/test\\compile-fail\\auxiliary\\lifetime_bound_will_change_warning_lib.rs","byte_start":642,"byte_end":643,"line_start":19,"line_end":19,"column_start":16,"column_end":17,"is_primary":true,"text":[{"text":"pub fn ref_obj(x: &Box<Fn()>) {","highlight_start":16,"highlight_end":17}],"label":null,"suggested_replacement":"_x","expansion":null}],"children":[],"rendered":null}],"rendered":"warning: unused variable: `x`\n  --> C:\\workspace\\projects\\rust\\src/test\\compile-fail\\auxiliary\\lifetime_bound_will_change_warning_lib.rs:19:16\n   |\n19 | pub fn ref_obj(x: &Box<Fn()>) {\n   |                ^ help: consider using `_x` instead\n\n"}
{"message":"linking with `gcc` failed: exit code: 1","code":null,"level":"error","spans":[],"children":[{"message":"\"gcc\" \"-Wl,--enable-long-section-names\" \"-fno-use-linker-plugin\" \"-Wl,--nxcompat\" \"-nostdlib\" \"-m64\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\\\\dllcrt2.o\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\\\\rsbegin.o\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\lifetime-bound-will-change-warning.stage2-x86_64-pc-windows-gnu.aux\\\\lifetime_bound_will_change_warning_lib.lifetime_bound_will_change_warning_lib0-8787f43e282added376259c1adb08b80.rs.rcgu.o\" \"-o\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\lifetime-bound-will-change-warning.stage2-x86_64-pc-windows-gnu.aux\\\\lifetime_bound_will_change_warning_lib.dll\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\lifetime-bound-will-change-warning.stage2-x86_64-pc-windows-gnu.aux\\\\lifetime_bound_will_change_warning_lib.crate.metadata.rcgu.o\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\lifetime-bound-will-change-warning.stage2-x86_64-pc-windows-gnu.aux\\\\lifetime_bound_will_change_warning_lib.crate.allocator.rcgu.o\" \"-nodefaultlibs\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\native\\\\rust-test-helpers\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\lifetime-bound-will-change-warning.stage2-x86_64-pc-windows-gnu.aux\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\" \"-l\" \"std-42e0a5327563d5c7\" \"-Wl,-Bstatic\" \"C:\\\\msys64\\\\tmp\\\\rustc.E63Wu97wAGxl\\\\libcompiler_builtins-42b504c7b4c058d5.rlib\" \"-Wl,-Bdynamic\" \"-l\" \"advapi32\" \"-l\" \"ws2_32\" \"-l\" \"userenv\" \"-l\" \"shell32\" \"-shared\" \"-lmingwex\" \"-lmingw32\" \"-lgcc\" \"-lmsvcrt\" \"-lmsvcrt\" \"-luser32\" \"-lkernel32\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\\\\rsend.o\"","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"gcc.exe: error: C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\test\\compile-fail\\lifetime-bound-will-change-warning.stage2-x86_64-pc-windows-gnu.aux\\lifetime_bound_will_change_warning_lib.lifetime_bound_will_change_warning_lib0-8787f43e282added376259c1adb08b80.rs.rcgu.o: No such file or directory\r\n","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error: linking with `gcc` failed: exit code: 1\n  |\n  = note: \"gcc\" \"-Wl,--enable-long-section-names\" \"-fno-use-linker-plugin\" \"-Wl,--nxcompat\" \"-nostdlib\" \"-m64\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\\\\dllcrt2.o\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\\\\rsbegin.o\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\lifetime-bound-will-change-warning.stage2-x86_64-pc-windows-gnu.aux\\\\lifetime_bound_will_change_warning_lib.lifetime_bound_will_change_warning_lib0-8787f43e282added376259c1adb08b80.rs.rcgu.o\" \"-o\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\lifetime-bound-will-change-warning.stage2-x86_64-pc-windows-gnu.aux\\\\lifetime_bound_will_change_warning_lib.dll\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\lifetime-bound-will-change-warning.stage2-x86_64-pc-windows-gnu.aux\\\\lifetime_bound_will_change_warning_lib.crate.metadata.rcgu.o\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\lifetime-bound-will-change-warning.stage2-x86_64-pc-windows-gnu.aux\\\\lifetime_bound_will_change_warning_lib.crate.allocator.rcgu.o\" \"-nodefaultlibs\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\native\\\\rust-test-helpers\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\lifetime-bound-will-change-warning.stage2-x86_64-pc-windows-gnu.aux\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\" \"-l\" \"std-42e0a5327563d5c7\" \"-Wl,-Bstatic\" \"C:\\\\msys64\\\\tmp\\\\rustc.E63Wu97wAGxl\\\\libcompiler_builtins-42b504c7b4c058d5.rlib\" \"-Wl,-Bdynamic\" \"-l\" \"advapi32\" \"-l\" \"ws2_32\" \"-l\" \"userenv\" \"-l\" \"shell32\" \"-shared\" \"-lmingwex\" \"-lmingw32\" \"-lgcc\" \"-lmsvcrt\" \"-lmsvcrt\" \"-luser32\" \"-lkernel32\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\\\\rsend.o\"\n  = note: gcc.exe: error: C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\test\\compile-fail\\lifetime-bound-will-change-warning.stage2-x86_64-pc-windows-gnu.aux\\lifetime_bound_will_change_warning_lib.lifetime_bound_will_change_warning_lib0-8787f43e282added376259c1adb08b80.rs.rcgu.o: No such file or directory\r\n          \n\n"}
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}

------------------------------------------

thread '[compile-fail] compile-fail\lifetime-bound-will-change-warning.rs' panicked at 'explicit panic', tools\compiletest\src\runtest.rs:2892:9

---- [compile-fail] compile-fail\trait-bounds-on-structs-and-enums-xc1.rs stdout ----

error: auxiliary build of "C:\\workspace\\projects\\rust\\src/test\\compile-fail\\auxiliary\\trait_bounds_on_structs_and_enums_xc.rs" failed to compile:
status: exit code: 101
command: PATH="C:\workspace\projects\rust\build\x86_64-pc-windows-gnu\stage2\bin;C:\workspace\projects\rust\build\x86_64-pc-windows-gnu\stage0-tools\x86_64-pc-windows-gnu\release\deps;C:\workspace\projects\rust\build\x86_64-pc-windows-gnu\stage0-sysroot\lib\rustlib\x86_64-pc-windows-gnu\lib;C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;C:\msys64\usr\bin;(Some path components omitted)" "C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\stage2\\bin\\rustc.exe" "C:\\workspace\\projects\\rust\\src/test\\compile-fail\\auxiliary\\trait_bounds_on_structs_and_enums_xc.rs" "-L" "C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\test\\compile-fail" "--target=x86_64-pc-windows-gnu" "--error-format" "json" "-C" "prefer-dynamic" "--out-dir" "C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\test\\compile-fail\\trait-bounds-on-structs-and-enums-xc1.stage2-x86_64-pc-windows-gnu.aux" "-Crpath" "-O" "-Zmiri" "-Zunstable-options" "-Lnative=C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\native\\rust-test-helpers" "--crate-type" "dylib" "-L" "C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\test\\compile-fail\\trait-bounds-on-structs-and-enums-xc1.stage2-x86_64-pc-windows-gnu.aux"
stdout:
------------------------------------------

------------------------------------------
stderr:
------------------------------------------
{"message":"linking with `gcc` failed: exit code: 1","code":null,"level":"error","spans":[],"children":[{"message":"\"gcc\" \"-Wl,--enable-long-section-names\" \"-fno-use-linker-plugin\" \"-Wl,--nxcompat\" \"-nostdlib\" \"-m64\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\\\\dllcrt2.o\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\\\\rsbegin.o\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\trait-bounds-on-structs-and-enums-xc1.stage2-x86_64-pc-windows-gnu.aux\\\\trait_bounds_on_structs_and_enums_xc.trait_bounds_on_structs_and_enums_xc0-8787f43e282added376259c1adb08b80.rs.rcgu.o\" \"-o\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\trait-bounds-on-structs-and-enums-xc1.stage2-x86_64-pc-windows-gnu.aux\\\\trait_bounds_on_structs_and_enums_xc.dll\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\trait-bounds-on-structs-and-enums-xc1.stage2-x86_64-pc-windows-gnu.aux\\\\trait_bounds_on_structs_and_enums_xc.crate.metadata.rcgu.o\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\trait-bounds-on-structs-and-enums-xc1.stage2-x86_64-pc-windows-gnu.aux\\\\trait_bounds_on_structs_and_enums_xc.crate.allocator.rcgu.o\" \"-nodefaultlibs\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\native\\\\rust-test-helpers\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\trait-bounds-on-structs-and-enums-xc1.stage2-x86_64-pc-windows-gnu.aux\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\" \"-l\" \"std-42e0a5327563d5c7\" \"-Wl,-Bstatic\" \"C:\\\\msys64\\\\tmp\\\\rustc.0lOlR8m5Q6tF\\\\libcompiler_builtins-42b504c7b4c058d5.rlib\" \"-Wl,-Bdynamic\" \"-l\" \"advapi32\" \"-l\" \"ws2_32\" \"-l\" \"userenv\" \"-l\" \"shell32\" \"-shared\" \"-lmingwex\" \"-lmingw32\" \"-lgcc\" \"-lmsvcrt\" \"-lmsvcrt\" \"-luser32\" \"-lkernel32\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\\\\rsend.o\"","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"gcc.exe: error: C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\test\\compile-fail\\trait-bounds-on-structs-and-enums-xc1.stage2-x86_64-pc-windows-gnu.aux\\trait_bounds_on_structs_and_enums_xc.trait_bounds_on_structs_and_enums_xc0-8787f43e282added376259c1adb08b80.rs.rcgu.o: No such file or directory\r\n","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error: linking with `gcc` failed: exit code: 1\n  |\n  = note: \"gcc\" \"-Wl,--enable-long-section-names\" \"-fno-use-linker-plugin\" \"-Wl,--nxcompat\" \"-nostdlib\" \"-m64\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\\\\dllcrt2.o\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\\\\rsbegin.o\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\trait-bounds-on-structs-and-enums-xc1.stage2-x86_64-pc-windows-gnu.aux\\\\trait_bounds_on_structs_and_enums_xc.trait_bounds_on_structs_and_enums_xc0-8787f43e282added376259c1adb08b80.rs.rcgu.o\" \"-o\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\trait-bounds-on-structs-and-enums-xc1.stage2-x86_64-pc-windows-gnu.aux\\\\trait_bounds_on_structs_and_enums_xc.dll\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\trait-bounds-on-structs-and-enums-xc1.stage2-x86_64-pc-windows-gnu.aux\\\\trait_bounds_on_structs_and_enums_xc.crate.metadata.rcgu.o\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\trait-bounds-on-structs-and-enums-xc1.stage2-x86_64-pc-windows-gnu.aux\\\\trait_bounds_on_structs_and_enums_xc.crate.allocator.rcgu.o\" \"-nodefaultlibs\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\native\\\\rust-test-helpers\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\trait-bounds-on-structs-and-enums-xc1.stage2-x86_64-pc-windows-gnu.aux\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\" \"-l\" \"std-42e0a5327563d5c7\" \"-Wl,-Bstatic\" \"C:\\\\msys64\\\\tmp\\\\rustc.0lOlR8m5Q6tF\\\\libcompiler_builtins-42b504c7b4c058d5.rlib\" \"-Wl,-Bdynamic\" \"-l\" \"advapi32\" \"-l\" \"ws2_32\" \"-l\" \"userenv\" \"-l\" \"shell32\" \"-shared\" \"-lmingwex\" \"-lmingw32\" \"-lgcc\" \"-lmsvcrt\" \"-lmsvcrt\" \"-luser32\" \"-lkernel32\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\\\\rsend.o\"\n  = note: gcc.exe: error: C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\test\\compile-fail\\trait-bounds-on-structs-and-enums-xc1.stage2-x86_64-pc-windows-gnu.aux\\trait_bounds_on_structs_and_enums_xc.trait_bounds_on_structs_and_enums_xc0-8787f43e282added376259c1adb08b80.rs.rcgu.o: No such file or directory\r\n          \n\n"}
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}

------------------------------------------

thread '[compile-fail] compile-fail\trait-bounds-on-structs-and-enums-xc1.rs' panicked at 'explicit panic', tools\compiletest\src\runtest.rs:2892:9

---- [compile-fail] compile-fail\trait-bounds-on-structs-and-enums-xc.rs stdout ----

error: auxiliary build of "C:\\workspace\\projects\\rust\\src/test\\compile-fail\\auxiliary\\trait_bounds_on_structs_and_enums_xc.rs" failed to compile:
status: exit code: 101
command: PATH="C:\workspace\projects\rust\build\x86_64-pc-windows-gnu\stage2\bin;C:\workspace\projects\rust\build\x86_64-pc-windows-gnu\stage0-tools\x86_64-pc-windows-gnu\release\deps;C:\workspace\projects\rust\build\x86_64-pc-windows-gnu\stage0-sysroot\lib\rustlib\x86_64-pc-windows-gnu\lib;C:\msys64\mingw64\bin;C:\msys64\usr\local\bin;C:\msys64\usr\bin;C:\msys64\usr\bin;(Some path components omitted)" "C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\stage2\\bin\\rustc.exe" "C:\\workspace\\projects\\rust\\src/test\\compile-fail\\auxiliary\\trait_bounds_on_structs_and_enums_xc.rs" "-L" "C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\test\\compile-fail" "--target=x86_64-pc-windows-gnu" "--error-format" "json" "-C" "prefer-dynamic" "--out-dir" "C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\test\\compile-fail\\trait-bounds-on-structs-and-enums-xc.stage2-x86_64-pc-windows-gnu.aux" "-Crpath" "-O" "-Zmiri" "-Zunstable-options" "-Lnative=C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\native\\rust-test-helpers" "--crate-type" "dylib" "-L" "C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\test\\compile-fail\\trait-bounds-on-structs-and-enums-xc.stage2-x86_64-pc-windows-gnu.aux"
stdout:
------------------------------------------

------------------------------------------
stderr:
------------------------------------------
{"message":"linking with `gcc` failed: exit code: 1","code":null,"level":"error","spans":[],"children":[{"message":"\"gcc\" \"-Wl,--enable-long-section-names\" \"-fno-use-linker-plugin\" \"-Wl,--nxcompat\" \"-nostdlib\" \"-m64\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\\\\dllcrt2.o\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\\\\rsbegin.o\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\trait-bounds-on-structs-and-enums-xc.stage2-x86_64-pc-windows-gnu.aux\\\\trait_bounds_on_structs_and_enums_xc.trait_bounds_on_structs_and_enums_xc0-8787f43e282added376259c1adb08b80.rs.rcgu.o\" \"-o\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\trait-bounds-on-structs-and-enums-xc.stage2-x86_64-pc-windows-gnu.aux\\\\trait_bounds_on_structs_and_enums_xc.dll\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\trait-bounds-on-structs-and-enums-xc.stage2-x86_64-pc-windows-gnu.aux\\\\trait_bounds_on_structs_and_enums_xc.crate.metadata.rcgu.o\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\trait-bounds-on-structs-and-enums-xc.stage2-x86_64-pc-windows-gnu.aux\\\\trait_bounds_on_structs_and_enums_xc.crate.allocator.rcgu.o\" \"-nodefaultlibs\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\native\\\\rust-test-helpers\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\trait-bounds-on-structs-and-enums-xc.stage2-x86_64-pc-windows-gnu.aux\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\" \"-l\" \"std-42e0a5327563d5c7\" \"-Wl,-Bstatic\" \"C:\\\\msys64\\\\tmp\\\\rustc.EevnBikF7lGv\\\\libcompiler_builtins-42b504c7b4c058d5.rlib\" \"-Wl,-Bdynamic\" \"-l\" \"advapi32\" \"-l\" \"ws2_32\" \"-l\" \"userenv\" \"-l\" \"shell32\" \"-shared\" \"-lmingwex\" \"-lmingw32\" \"-lgcc\" \"-lmsvcrt\" \"-lmsvcrt\" \"-luser32\" \"-lkernel32\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\\\\rsend.o\"","code":null,"level":"note","spans":[],"children":[],"rendered":null},{"message":"gcc.exe: error: C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\test\\compile-fail\\trait-bounds-on-structs-and-enums-xc.stage2-x86_64-pc-windows-gnu.aux\\trait_bounds_on_structs_and_enums_xc.trait_bounds_on_structs_and_enums_xc0-8787f43e282added376259c1adb08b80.rs.rcgu.o: No such file or directory\r\n","code":null,"level":"note","spans":[],"children":[],"rendered":null}],"rendered":"error: linking with `gcc` failed: exit code: 1\n  |\n  = note: \"gcc\" \"-Wl,--enable-long-section-names\" \"-fno-use-linker-plugin\" \"-Wl,--nxcompat\" \"-nostdlib\" \"-m64\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\\\\dllcrt2.o\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\\\\rsbegin.o\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\trait-bounds-on-structs-and-enums-xc.stage2-x86_64-pc-windows-gnu.aux\\\\trait_bounds_on_structs_and_enums_xc.trait_bounds_on_structs_and_enums_xc0-8787f43e282added376259c1adb08b80.rs.rcgu.o\" \"-o\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\trait-bounds-on-structs-and-enums-xc.stage2-x86_64-pc-windows-gnu.aux\\\\trait_bounds_on_structs_and_enums_xc.dll\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\trait-bounds-on-structs-and-enums-xc.stage2-x86_64-pc-windows-gnu.aux\\\\trait_bounds_on_structs_and_enums_xc.crate.metadata.rcgu.o\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\trait-bounds-on-structs-and-enums-xc.stage2-x86_64-pc-windows-gnu.aux\\\\trait_bounds_on_structs_and_enums_xc.crate.allocator.rcgu.o\" \"-nodefaultlibs\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\native\\\\rust-test-helpers\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\test\\\\compile-fail\\\\trait-bounds-on-structs-and-enums-xc.stage2-x86_64-pc-windows-gnu.aux\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\" \"-L\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\" \"-l\" \"std-42e0a5327563d5c7\" \"-Wl,-Bstatic\" \"C:\\\\msys64\\\\tmp\\\\rustc.EevnBikF7lGv\\\\libcompiler_builtins-42b504c7b4c058d5.rlib\" \"-Wl,-Bdynamic\" \"-l\" \"advapi32\" \"-l\" \"ws2_32\" \"-l\" \"userenv\" \"-l\" \"shell32\" \"-shared\" \"-lmingwex\" \"-lmingw32\" \"-lgcc\" \"-lmsvcrt\" \"-lmsvcrt\" \"-luser32\" \"-lkernel32\" \"C:\\\\workspace\\\\projects\\\\rust\\\\build\\\\x86_64-pc-windows-gnu\\\\stage2\\\\lib\\\\rustlib\\\\x86_64-pc-windows-gnu\\\\lib\\\\rsend.o\"\n  = note: gcc.exe: error: C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\test\\compile-fail\\trait-bounds-on-structs-and-enums-xc.stage2-x86_64-pc-windows-gnu.aux\\trait_bounds_on_structs_and_enums_xc.trait_bounds_on_structs_and_enums_xc0-8787f43e282added376259c1adb08b80.rs.rcgu.o: No such file or directory\r\n          \n\n"}
{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error\n\n"}

------------------------------------------

thread '[compile-fail] compile-fail\trait-bounds-on-structs-and-enums-xc.rs' panicked at 'explicit panic', tools\compiletest\src\runtest.rs:2892:9


failures:
    [compile-fail] compile-fail\lifetime-bound-will-change-warning.rs
    [compile-fail] compile-fail\trait-bounds-on-structs-and-enums-xc.rs
    [compile-fail] compile-fail\trait-bounds-on-structs-and-enums-xc1.rs

test result: FAILED. 1 passed; 3 failed; 2315 ignored; 0 measured; 0 filtered out

thread 'main' panicked at 'Some tests failed', tools\compiletest\src\main.rs:476:22


command did not execute successfully: "C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\stage0-tools-bin\\compiletest.exe" "--compile-lib-path" "C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\stage2\\bin" "--run-lib-path" "C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\stage2\\lib\\rustlib\\x86_64-pc-windows-gnu\\lib" "--rustc-path" "C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\stage2\\bin\\rustc.exe" "--src-base" "C:\\workspace\\projects\\rust\\src/test\\compile-fail" "--build-base" "C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\test\\compile-fail" "--stage-id" "stage2-x86_64-pc-windows-gnu" "--mode" "compile-fail" "--target" "x86_64-pc-windows-gnu" "--host" "x86_64-pc-windows-gnu" "--llvm-filecheck" "C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\llvm\\build\\bin\\FileCheck.exe" "--nodejs" "C:\\Program Files\\nodejs\\node" "--host-rustcflags" "-Crpath -O -Zmiri -Zunstable-options " "--target-rustcflags" "-Crpath -O -Zmiri -Zunstable-options  -Lnative=C:\\workspace\\projects\\rust\\build\\x86_64-pc-windows-gnu\\native\\rust-test-helpers" "--docck-python" "C:\\Python27\\python.exe" "--lldb-python" "C:\\Python27\\python.exe" "--gdb" "C:\\msys64\\usr\\bin\\gdb" "--llvm-version" "6.0.0\n" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" ""
expected success, got: exit code: 101


failed to run: C:\workspace\projects\rust\build\bootstrap\debug\bootstrap test
Build completed unsuccessfully in 0:02:05
@petrochenkov
Copy link
Contributor

This most likely happens due to path C:\workspace\projects\rust\build\x86_64-pc-windows-gnu\test\compile-fail\trait-bounds-on-structs-and-enums-xc.stage2-x86_64-pc-windows-gnu.aux\trait_bounds_on_structs_and_enums_xc.trait_bounds_on_structs_and_enums_xc0-8787f43e282added376259c1adb08b80.rs.rcgu.o being too long (>256 characters).
Try to move rust build directory somewhere closer to the root.

@milesand
Copy link
Contributor Author

I tried moving C:\workspace\projects\rust to C:\rust and ran py -2 ./x.py test, which resulted in an unsuccessful build as described in #47405 (missing compiler-rt, failed to compile compiler-builtin). Removing the build directory and running py -2 ./x.py test again gave me CMake Errors of missing files, as described in #34489. Tried /c/Python27/python.exe ./x.py test, installing mingw64 version of python 2 and then running python ./x.py test, and repeating with a fresh clone of repo. Got same results. Python used in mingw64 version was mingw-w64-x86_64-python2-2.7.14-5.

Still trying to figure this out...

@pietroalbini pietroalbini added A-testsuite Area: The testsuite used to check the correctness of rustc O-windows Operating system: Windows C-bug Category: This is a bug. labels Feb 20, 2018
@tshepang
Copy link
Member

tshepang commented Aug 5, 2019

Does this happen with current repo?

@mati865
Copy link
Contributor

mati865 commented Sep 8, 2020

No, it has been fixed at some point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc C-bug Category: This is a bug. O-windows Operating system: Windows
Projects
None yet
Development

No branches or pull requests

5 participants