Bug 6606

Summary: libseccomp fails on ppc & mips64
Product: [Build System, Metadata & Runtime] Other YP Layers Reporter: Armin Kuster <akuster>
Component: meta-securityAssignee: Armin Kuster <akuster>
Status: VERIFIED FIXED QA Contact: Bogdan Alexandru Voiculescu <bogdanx.a.voiculescu>
Severity: normal    
Priority: Medium CC: bogdanx.a.voiculescu, sgw
Version: unspecified   
Target Milestone: 1.9   
Hardware: x86   
OS: ppc   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Armin Kuster 2014-08-03 23:01:24 UTC
libseccomp does not support PPC.

 make[1]: Entering directory `/home/akuster/oss/yocto/poky/build/tmp/work/ppc7400-poky-linux/libseccomp/2.1.1-r0/libseccomp-2.1.1/src'
| arch.c:50:2: error: #error the arch code needs to know about your machine type
|  #error the arch code needs to know about your machine type
|   ^
| make[1]: *** [arch.o] Error 1
Comment 1 Armin Kuster 2014-08-16 02:02:11 UTC
there is no mips support either.

Upstream has Mips and arm64 support but no ppc.
Comment 2 Armin Kuster 2014-09-04 05:08:34 UTC
mips64 just went in. No ppc movement.
Aarch64 is in as well.


seccomp kernel suport is changes soon so we may need specific verions of libseccomp to match kernel like ltt-ng.
Comment 3 Armin Kuster 2015-03-28 04:33:13 UTC
version 2.2 has mips and arm64 support.


ppc is not yet in master libsecomp. once it is, I will pull in the changes.
Comment 4 Armin Kuster 2015-04-13 22:14:41 UTC
ppc updates in master-next
Comment 5 Armin Kuster 2015-04-16 21:53:57 UTC
fixed and checked into master.
Comment 6 Bogdan Alexandru Voiculescu 2015-10-14 13:03:06 UTC
Successful build  bitbake core-image-minimal for qemuarm64  qemumips64  qemuppc
on master 7b86c771c80d0759c2ca0e57c46c4c966f89c49e

local.conf 

CONF_VERSION = "1"
IMAGE_INSTALL_append = " packagegroup-core-security clamav suricata sleuthkit"
IMAGE_INSTALL_append = " ruby ruby-dev bundler libseccomp"


bblayers.conf 

BBLAYERS ?= " \
  /home/autobuilder/yocto/poky/meta \
  /home/autobuilder/yocto/poky/meta-yocto \
  /home/autobuilder/yocto/poky/meta-yocto-bsp \
  /home/autobuilder/yocto/poky/meta-security \
  /home/autobuilder/yocto/poky/meta-openembedded/meta-oe \
  /home/autobuilder/yocto/poky/meta-openembedded/meta-ruby \
  /home/autobuilder/yocto/poky/meta-openembedded/meta-perl \
  /home/autobuilder/yocto/poky/meta-openembedded/meta-python \
  /home/autobuilder/yocto/poky/meta-openembedded/meta-networking \
  "