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

Problem: sevctl installation broken on Ubuntu #715

Merged
merged 2 commits into from
Oct 29, 2024
Merged

Conversation

olethanh
Copy link
Collaborator

sevctl 0.4.3 was refusing to compile on Ubuntu 22.04 and 24.02
because of some deps. This happened in the Github CI

This prevented the build of package and the testing inside the CI

Solution: Update sevctl to 0.6.0

Error logs

Compiling structopt-derive v0.4.18
error[E0658]: `c".."` literals are experimental
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kvm-ioctls-0.19.0/src/ioctls/system.rs:99:24
|
99 |         let kvm_path = c"/dev/kvm";
|                        ^^^^^^^^^^^
|
= note: see issue #105723 <https://github.com/rust-lang/rust/issues/105723> for more information

error[E0658]: `c".."` literals are experimental
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kvm-ioctls-0.19.0/src/ioctls/system.rs:744:24
|
744 |         let kvm_path = c"/dev/kvm";
|                        ^^^^^^^^^^^
|
= note: see issue #105723 <https://github.com/rust-lang/rust/issues/105723> for more information

For more information about this error, try `rustc --explain E0658`.
The following warnings were emitted during compilation:

warning: [email protected]: cargo:rustc-check-cfg requires -Zcheck-cfg flag

error: could not compile `kvm-ioctls` (lib) due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `sevctl v0.4.3 (https://github.com/virtee/sevctl.git?rev=c41c9172be013d6f10b9e1d7286fcb021805d5a5#c41c9172)`, intermediate artifacts can be found at `/tmp/cargo-installXhERbT`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
make: *** [Makefile:51: target/bin/sevctl] Error 101
make: *** [Makefile:89: all-podman-ubuntu-2204] Error 2

sevctl 0.4.3 was refusing to compile on Ubuntu 22.04 and 24.02
because of some deps. This happened in the Github CI

This prevented the build of package and the testing inside the CI

Solution: Update sevctl to 0.6.0

Error logs
        Compiling structopt-derive v0.4.18
    error[E0658]: `c".."` literals are experimental
      --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kvm-ioctls-0.19.0/src/ioctls/system.rs:99:24
       |
    99 |         let kvm_path = c"/dev/kvm";
       |                        ^^^^^^^^^^^
       |
       = note: see issue #105723 <rust-lang/rust#105723> for more information

    error[E0658]: `c".."` literals are experimental
       --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/kvm-ioctls-0.19.0/src/ioctls/system.rs:744:24
        |
    744 |         let kvm_path = c"/dev/kvm";
        |                        ^^^^^^^^^^^
        |
        = note: see issue #105723 <rust-lang/rust#105723> for more information

    For more information about this error, try `rustc --explain E0658`.
    The following warnings were emitted during compilation:

    warning: [email protected]: cargo:rustc-check-cfg requires -Zcheck-cfg flag

    error: could not compile `kvm-ioctls` (lib) due to 2 previous errors
    warning: build failed, waiting for other jobs to finish...
    error: failed to compile `sevctl v0.4.3 (https://github.com/virtee/sevctl.git?rev=c41c9172be013d6f10b9e1d7286fcb021805d5a5#c41c9172)`, intermediate artifacts can be found at `/tmp/cargo-installXhERbT`.
    To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
    make: *** [Makefile:51: target/bin/sevctl] Error 101
    make: *** [Makefile:89: all-podman-ubuntu-2204] Error 2
Copy link

codecov bot commented Oct 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.59%. Comparing base (7a2d6cc) to head (a83d803).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #715   +/-   ##
=======================================
  Coverage   62.59%   62.59%           
=======================================
  Files          69       69           
  Lines        6138     6138           
  Branches      491      491           
=======================================
  Hits         3842     3842           
  Misses       2152     2152           
  Partials      144      144           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@olethanh olethanh merged commit 7741ac8 into main Oct 29, 2024
22 checks passed
@Psycojoker Psycojoker deleted the ol-fix-sevctl-ubuntu branch October 29, 2024 15:37
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

Successfully merging this pull request may close these issues.

2 participants