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

build.sh beta build tries to git update vendored dependency #9

Closed
bugabinga opened this issue Jul 3, 2018 · 3 comments
Closed

build.sh beta build tries to git update vendored dependency #9

bugabinga opened this issue Jul 3, 2018 · 3 comments

Comments

@bugabinga
Copy link

Hi

It seems this issue is supposed to be fixed upstream.
I am using -stable.
Should build-rust even work with 6.3?

 oliver:130$ ./build.sh beta build                                                                                                      
Tue Jul  3 20:24:54 CEST 2018: target: beta - x86_64-unknown-openbsd
Tue Jul  3 20:24:54 CEST 2018: starting rustbuild dist --jobs=2
running: /usr/local/bin/cargo build --manifest-path /home/oliver/Workspace/rustlang/build-rust/build_dir/rustc-beta-src/src/bootstrap/Cargo.toml --frozen
warning: unused manifest key: package.autobenches
warning: unused manifest key: package.autotests
warning: unused manifest key: package.autobenches
warning: unused manifest key: package.autotests
    Updating git repository `https://github.com/rust-lang-nursery/rustfmt`
error: failed to load source for a dependency on `rustfmt-nightly`

Caused by:
  Unable to update https://github.com/rust-lang-nursery/rustfmt?rev=f3906267#f3906267

Caused by:
  failed to fetch into /home/oliver/Workspace/rustlang/build-rust/install_dir/crates/git/db/rustfmt-5390e0ead582d971

Caused by:
  attempting to update a git repository, but --frozen was specified
Traceback (most recent call last):
  File "/home/oliver/Workspace/rustlang/build-rust/build_dir/rustc-beta-src/x.py", line 20, in <module>
    bootstrap.main()
  File "/home/oliver/Workspace/rustlang/build-rust/build_dir/rustc-beta-src/src/bootstrap/bootstrap.py", line 827, in main
    bootstrap(help_triggered)
  File "/home/oliver/Workspace/rustlang/build-rust/build_dir/rustc-beta-src/src/bootstrap/bootstrap.py", line 806, in bootstrap
    build.build_bootstrap()
  File "/home/oliver/Workspace/rustlang/build-rust/build_dir/rustc-beta-src/src/bootstrap/bootstrap.py", line 633, in build_bootstrap
    run(args, env=env, verbose=self.verbose)
  File "/home/oliver/Workspace/rustlang/build-rust/build_dir/rustc-beta-src/src/bootstrap/bootstrap.py", line 148, in run
    raise RuntimeError(err)
RuntimeError: failed to run: /usr/local/bin/cargo build --manifest-path /home/oliver/Workspace/rustlang/build-rust/build_dir/rustc-beta-src/src/bootstrap/Cargo.toml --frozen

@semarie Unless you think this issue is a new issue, I will close this soon, ok?

@bugabinga
Copy link
Author

Mh, you've already hit this: rust-lang/rust#51407

@semarie
Copy link
Owner

semarie commented Jul 4, 2018

in order to build the current beta (1.28-beta), you need a rustc version 1.27.0.
so you can't use this tool from openbsd-stable to build beta or nightly.

you could try to checkout the port lang/rust from openbsd-current, and try to build it first. I think stable isn't too old to use the binary bootstrap from it. but it is an unsupported configuration.

else you should build each rust release from 1.24.0 (version in openbsd-stable) to 1.27.0

bugabinga added a commit to bugabinga/build-rust that referenced this issue Jul 4, 2018
As discussed in [issue 9](semarie#9 (comment)), this updates the docs to advise people that using -current is easiest.
@bugabinga
Copy link
Author

Fixed upstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants