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 test tests/run-make/translation fails when download-rustc is enabled #110357

Closed
jyn514 opened this issue Apr 15, 2023 · 0 comments · Fixed by #110525
Closed

x test tests/run-make/translation fails when download-rustc is enabled #110357

jyn514 opened this issue Apr 15, 2023 · 0 comments · Fixed by #110525
Labels
A-download-rustc Area: The `rust.download-rustc` build option. A-testsuite Area: The testsuite used to check the correctness of rustc C-bug Category: This is a bug. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@jyn514
Copy link
Member

jyn514 commented Apr 15, 2023

I tried this code: ./configure --set download-rustc && x test tests/run-make/translation

I expected to see this happen: All tests pass.

Instead, this happened:

rm -rf /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/test/run-make/translation/translation/fakeroot
mkdir /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/test/run-make/translation/translation/fakeroot
ln -s /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/stage2/* /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/test/run-make/translation/translation/fakeroot
rm -f /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/test/run-make/translation/translation/fakeroot/lib
mkdir /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/test/run-make/translation/translation/fakeroot/lib
ln -s /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/stage2/lib/* /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/test/run-make/translation/translation/fakeroot/lib
rm -f /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/test/run-make/translation/translation/fakeroot/lib/rustlib
mkdir /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/test/run-make/translation/translation/fakeroot/lib/rustlib
ln -s /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/* /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/test/run-make/translation/translation/fakeroot/lib/rustlib
rm -f /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/test/run-make/translation/translation/fakeroot/lib/rustlib/src
mkdir /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/test/run-make/translation/translation/fakeroot/lib/rustlib/src
ln -s /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/src/* /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/test/run-make/translation/translation/fakeroot/lib/rustlib/src
mkdir -p /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/test/run-make/translation/translation/fakeroot/share/locale/zh-CN/
ln -s /home/jyn/src/rust/tests/run-make/translation/working.ftl /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/test/run-make/translation/translation/fakeroot/share/locale/zh-CN/basic-translation.ftl
LD_LIBRARY_PATH="/home/jyn/src/rust/build/x86_64-unknown-linux-gnu/test/run-make/translation/translation:/home/jyn/src/rust/build/x86_64-unknown-linux-gnu/stage2/lib:/home/jyn/src/rust/build/x86_64-unknown-linux-gnu/stage0-bootstrap-tools/x86_64-unknown-linux-gnu/release/deps:/home/jyn/src/rust/build/x86_64-unknown-linux-gnu/stage0/lib" '/home/jyn/src/rust/build/x86_64-unknown-linux-gnu/stage2/bin/rustc' --out-dir /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/test/run-make/translation/translation -L /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/test/run-make/translation/translation  test.rs --sysroot /home/jyn/src/rust/build/x86_64-unknown-linux-gnu/test/run-make/translation/translation/fakeroot -Ztranslate-lang=zh-CN 2>&1 | "/home/jyn/src/rust/src/etc/cat-and-grep.sh" "this is a test message"
[[[ begin stdout ]]]
error: failed to load fluent bundle: failed to add resource: Attempt to override an existing message: "parse_struct_literal_body_without_path".


[[[ end stdout ]]]
Error: cannot match: this is a test message
------------------------------------------
--- stderr -------------------------------
make: *** [Makefile:51: sysroot] Error 1
------------------------------------------



failures:
    [run-make] tests/run-make/translation

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 308 filtered out; finished in 98.68ms

Some tests failed in compiletest suite=run-make mode=run-make host=x86_64-unknown-linux-gnu target=x86_64-unknown-linux-gnu

Meta

HEAD is branched from ce1073b.

@jyn514 jyn514 added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) C-bug Category: This is a bug. A-download-rustc Area: The `rust.download-rustc` build option. A-testsuite Area: The testsuite used to check the correctness of rustc labels Apr 15, 2023
@bors bors closed this as completed in 9a13f4f Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-download-rustc Area: The `rust.download-rustc` build option. A-testsuite Area: The testsuite used to check the correctness of rustc C-bug Category: This is a bug. 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.

1 participant