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!

AR# 61880

2014.2 - PetaLinux - Sub-process /opt/petalinux/petalinux-v2014.2-final/tools/packagemanager/bin/dpkg returns an error code (1)

Description

When running a standard PetaLinux build process with the petalinux-build command, the process sometimes fails to build with error messages similar to the following:

 

[ERROR] Errors were encountered while processing:
[ERROR] E: Sub-process /opt/petalinux/petalinux-v2014.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

Solution

A patch for the PetaLinux 2014.2 apt repository Makefile is required in order to work around this issue.  

The patch is attached to this answer record.

Below is the plain ASCII text of the patch:

 

diff --git a/components/packages-repo/Makefile  b/components/packages-repo/Makefile
index 2d90a90..e127b1b 100644
--- a/components/packages-repo/Makefile
+++ b/components/packages-repo/Makefile
@@ -73,7 +73,7 @@ TARGETROOT_APTROOT=$(BUILDROOT)/targetroot
TARGETROOT_APTROOT_CONF=$(TARGETDIR)/.targetroot.apt
TARGETROOT_APTCONFIG=$(TARGETROOT_APTROOT_CONF)/etc/apt/apt.conf.d/apt.conf
 
 -FALSEPATH=$(APTPATH)/bin:$(PATH)
+FALSEPATH=$(APTPATH)/bin:/usr/bin:/bin
FALSELDPATH=$(APTPATH)/lib:$(APTPATH)/lib/libfakeroot
 
 FAKEROOT=$(APTPATH)/bin/fakeroot
--
1.9.0

Attachments

Associated Attachments

Name File Size File Type
plnx_2014_2_dpkg.patch.txt 573 Bytes TXT
AR# 61880
Date Created 08/28/2014
Last Updated 09/04/2014
Status Active
Type General Article
Tools
  • PetaLinux
  • PetaLinux - 2014.2