cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Participant
Participant
7,766 Views
Registered: ‎11-09-2014

petalinux-build error

Jump to solution

[ALL  ]  /root/petalinux-v2014.2-final/components/packages-repo/plnx-repo/pool/main/b/busybox-inetd/busybox-inetd_1.22.1-r0_armv7a-vfp-neon.deb
[ALL  ]  /root/petalinux-v2014.2-final/components/packages-repo/plnx-repo/pool/main/b/busybox-mdev/busybox-mdev_1.22.1-r0_armv7a-vfp-neon.deb
[ALL  ]  /root/petalinux-v2014.2-final/components/packages-repo/plnx-repo/pool/main/i/init-ifupdown/init-ifupdown_1.0-r7_armv7a-vfp-neon.deb
[ALL  ]  /root/petalinux-v2014.2-final/components/packages-repo/plnx-repo/pool/main/m/modutils-initscripts/modutils-initscripts_1.0-r7_armv7a-vfp-neon.deb
[ERROR] E: Sub-process /root/petalinux-v2014.2-final/tools/packagemanager/bin/dpkg returned an error code (1)
[ALL  ] Makefile:171: recipe for target '.pkg_stagefs' failed
[ERROR] make[2]: *** [.pkg_stagefs] Error 255
[ALL  ] make[2]: Leaving directory '/root/workspace/020/build/linux/rootfs/packages-repo'
[ALL  ] Makefile:107: recipe for target 'sub_build_component_/none/packages-repo/single/plnx-repo' failed
[ERROR] make[1]: *** [sub_build_component_/none/packages-repo/single/plnx-repo] Error 2
[ALL  ] make[1]: Leaving directory '/root/workspace/020/build/linux/rootfs'
[ALL  ] Makefile:49: recipe for target 'sub_build_component_/none/rootfs/single/petalinux-rootfs' failed
[ALL  ] make: *** [sub_build_component_/none/rootfs/single/petalinux-rootfs] Error 2
[ALL  ] make: Leaving directory '/root/workspace/020/build/linux'

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Xilinx Employee
Xilinx Employee
14,250 Views
Registered: ‎07-01-2010

@a7458969

 

What OS are you working on?

 

If you are using RHEL/CentOS/Fedora can you try installin i686 library and see if that helps.

 

yum install libselinux.i686

 

Regards,

Achutha

---------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------

View solution in original post

0 Kudos
4 Replies
Highlighted
Xilinx Employee
Xilinx Employee
14,251 Views
Registered: ‎07-01-2010

@a7458969

 

What OS are you working on?

 

If you are using RHEL/CentOS/Fedora can you try installin i686 library and see if that helps.

 

yum install libselinux.i686

 

Regards,

Achutha

---------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Highlighted
Xilinx Employee
Xilinx Employee
7,725 Views
Registered: ‎07-01-2010

@a7458969

 

Do you have a chance to try the suggest?

 

Regards,

Achutha

---------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------
0 Kudos
Highlighted
7,230 Views
Registered: ‎08-27-2015

I am having this problem as well. I tried yum install libselinux.i686 on a REHL 6  64 bit box. I got "Nothing to do." It seems that the 32 bit  libselinux is already present. At this point I don't know to fix this.

 

Again here is the error caused by petalinux-build.

 

 

[INFO ] update linux/u-boot source
[INFO ] generate linux/u-boot configuration files
[INFO ] build linux/u-boot
[INFO ] build zynq_fsbl
[INFO ] Expanding stagefs
[ERROR] Errors were encountered while processing:
[ERROR] E: Sub-process /localc/Xilinx/petalinux-v2015.2-final/tools/packagemanager/bin/dpkg returned an error code (1)
[ERROR] make[2]: *** [.pkg_stagefs] Error 255
[ERROR] make[1]: *** [sub_build_component_/none/packages-repo/single/plnx-repo] Error 2
ERROR: Failed to build linux

 

 

I am running :

 

cat /proc/version
Linux version 2.6.32-504.12.2.el6.x86_64 (mockbuild@x86-027.build.eng.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-9) (GCC) ) #1 SMP Sun Feb 1 12:14:02 EST 2015

 

 

0 Kudos
Highlighted
7,218 Views
Registered: ‎08-27-2015

Regarding the aforementioned petalinux-build error:

 

The libselinux seemed OK.

file .../petalinux-install-blahblah/tools/packagemanager/bin/dpkg

 

returns that it is a 64 bit app.

ldd .../petalinux-install-blahblah/tools/packagemanager/bin/dpkg

says it has all its dependencies.

 

It seems that if I run as root, create a new project, then build, it works.

There are many chowns in the makefiles that won't work. I believe this is because I am running an ext4 filesystem, rather than ext3.

 

At any rate, it seems that I have to be root to make a build work. Is this the way the system is supposed to work?

 

T Madden

0 Kudos