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

RuntimeError: src/stage0.json doesn't contain a checksum for dist/2022-01-28/rustc-beta-sparcv9-sun-solaris.tar.xz #94217

Closed
psumbera opened this issue Feb 21, 2022 · 8 comments
Assignees
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools C-bug Category: This is a bug. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Comments

@psumbera
Copy link
Contributor

psumbera commented Feb 21, 2022

Trying to build latest sources on SPARC Solaris and ./x.py fails with:

downloading https://static.rust-lang.org/dist/2022-01-28/rust-std-beta-sparcv9-sun-solaris.tar.xz
###################################################################################################################################################################### 100.0%extracting /builds/psumbera/rustc-test/build/cache/2022-01-28/rust-std-beta-sparcv9-sun-solaris.tar.xz
Traceback (most recent call last):
  File "./x.py", line 27, in <module>
    bootstrap.main()
  File "/builds/psumbera/rustc-test/src/bootstrap/bootstrap.py", line 1325, in main
    bootstrap(help_triggered)
  File "/builds/psumbera/rustc-test/src/bootstrap/bootstrap.py", line 1291, in bootstrap
    build.download_toolchain()
  File "/builds/psumbera/rustc-test/src/bootstrap/bootstrap.py", line 456, in download_toolchain
    self._download_component_helper(filename, "rustc", tarball_suffix, stage0)
  File "/builds/psumbera/rustc-test/src/bootstrap/bootstrap.py", line 600, in _download_component_helper
    do_verify=stage0,
  File "/builds/psumbera/rustc-test/src/bootstrap/bootstrap.py", line 73, in get
    raise RuntimeError("src/stage0.json doesn't contain a checksum for {}".format(url))
RuntimeError: src/stage0.json doesn't contain a checksum for dist/2022-01-28/rustc-beta-sparcv9-sun-solaris.tar.xz
@psumbera psumbera added the C-bug Category: This is a bug. label Feb 21, 2022
@psumbera
Copy link
Contributor Author

@hkratz any idea about this? This looks similiar to #90393 .

@Mark-Simulacrum
Copy link
Member

sparcv9-sun-solaris is not a tier 2 with host tools platform, so rustc is not available in precompiled form for that target. You'll have to cross-compile from a different machine, most likely.

@psumbera
Copy link
Contributor Author

I build every released veresion using previous one. Is there way to build latest github version using latest released version 1.58.1? Is cross-compiling explained somewhere?

@Mark-Simulacrum
Copy link
Member

To be clear, I don't believe sparv9-sun-solaris has ever been a tier 2 with host tools target. Did x.py work for you before? It might be that we're detecting a different build triple for some reason. The problem you're running into is precisely that no 'previous' version exists for this target triple.

I'm not sure there's a very detailed explanation, but https://rustc-dev-guide.rust-lang.org/building/new-target.html#cross-compiling has some very basic docs.

@psumbera
Copy link
Contributor Author

To be clear, I don't believe sparv9-sun-solaris has ever been a tier 2 with host tools target. Did x.py work for you before? It might be that we're detecting a different build triple for some reason. The problem you're running into is precisely that no 'previous' version exists for this target triple.

It probably newer worked for me. I was mainly confused that it did download some existing archive and it failed later with python stack trace. I would hope at least for some error message (not supported platform?!).

@Mark-Simulacrum
Copy link
Member

Yeah, we can probably improve the checksum error message to something like "pre-built artifacts not available for this target at this time, see [platform support] page" -- happy to take a PR doing so.

@ehuss ehuss added the T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) label Feb 22, 2022
@jyn514
Copy link
Member

jyn514 commented Mar 29, 2022

Mentoring instructions: change

raise RuntimeError("src/stage0.json doesn't contain a checksum for {}".format(url))
to include "pre-built artifacts not available for this target at this time, see https://doc.rust-lang.org/nightly/rustc/platform-support.html"

@rustbot label: +A-docs +E-easy

@rustbot rustbot added A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. labels Mar 29, 2022
@gimbling-away
Copy link
Contributor

@rustbot claim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: documentation for any part of the project, including the compiler, standard library, and tools C-bug Category: This is a bug. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

No branches or pull requests

6 participants