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

compile-error #566

Closed
erkules opened this issue Apr 19, 2024 · 3 comments
Closed

compile-error #566

erkules opened this issue Apr 19, 2024 · 3 comments

Comments

@erkules
Copy link

erkules commented Apr 19, 2024

Not a lot to say.

Kernel Linux somisan 6.7.5-x64v3-xanmod1 #0~20240216.gf29bf01 SMP PREEMPT_DYNAMIC Fri Feb 16 20:35:14 UTC x86_64 x86_64 x86_64 GNU/Linux

$ make build
cargo build --target=x86_64-unknown-linux-gnu --target-dir=./target/ -p containerd-shim-wasm  
   Compiling libcontainer v0.3.2
error[E0599]: no method named `get_notify_fd` found for struct `ScmpFilterContext` in the current scope
   --> /home/erkan/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libcontainer-0.3.2/src/seccomp/mod.rs:270:17
    |
270 |             ctx.get_notify_fd()
    |                 ^^^^^^^^^^^^^ method not found in `ScmpFilterContext`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `libcontainer` (lib) due to previous error
make: *** [Makefile:72: build-wasm] Error 101

@Mossaka
Copy link
Member

Mossaka commented Apr 19, 2024

Related: #486

Particularly this comment might help: #486 (comment)

@jprendes
Copy link
Collaborator

This #486 (comment) might also help.

@erkules
Copy link
Author

erkules commented Apr 19, 2024

While cargo clean -p libseccomp -p libseccomp-sys resulted in the same error.
make CARGO=cross build worked.

thx @ALL

@erkules erkules closed this as completed Apr 19, 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

3 participants