Bug 14239 - Apparmor build started failing when cross-compiling
Summary: Apparmor build started failing when cross-compiling
Status: RESOLVED FIXED
Alias: None
Product: Other YP Layers
Classification: Build System, Metadata & Runtime
Component: meta-security (show other bugs)
Version: unspecified
Hardware: Other arm64
: Undecided major
Target Milestone: ---
Assignee: akuster
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2021-02-18 20:50 UTC by om26er
Modified: 2021-04-16 01:28 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
build failure logs (144.29 KB, text/x-log)
2021-02-18 20:50 UTC, om26er
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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