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: 
Visitor srenich
Visitor
6,096 Views
Registered: ‎11-19-2015

Petalinux 2015.2.1 fresh install, build problem

 


I have a fresh install of Petalinux that does not build properly with an added package (unzip).
For the first attempt to build, I imported the hardware description, and configured (added several packages).  The build failed with warnings and errors:

 

[WARN ] WARNING: The following packages cannot be authenticated!
...
[WARN ] dpkg: warning: 'ldconfig' not found in PATH or not executable
[WARN ] dpkg: warning: 'start-stop-daemon' not found in PATH or not executable
[WARN ] dpkg: warning: overriding problem because --force enabled:
...
[ERROR] Errors were encountered while processing:
[ALL  ]  unzip
[ERROR] E: Sub-process /opt/pkg/petalinux-v2015.2.1-final/tools/packagemanager/bin/dpkg returned an error code (1)
[ERROR] make[2]: *** [.pkg_stagefs] Error 255
[ALL  ] make[2]: Leaving directory `/home/srenich/rfcc_pnlx/build/linux/rootfs/packages-repo'
[ERROR] make[1]: *** [sub_build_component_/none/packages-repo/single/plnx-repo] Error 2
[ALL  ] make[1]: Leaving directory `/home/srenich/rfcc_pnlx/build/linux/rootfs'
[ALL  ] make: *** [sub_build_component_/none/rootfs/single/petalinux-rootfs] Error 2
[ALL  ] make: Leaving directory `/home/srenich/rfcc_pnlx/build/linux'




When I run "petalinux-configure -c rootfs" and unselect "Filesystems packages/console_utils/unzip", the errors go away, but not the warnings.



Setup:
Vivado 2015.2.1 on Windows 10
Petalinux 2015.2.1 on CentOS 7 on a VM on same machine.
Installed versions of gcc, gawk and make are slightly newer than those listed in UG1144.

I have scoured the forums and found solutions to many similar problems.  I have installed several of the packages suggested there, but have not modified any makefiles.  No improvement.


In addition, the installed plnxcrc32 still does not work:

 

$ cd /opt/pkg/petalinux-v2015.2.1-final/tools/linux-i386/petalinux/bin/unexport/
$ ./plnxcrc32
Segmentation fault (core dumped)




I am attaching the verbose build logs for both with and without the unzip package.  In addition, I am attaching a list of installed packages (from "yum list install > installed_pkgs.txt").

 

Any help with this would be appreciated.

 

Steven

 

 

 




Similar posts:

https://forums.xilinx.com/t5/Embedded-Linux/2015-2-build-image-failure/m-p/646291#M13747
https://forums.xilinx.com/t5/Embedded-Linux/zedboard-BSP-build-fails-out-of-the-box/m-p/643127/highlight/true#M13527
https://forums.xilinx.com/t5/Embedded-Linux/petalinux-build-dpkg-error/m-p/679159/highlight/true#M15245

0 Kudos
3 Replies
Visitor srenich
Visitor
5,949 Views
Registered: ‎11-19-2015

Re: Petalinux 2015.2.1 fresh install, build problem

Could this be a missing library?  I ran strace on plnxcrc32:

strace -o output.txt ./plnxcrc32

The output is:

execve("./plnxcrc32", ["./plnxcrc32"], [/* 48 vars */]) = 0
brk(0)                                  = 0x2517000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7d285ab000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/home/xbrbbot/ssw_tools/RHEL64/x86_64/lib/tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/xbrbbot/ssw_tools/RHEL64/x86_64/lib/tls/x86_64", 0x7ffce7109b00) = -1 ENOENT (No such file or directory)
open("/home/xbrbbot/ssw_tools/RHEL64/x86_64/lib/tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/xbrbbot/ssw_tools/RHEL64/x86_64/lib/tls", 0x7ffce7109b00) = -1 ENOENT (No such file or directory)
open("/home/xbrbbot/ssw_tools/RHEL64/x86_64/lib/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/xbrbbot/ssw_tools/RHEL64/x86_64/lib/x86_64", 0x7ffce7109b00) = -1 ENOENT (No such file or directory)
open("/home/xbrbbot/ssw_tools/RHEL64/x86_64/lib/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/xbrbbot/ssw_tools/RHEL64/x86_64/lib", 0x7ffce7109b00) = -1 ENOENT (No such file or directory)
open("tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open("libc.so.6", O_RDONLY|O_CLOEXEC)   = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=103825, ...}) = 0
mmap(NULL, 103825, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f7d28591000
close(3)                                = 0
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 \34\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2107816, ...}) = 0
mmap(NULL, 3932736, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f7d27fca000
mprotect(0x7f7d28180000, 2097152, PROT_NONE) = 0
mmap(0x7f7d28380000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b6000) = 0x7f7d28380000
mmap(0x7f7d28386000, 16960, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f7d28386000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7d28590000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f7d2858e000
arch_prctl(ARCH_SET_FS, 0x7f7d2858e740) = 0
mprotect(0x7f7d28380000, 16384, PROT_READ) = 0
mprotect(0x7f7d285ac000, 4096, PROT_READ) = 0
munmap(0x7f7d28591000, 103825)          = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV (core dumped) +++

Any help would be appreciated.

 

Thanks,

 

Steven

0 Kudos
Observer naveeng
Observer
5,731 Views
Registered: ‎11-25-2015

Re: Petalinux 2015.2.1 fresh install, build problem

Hi Steven,

 

You build log file with unzip package shows as below:


[ALL  ] dpkg: unzip-dev: dependency problems, but configuring anyway as you requested:
[ALL  ]  unzip-dev depends on unzip (= 1:6.0-r5); however:
[ALL  ]   Package unzip is not configured yet.

 

Can you please re-look to avoid any dependency problem?

 

The below two articles might give some clues on the similar problem:

http://www.xilinx.com/support/answers/63034.html

http://japan.zylinks.com/support/answers/66152.html

 

Thanks,

Naveen

0 Kudos
Visitor srenich
Visitor
5,638 Views
Registered: ‎11-19-2015

Re: Petalinux 2015.2.1 fresh install, build problem

Thanks to Naveen for help resolving this. I am posting the resolution here in case it helps someone. 1) Selecting the unzip package in the menuconfig (petalinux-config -c rootfs) causes the build to fail. This is a bug in dpkg in petalinux 2015.2. It is fixed in 2015.4. This is similar to the issue described in AR# 66152. 2) The program plnxcrc32 segfaults when called without an argument. While unexpected, this is normal behavior.