UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Participant a7458969
Participant
7,613 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
Xilinx Employee
Xilinx Employee
14,097 Views
Registered: ‎07-01-2010

Re: petalinux-build error

Jump to solution

@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.
----------------------------------------------------------------------------------------
0 Kudos
4 Replies
Xilinx Employee
Xilinx Employee
14,098 Views
Registered: ‎07-01-2010

Re: petalinux-build error

Jump to solution

@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.
----------------------------------------------------------------------------------------
0 Kudos
Xilinx Employee
Xilinx Employee
7,572 Views
Registered: ‎07-01-2010

Re: petalinux-build error

Jump to solution

@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,077 Views
Registered: ‎08-27-2015

Re: petalinux-build error

Jump to solution

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
7,065 Views
Registered: ‎08-27-2015

Re: petalinux-build error

Jump to solution

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