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

Cargo install fails on rustpython-ast build #78

Open
insomnes opened this issue Feb 29, 2024 · 9 comments
Open

Cargo install fails on rustpython-ast build #78

insomnes opened this issue Feb 29, 2024 · 9 comments

Comments

@insomnes
Copy link

 cargo install pylyzer --locked
...
error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
  --> /home/mdengin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustpython-ast-0.3.0/src/impls.rs:60:1
   |
60 | static_assertions::assert_eq_size!(crate::Stmt, [u8; 160]);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: source type: `generic::Stmt` (1216 bits)
   = note: target type: `[u8; 160]` (1280 bits)
   = note: this error originates in the macro `static_assertions::assert_eq_size` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0512]: cannot transmute between types of different sizes, or dependently-sized types
  --> /home/mdengin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustpython-ast-0.3.0/src/impls.rs:62:1
   |
62 | static_assertions::assert_eq_size!(crate::Pattern, [u8; 96]);
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: source type: `generic::Pattern` (704 bits)
   = note: target type: `[u8; 96]` (768 bits)
   = note: this error originates in the macro `static_assertions::assert_eq_size` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0512`.
error: could not compile `rustpython-ast` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `pylyzer v0.0.51`, intermediate artifacts can be found at `/tmp/cargo-installGOeH1Z`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
@awalvie
Copy link

awalvie commented Mar 1, 2024

Running into the same thing when trying to install via Mason

@saygo-png
Copy link

same here with mason

@rodrigomverissimo
Copy link

rodrigomverissimo commented Mar 3, 2024

In the meantime, try using the previous version of Rust rustup default 1.75.0

This fixed it for me.

@susludusrotalis
Copy link

Same issue with installing with Mason

@mtshiba
Copy link
Owner

mtshiba commented Mar 5, 2024

Perhaps related to RustPython/Parser#114.

@mtshiba
Copy link
Owner

mtshiba commented Mar 6, 2024

Build using Rust 1.75.

@snail-with-tea
Copy link

Maybe add rust version to cargo.toml?

Bodleum added a commit to Bodleum/neovim that referenced this issue Mar 22, 2024
@mtshiba
Copy link
Owner

mtshiba commented Mar 25, 2024

Cargo.toml's package.rust-version is the minimal supported Rust version, so it won't help this time.

@chenrui333
Copy link

chenrui333 commented Mar 27, 2024

@mtshiba looks like the head build works for me with rust 1.77.0, can we cut a new release soon than later? Thanks!

This is my head build log, https://gist.github.com/chenrui333/8a383dadf60b4e1fc41771a150aab18a

Bodleum added a commit to Bodleum/neovim that referenced this issue Apr 6, 2024
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

8 participants