-
Notifications
You must be signed in to change notification settings - Fork 95
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
method not found in ScmpFilterContext #486
Comments
May I ask you to make sure that you installed libseccomp-dev 2.5+. |
thank you for your reply! yes, 2.5.4 has been installed apt-get install -y libseccomp-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libseccomp-dev is already the newest version (2.5.4-1ubuntu3).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded. |
Hi @Wangyiwei-So , Could you do If you've tried building without installing |
Thank you! @jprendes $ cargo clean -p libseccomp -p libseccomp-sys
$ make build FEATURES=wasmedge
/bin/sh: 1: sudo: not found
cargo build --target=x86_64-unknown-linux-gnu --target-dir=./target/ -p containerd-shim-wasm --no-default-features --features generate_bindings
Compiling libseccomp-sys v0.2.1
Compiling libseccomp v0.3.0
Compiling libcontainer v0.3.0
error[E0599]: no method named `get_notify_fd` found for struct `ScmpFilterContext` in the current scope
--> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libcontainer-0.3.0/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`. |
@Wangyiwei-So Where did you get the For deps, did you run |
Just be sure to use the latest runwasi code.
|
@jsturtevant @utam0k thank you both very much, i tried two methods, but report same error. do you have builder image? |
What's a builder image? Dockerfile? |
@utam0k yes. sorry i use google translator |
@Wangyiwei-So , you could run the makefile with
You will need to install
|
Related to this issue, youki/libcontainer starts to implement their own |
I just ran into this on WSL, @Wangyiwei-So are you using wsl as well? |
I ran into this on WSL as well - managed to get
|
I try to compile runwasi in ubuntu:
I tried ubuntu:23.10 container:
uname -a Linux 004aed56de46 6.7.0-arch3-1 #1 SMP PREEMPT_DYNAMIC Sat, 13 Jan 2024 14:37:14 +0000 x86_64 x86_64 x86_64 GNU/Linux
and a ubuntu:20 machine
I installed dependencies
and got this message
The text was updated successfully, but these errors were encountered: