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

make fails on Windows due to milagro_bls #1447

Closed
MysticRyuujin opened this issue Aug 3, 2020 · 4 comments
Closed

make fails on Windows due to milagro_bls #1447

MysticRyuujin opened this issue Aug 3, 2020 · 4 comments
Labels

Comments

@MysticRyuujin
Copy link

Description

Running make on Windows fails with the following error:

PS > make
cargo install --path lighthouse --force --locked
  Installing lighthouse v0.1.2 (E:\Temp\lighthouse\lighthouse)
    Updating git repository `https://github.com/michaelsproul/leveldb-sys`
    Updating crates.io index
    Updating git repository `https://github.com/sigp/blst.git`
    Updating git repository `https://github.com/sigp/milagro_bls`
    Updating git submodule `https://github.com/sigp/incubator-milagro-crypto-rust`
error: failed to get `milagro_bls` as a dependency of package `bls v0.2.0 (E:\Temp\lighthouse\crypto\bls)`

Caused by:
  failed to load source for dependency `milagro_bls`

Caused by:
  Unable to update https://github.com/sigp/milagro_bls?branch=paulh#76626908

Caused by:
  failed to update submodule `incubator-milagro-crypto-rust`

Caused by:
  cannot checkout to invalid path 'src/test_utils/hash_to_curve_vectors/BLS12381G1_XMD:SHA-256_SSWU_NU_.json'; class=Checkout (20)
make: *** [Makefile:13: install] Error 101

Version

Master: 1419501f2ebfc57cace294977d08ddd46ba99119

Present Behaviour

make 😭

Expected Behaviour

make 🥳

@michaelsproul
Copy link
Member

Hey @MysticRyuujin, thanks for the bug report.

Unfortunately, native Windows support is a long way off, and is being tracked in issue #1237. I'll update the docs today to make it clearer that Windows is only supported via WSL for now (and I'm going to double check that WSL does work).

@2naive
Copy link

2naive commented Aug 4, 2020

@michaelsproul on WSL Ubuntu 20 I got:

   Compiling pest_meta v2.1.3
error[E0658]: non-builtin inner attributes are unstable
 --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-2.16.2/src/descriptor.rs:9:1
  |
9 | #![rustfmt::skip]
  | ^^^^^^^^^^^^^^^^^
  |
  = note: see issue #54726 <https://github.com/rust-lang/rust/issues/54726> for more information

error[E0658]: non-builtin inner attributes are unstable
 --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-2.16.2/src/plugin.rs:9:1
  |
9 | #![rustfmt::skip]
  | ^^^^^^^^^^^^^^^^^
  |
  = note: see issue #54726 <https://github.com/rust-lang/rust/issues/54726> for more information

error[E0658]: non-builtin inner attributes are unstable
 --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-2.16.2/src/rustproto.rs:9:1
  |
9 | #![rustfmt::skip]
  | ^^^^^^^^^^^^^^^^^
  |
  = note: see issue #54726 <https://github.com/rust-lang/rust/issues/54726> for more information

error[E0658]: non-builtin inner attributes are unstable
 --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-2.16.2/src/well_known_types/any.rs:9:1
  |
9 | #![rustfmt::skip]
  | ^^^^^^^^^^^^^^^^^
  |
  = note: see issue #54726 <https://github.com/rust-lang/rust/issues/54726> for more information

error[E0658]: non-builtin inner attributes are unstable
 --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-2.16.2/src/well_known_types/api.rs:9:1
  |
9 | #![rustfmt::skip]
  | ^^^^^^^^^^^^^^^^^
  |
  = note: see issue #54726 <https://github.com/rust-lang/rust/issues/54726> for more information

error[E0658]: non-builtin inner attributes are unstable
 --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-2.16.2/src/well_known_types/duration.rs:9:1
  |
9 | #![rustfmt::skip]
  | ^^^^^^^^^^^^^^^^^
  |
  = note: see issue #54726 <https://github.com/rust-lang/rust/issues/54726> for more information

error[E0658]: non-builtin inner attributes are unstable
 --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-2.16.2/src/well_known_types/empty.rs:9:1
  |
9 | #![rustfmt::skip]
  | ^^^^^^^^^^^^^^^^^
  |
  = note: see issue #54726 <https://github.com/rust-lang/rust/issues/54726> for more information

error[E0658]: non-builtin inner attributes are unstable
 --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-2.16.2/src/well_known_types/field_mask.rs:9:1
  |
9 | #![rustfmt::skip]
  | ^^^^^^^^^^^^^^^^^
  |
  = note: see issue #54726 <https://github.com/rust-lang/rust/issues/54726> for more information

error[E0658]: non-builtin inner attributes are unstable
 --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-2.16.2/src/well_known_types/source_context.rs:9:1
  |
9 | #![rustfmt::skip]
  | ^^^^^^^^^^^^^^^^^
  |
  = note: see issue #54726 <https://github.com/rust-lang/rust/issues/54726> for more information

error[E0658]: non-builtin inner attributes are unstable
 --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-2.16.2/src/well_known_types/struct_pb.rs:9:1
  |
9 | #![rustfmt::skip]
  | ^^^^^^^^^^^^^^^^^
  |
  = note: see issue #54726 <https://github.com/rust-lang/rust/issues/54726> for more information

error[E0658]: non-builtin inner attributes are unstable
 --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-2.16.2/src/well_known_types/timestamp.rs:9:1
  |
9 | #![rustfmt::skip]
  | ^^^^^^^^^^^^^^^^^
  |
  = note: see issue #54726 <https://github.com/rust-lang/rust/issues/54726> for more information

error[E0658]: non-builtin inner attributes are unstable
 --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-2.16.2/src/well_known_types/type_pb.rs:9:1
  |
9 | #![rustfmt::skip]
  | ^^^^^^^^^^^^^^^^^
  |
  = note: see issue #54726 <https://github.com/rust-lang/rust/issues/54726> for more information

error[E0658]: non-builtin inner attributes are unstable
 --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/protobuf-2.16.2/src/well_known_types/wrappers.rs:9:1
  |
9 | #![rustfmt::skip]
  | ^^^^^^^^^^^^^^^^^
  |
  = note: see issue #54726 <https://github.com/rust-lang/rust/issues/54726> for more information

error: aborting due to 13 previous errors

For more information about this error, try `rustc --explain E0658`.
error: could not compile `protobuf`.

@michaelsproul
Copy link
Member

Hey @2naive that looks like an issue with an old Rust compiler, try running rustup update stable and recompiling. When you run rustc --version it should show v1.45.0 or better (probably v1.45.2)

@ghost ghost added A1 infra-ci labels Sep 9, 2020
@paulhauner paulhauner removed the A1 label Nov 8, 2020
@paulhauner
Copy link
Member

Closing due to inactivity. Please re-open if it's still an issue.

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

No branches or pull requests

4 participants