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

dont compile on Ubuntu 2204 #66

Closed
dominix opened this issue Feb 9, 2023 · 7 comments
Closed

dont compile on Ubuntu 2204 #66

dominix opened this issue Feb 9, 2023 · 7 comments

Comments

@dominix
Copy link

dominix commented Feb 9, 2023

Describe the bug

just typed "cargo install sniffnet"

To Reproduce
cargo install sniffnet

Expected behavior
compile sniffnet cleanly

Screenshots
...
Compiling iced_core v0.7.0
Compiling wgpu-hal v0.14.1
Compiling iced_futures v0.5.1
Compiling iced_style v0.6.0
Compiling iced_native v0.8.0
Compiling image v0.24.5
Compiling ipnetwork v0.18.0
Compiling smithay-clipboard v0.6.6
Compiling sctk-adwaita v0.4.3
Compiling confy v0.5.1
Compiling maxminddb v0.23.0
Compiling iced_graphics v0.6.0
error[E0658]: generic associated types are unstable
--> /home/koublaski/.cargo/registry/src/github.com-1ecc6299db9ec823/iced_graphics-0.6.0/src/image/storage.rs:12:5
|
12 | type State<'a>;
| ^^^^^^^^^^^^^^^
|
= note: see issue #44265 rust-lang/rust#44265 for more information

For more information about this error, try rustc --explain E0658.
error: could not compile iced_graphics due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile sniffnet v1.1.0, intermediate artifacts can be found at /tmp/cargo-installT3ViYm

Desktop (please complete the following information):

  • OS: [e.g. MacOS, Linux, Windows]
    linux Ubuntu
    Distributor ID: Ubuntu
    Description: Ubuntu 22.04.1 LTS
    Release: 22.04
    Codename: jammy

Additional context

I have tried to "rustup update" but it doesn't change nothing.

@GyulyVGC
Copy link
Owner

GyulyVGC commented Feb 9, 2023

Generic associated types has actually been stabilised in the newest Rust versions.
Can I see the error after you updated your version of Rust? If it's the same, try restarting your shell. I don't get how it could tell you that GAT are still unstable.

@GyulyVGC
Copy link
Owner

GyulyVGC commented Feb 9, 2023

Check to have the latest version with

rustc --version

@dominix
Copy link
Author

dominix commented Feb 9, 2023

rustc 1.63.0

@dominix
Copy link
Author

dominix commented Feb 9, 2023

rustup update
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: cleaning up downloads & tmp directories

but still

rustc --version

rustc 1.63.0

@dominix
Copy link
Author

dominix commented Feb 9, 2023

rustup update stable
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: latest update on 2023-02-09, rust version 1.67.1 (d5a82bbd2 2023-02-07)
info: downloading component 'cargo'
info: downloading component 'clippy'
info: downloading component 'rust-docs'
info: downloading component 'rust-std'
29.3 MiB / 29.3 MiB (100 %) 21.4 MiB/s in 1s ETA: 0s
info: downloading component 'rustc'
67.8 MiB / 67.8 MiB (100 %) 21.4 MiB/s in 3s ETA: 0s
info: downloading component 'rustfmt'
info: installing component 'cargo'
info: installing component 'clippy'
info: installing component 'rust-docs'
19.3 MiB / 19.3 MiB (100 %) 3.5 MiB/s in 5s ETA: 0s
info: installing component 'rust-std'
29.3 MiB / 29.3 MiB (100 %) 8.1 MiB/s in 3s ETA: 0s
info: installing component 'rustc'
67.8 MiB / 67.8 MiB (100 %) 8.3 MiB/s in 8s ETA: 0s
info: installing component 'rustfmt'

stable-x86_64-unknown-linux-gnu installed - rustc 1.67.1 (d5a82bbd2 2023-02-07)

$ rustc --version
rustc 1.63.0

I may have gotten something wrong, shouldn't I have a 1.67.1 rustc ?

@dominix
Copy link
Author

dominix commented Feb 9, 2023

ubuntu is a complete mess regarding rust package management. part of it are in deb, other are in snap and dont interpolate correctly.

I just removed rustc cargo and rustup and installed all from https://sh.rustup.rs and now it compile cleanly. sorry for the noise.

@GyulyVGC
Copy link
Owner

I just removed rustc cargo and rustup and installed all from https://sh.rustup.rs and now it compile cleanly. sorry for the noise.

Don't worry at all! I'm glad you solved it!

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