-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Disable jailer build for Glibc #2102
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
Comments
Hi, after spending few hours on the analysis. Following options can possibly be ruled out:
Would like to explore more if there are any pointers. Otherwise, devtool modification seems to be the only option. Thanks, |
Hello. Thank you for the interest in this issue and for taking the time to investigate. In regards to the last point you made, about the We currently have a build script that is run for both the jailer and the firecracker binaries. We could update the script to check the targeted libc abi, before building the jailer. We have two options here: either displaying a warning or exiting with an error code. Let me discuss this with the team and I will get back to you when we reach a conclusion. |
Seems that there is no way of specifying workspace members based on platform. |
I like that! # for musl:
cargo build # <-- builds firecracker
cargo build -p jailer # <-- builds jailer
# for gnu:
cargo build --target x86_64-unknown-linux-gnu |
After extensive discussions in the team, we decided to go for the option mentioned above by @dianpopa and @acatangiu. @krishnakumar4a4 are you interested in contributing a fix for this issue? If so, please tell us and get in touch if you need any guidance. |
Sure @alindima , would work on it and come up with a PR on this. Will let you know in case I need help. Thanks. |
Fixed by #2125 |
Currently, the jailer can be used only when Firecracker is linked with static musl, not with dynamic glibc.
The fact that the build command successfully builds the jailer with glibc is misleading and outputs jailer binaries that do not work with the corresponding Firecracker binary.
We should make sure that when we compile the source code, we only build the jailer if the specified toolchain is musl.
One way of doing this would be to modify
devtool
. However, we should first investigate for any options we could add in theCargo.toml
files to restrict compilation based on toolchain.The text was updated successfully, but these errors were encountered: