-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Bug] Build - Cross Compilation Failure #3188
Comments
Hello, thanks for opening an issue. We are not really familiar with Yocto. Could you give us more details on your use-case? Why do you specifically need to build with Yocto and cross-compile? Also, could you provide more details on the compilation failure? |
@bchalios The use case is around building a custom OS image that includes firecracker components. Instead of building on a host and copying to a target to run, one uses Yocto to build a custom Linux OS image and flash/boot device. It allows building reproducible custom Linux OS images. It does not use the firecracker build script, but above "recipe". The build invocation and error are included at the tail of my original post. There is nothing else. The gist is that the current method of building seccompiler (main) is not compatible when Cross compiling firecracker. |
Hey Joel, |
Will do, thanks
…On Fri, Oct 28, 2022, 3:15 AM Patrick Roy ***@***.***> wrote:
Hey Joel,
We just merged a fix for another cross-compilation failure wrt
seccompiler-bin that we were investigating. Could you please try whether
this also fixes your issue?
—
Reply to this email directly, view it on GitHub
<#3188 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC5R3WZC72GS5KC47SO6CCTWFORU7ANCNFSM6AAAAAARIFHDQU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi Joel, |
@roypat Problem is not resolved. I just checked on tip of tree. |
Working Yocto kirkstone recipes for tip of tree firecracker are located here: |
Hi, we have some plans to replace the |
#4120 changed our build script setup to no longer invoke |
Closing the issue since the issue seems to be fixed with #4120. |
@roypat I'll confirm the change. @sudanl0 that makes no sense. |
Hi @jwinarske, there was no reply on the issue for a long time so we concluded this was fixed. However, if this is not the case please feel free to reopen the issue and we will have a look at it. |
Describe the bug
When cross compiling firecracker the secompiler-bin execution step fails.
To Reproduce
Cross compile using Yocto
kirkstone
build system using this recipelocal.conf requires
layer deps:
meta-clang
Expected behaviour
That seccompiler-bin works when cross compiled.
One solution would be to check the system path for it before attempting to build.
Environment
[ - Firecracker version.]
Tip of tree
[ - Host and guest kernel versions.]
Yocto (Poky) Linux - kirkstone
[ - Rootfs used.]
Yocto generated
[ - Architecture.]
x86_64-poky-linux-musl + aarch64-poky-linux-musl
[ - Any other relevant software versions.]
meta-rust tip of tree (1.64)
Additional context
[How has this bug affected you?]
It's no longer possible to cross-compile build without patching the source tree.
[What are you trying to achieve?]
Build firecracker and tools in a cross compilation environment.
[Do you have any idea of what the solution might be?]
Using this patch and pre-building seccompiler, firecracker builds and installs without error.
0001-use-prebuilt-seccompiler.patch:
Build Output without patch:
../../build/seccompiler/x86_64-poky-linux-musl/debug/seccompiler-bin
is not correctly being built forHOST
.Checks
The text was updated successfully, but these errors were encountered: