Bug 14239

Summary: Apparmor build started failing when cross-compiling
Product: [Build System, Metadata & Runtime] Other YP Layers Reporter: om26er <om26er>
Component: meta-securityAssignee: akuster <akuster808>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Undecided    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: arm64   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
build failure logs none

Description om26er 2021-02-18 20:50:40 UTC
Created attachment 4772 [details]
build failure logs

Apparmor compilation fails when doing cross-compilation. It was working fine yesterday but does not work today. Our multiple systems are facing this issue.

We are using dunfell branch and apparmor fails to build for both RaspberryPi 4 and Nvidia Xavier NX. I have attached the logs.

I should be able to help if told where the issue might be

Note: it works fine when compiling for qemu
Comment 1 om26er 2021-02-18 21:15:13 UTC
Looking closely on the build failure, it seems the issue is only happening when apparmor builds it's Python bindings. So to workaround the failure, I disabled python support and the compilation worked.

So what would a "real" fix look like here (I am clueless right now)
Comment 3 akuster 2021-02-25 16:02:22 UTC
a set of changes is making its way through the various branches.

http://git.yoctoproject.org/cgit/cgit.cgi/meta-security/commit/?id=725526e0ea0283bc704a481a044d9cbf6fd99f20