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!

Reply

petaliunx build problem

Highlighted
Visitor
Posts: 3
Registered: ‎07-16-2017

petaliunx build problem

The problems:

root@zynq-virtual-machine:/opt/pkg/petalinux/petalinux-v2016.2-final/zynq_test# petalinux-build
INFO: Checking component...
INFO: Generating make files and build linux
INFO: Generating make files for the subcomponents of linux
INFO: Building linux
[INFO ] pre-build linux/rootfs/fwupgrade
[INFO ] pre-build linux/rootfs/peekpoke
[INFO ] build linux/kernel
[INFO ] generate linux/u-boot configuration files
[INFO ] update linux/u-boot source
[INFO ] build linux/u-boot
[INFO ] build zynq_fsbl
[ERROR] make[3]: *** [xddrps_libs] Error 127
[ERROR] make[2]: *** [ps7_cortexa9_0/libsrc/ddrps_v1_0/src/make.libs] Error 2
[ERROR] make[1]: *** [build] Error 255
ERROR: Failed to build linux

 

The build log:

[ALL ] Compiling ddrps
[ALL ] make[3]: arm-none-eabi-ar: Command not found
[ALL ] Makefile:31: recipe for target 'xddrps_libs' failed
[ERROR] make[3]: *** [xddrps_libs] Error 127
[ALL ] make[3]: Leaving directory '/opt/pkg/petalinux/petalinux-v2016.2-final/zynq_test/build/linux/bootloader/zynq_fsbl/zynq_fsbl_bsp/ps7_cortexa9_0/libsrc/ddrps_v1_0/src'
[ALL ] Makefile:27: recipe for target 'ps7_cortexa9_0/libsrc/ddrps_v1_0/src/make.libs' failed
[ERROR] make[2]: *** [ps7_cortexa9_0/libsrc/ddrps_v1_0/src/make.libs] Error 2
[ALL ] make[2]: Leaving directory '/opt/pkg/petalinux/petalinux-v2016.2-final/zynq_test/build/linux/bootloader/zynq_fsbl/zynq_fsbl_bsp'
[ALL ] Makefile:106: recipe for target 'build' failed
[ERROR] make[1]: *** [build] Error 255

 

petalinux info:

version: 2016.2

 

Settings.sh:

root@zynq-virtual-machine:/opt/pkg/petalinux/petalinux-v2016.2-final# source settings.sh
PetaLinux environment set to '/opt/pkg/petalinux/petalinux-v2016.2-final'
INFO: Checking free disk space
INFO: Checking installed tools
INFO: Checking installed development libraries
INFO: Checking network and other services
WARNING: No tftp server found - please refer to "PetaLinux SDK Installation Guide" for its impact and solution

No important missing component.

 

linux host info:

Ubuntu 16.04

 

The log indicated that "arm-none-eabi-ar: Command not found" in the period of fsbl compiling.

How to solve this problem?

Visitor
Posts: 3
Registered: ‎07-17-2017

Re: petaliunx build problem

Hi Jlynnc

you should install 32-bit libraries.

$sudo apt-get install lib32z1, lib32ncurses5, lib-32bz2-1.0, lib32stdc++6

and again

$petalinux-build

Moderator
Posts: 7
Registered: ‎06-27-2017

Re: petaliunx build problem

you can try below link to copy 32-bit library of  libselinux.so.1

https://forums.xilinx.com/t5/Embedded-Linux/2014-2-Image-Build-Processes-Error/td-p/476862/page/3