cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
853 Views
Registered: ‎12-16-2019

petalinux build error.

I am trying to use petalinux tools 19.02 with my ubuntu 16.04. I created a petalinux project then try to build it.

But I got error. I checked every pre-requests for petalinux tool. Everything seems true. I couldnt understand problem. Can you help me fastly? Thank you for interest.

My error message when I enter to petalinux-build command in project directory.

furkan@furkan-X555LJ:/media/furkan/Data/PetalinuxProjects/xilinx-zcu104-2019.2$ petalinux-build
[INFO] building project
[INFO] sourcing bitbake
[INFO] generating user layers
[INFO] generating workspace directory
INFO: bitbake petalinux-user-image
Loading cache: 100% |#############################################################################################################| Time: 0:00:01
Loaded 3979 entries from dependency cache.
Parsing recipes: 100% |###########################################################################################################| Time: 0:00:05
Parsing of 2893 .bb files complete (2891 cached, 2 parsed). 3980 targets, 154 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |########################################################################################################| Time: 0:00:37
Checking sstate mirror object availability: 100% |################################################################################| Time: 0:00:50
Sstate summary: Wanted 342 Found 21 Missed 642 Current 1840 (6% match, 85% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: pmu-firmware-2019.2+gitAUTOINC+e8db5fb118-r0 do_populate_sysroot: Fatal errors occurred in subprocesses:
Command '['aarch64-xilinx-linux-strip', '--remove-section=.comment', '--remove-section=.note', '/media/furkan/Data/PetalinuxProjects/xilinx-zcu104-2019.2/build/tmp/work/zcu104_zynqmp-xilinx-linux/pmu-firmware/2019.2+gitAUTOINC+e8db5fb118-r0/sysroot-destdir/boot/pmu-firmware.elf']' returned non-zero exit status 1: Traceback (most recent call last):
File "/opt/pkg/petalinux/2019.2/components/yocto/source/aarch64/layers/core/meta/lib/oe/utils.py", line 272, in run
ret = self._target(*self._args, **self._kwargs)
File "/opt/pkg/petalinux/2019.2/components/yocto/source/aarch64/layers/core/meta/lib/oe/package.py", line 44, in runstrip
output = subprocess.check_output(stripcmd, stderr=subprocess.STDOUT)
File "/opt/pkg/petalinux/2019.2/components/yocto/source/aarch64/buildtools/sysroots/x86_64-petalinux-linux/usr/lib/python3.5/subprocess.py", line 316, in check_output
**kwargs).stdout
File "/opt/pkg/petalinux/2019.2/components/yocto/source/aarch64/buildtools/sysroots/x86_64-petalinux-linux/usr/lib/python3.5/subprocess.py", line 398, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['aarch64-xilinx-linux-strip', '--remove-section=.comment', '--remove-section=.note', '/media/furkan/Data/PetalinuxProjects/xilinx-zcu104-2019.2/build/tmp/work/zcu104_zynqmp-xilinx-linux/pmu-firmware/2019.2+gitAUTOINC+e8db5fb118-r0/sysroot-destdir/boot/pmu-firmware.elf']' returned non-zero exit status 1


ERROR: pmu-firmware-2019.2+gitAUTOINC+e8db5fb118-r0 do_populate_sysroot: Function failed: sysroot_strip
ERROR: Logfile of failure stored in: /media/furkan/Data/PetalinuxProjects/xilinx-zcu104-2019.2/build/tmp/work/zcu104_zynqmp-xilinx-linux/pmu-firmware/2019.2+gitAUTOINC+e8db5fb118-r0/temp/log.do_populate_sysroot.4282
ERROR: Task (/opt/pkg/petalinux/2019.2/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/pmu-firmware/pmu-firmware_git.bb:do_populate_sysroot) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6711 tasks of which 6698 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/opt/pkg/petalinux/2019.2/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/pmu-firmware/pmu-firmware_git.bb:do_populate_sysroot
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project

12 Replies
Highlighted
Xilinx Employee
Xilinx Employee
800 Views
Registered: ‎09-14-2018

@yfycsy 

Hi 

Could you please attache " /media/furkan/Data/PetalinuxProjects/xilinx-zcu104-2019.2/build/tmp/work/zcu104_zynqmp-xilinx-linux/pmu-firmware/2019.2+gitAUTOINC+e8db5fb118-r0/temp/log.do_populate_sysroot.4282" for more details?

 

 

0 Kudos
Highlighted
Observer
Observer
779 Views
Registered: ‎12-16-2019

Here file which you said

But I couldnat attach becaufe of extension format of file, so I changed the file name.

0 Kudos
Highlighted
Moderator
Moderator
753 Views
Registered: ‎09-12-2007

can you run petalinux-build -c pmu-firmware

0 Kudos
Highlighted
Observer
Observer
742 Views
Registered: ‎12-16-2019

output of petalinux-build -c pmu-firmware

petalinux-build -c pmu-firmware
[INFO] building pmu-firmware
[INFO] sourcing bitbake
[INFO] generating user layers
[INFO] generating workspace directory
INFO: bitbake pmu-firmware
Loading cache: 100% |############################################| Time: 0:00:01
Loaded 3979 entries from dependency cache.
Parsing recipes: 100% |##########################################| Time: 0:00:06
Parsing of 2893 .bb files complete (2891 cached, 2 parsed). 3980 targets, 154 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#######################################| Time: 0:00:03
Checking sstate mirror object availability: 100% |###############| Time: 0:00:02
Sstate summary: Wanted 10 Found 1 Missed 18 Current 138 (10% match, 93% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: pmu-firmware-2019.2+gitAUTOINC+e8db5fb118-r0 do_populate_sysroot: Fatal errors occurred in subprocesses:
Command '['aarch64-xilinx-linux-strip', '--remove-section=.comment', '--remove-section=.note', '/media/furkan/Data/PetalinuxProjects/xilinx-zcu104-2019.2/build/tmp/work/zcu104_zynqmp-xilinx-linux/pmu-firmware/2019.2+gitAUTOINC+e8db5fb118-r0/sysroot-destdir/boot/pmu-firmware.elf']' returned non-zero exit status 1: Traceback (most recent call last):
File "/opt/pkg/petalinux/2019.2/components/yocto/source/aarch64/layers/core/meta/lib/oe/utils.py", line 272, in run
ret = self._target(*self._args, **self._kwargs)
File "/opt/pkg/petalinux/2019.2/components/yocto/source/aarch64/layers/core/meta/lib/oe/package.py", line 44, in runstrip
output = subprocess.check_output(stripcmd, stderr=subprocess.STDOUT)
File "/opt/pkg/petalinux/2019.2/components/yocto/source/aarch64/buildtools/sysroots/x86_64-petalinux-linux/usr/lib/python3.5/subprocess.py", line 316, in check_output
**kwargs).stdout
File "/opt/pkg/petalinux/2019.2/components/yocto/source/aarch64/buildtools/sysroots/x86_64-petalinux-linux/usr/lib/python3.5/subprocess.py", line 398, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['aarch64-xilinx-linux-strip', '--remove-section=.comment', '--remove-section=.note', '/media/furkan/Data/PetalinuxProjects/xilinx-zcu104-2019.2/build/tmp/work/zcu104_zynqmp-xilinx-linux/pmu-firmware/2019.2+gitAUTOINC+e8db5fb118-r0/sysroot-destdir/boot/pmu-firmware.elf']' returned non-zero exit status 1


ERROR: pmu-firmware-2019.2+gitAUTOINC+e8db5fb118-r0 do_populate_sysroot: Function failed: sysroot_strip
ERROR: Logfile of failure stored in: /media/furkan/Data/PetalinuxProjects/xilinx-zcu104-2019.2/build/tmp/work/zcu104_zynqmp-xilinx-linux/pmu-firmware/2019.2+gitAUTOINC+e8db5fb118-r0/temp/log.do_populate_sysroot.4467
ERROR: Task (/opt/pkg/petalinux/2019.2/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/pmu-firmware/pmu-firmware_git.bb:do_populate_sysroot) failed with exit code '1'
NOTE: Tasks Summary: Attempted 622 tasks of which 621 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/opt/pkg/petalinux/2019.2/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/pmu-firmware/pmu-firmware_git.bb:do_populate_sysroot
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build pmu-firmware

Highlighted
Participant
Participant
650 Views
Registered: ‎11-29-2019

Same problem here,

also on ubuntu 16.04

petalinux 2019.2

Great interest in finding a solution.

To reproduce error quicker than running full petalinux-build and try fixes in less time

petalinux-build -c pmu-firmware -x cleansstate
petalinux-build -c pmu-firmware

But the above is just to get/reproduce the error quicker.

Error Message I get, is same:====================

ERROR: pmu-firmware-2019.2+gitAUTOINC+e8db5fb118-r0 do_populate_sysroot: Fatal errors occurred in subprocesses:
Command '['aarch64-xilinx-linux-strip', '--remove-section=.comment', '--remove-section=.note', '../projects/ultra96/peta/ultra96a/build/tmp/work/plnx_zynqmp-xilinx-linux/pmu-firmware/2019.2+gitAUTOINC+e8db5fb118-r0/sysroot-destdir/boot/pmu-firmware.elf']' returned non-zero exit status 1: Traceback (most recent call last):
File "../tools/xilinx/petlinux/components/yocto/source/aarch64/layers/core/meta/lib/oe/utils.py", line 272, in run
ret = self._target(*self._args, **self._kwargs)
File "../tools/xilinx/petlinux/components/yocto/source/aarch64/layers/core/meta/lib/oe/package.py", line 44, in runstrip
output = subprocess.check_output(stripcmd, stderr=subprocess.STDOUT)
File "../tools/xilinx/petlinux/components/yocto/source/aarch64/buildtools/sysroots/x86_64-petalinux-linux/usr/lib/python3.5/subprocess.py", line 316, in check_output
**kwargs).stdout
File "../tools/xilinx/petlinux/components/yocto/source/aarch64/buildtools/sysroots/x86_64-petalinux-linux/usr/lib/python3.5/subprocess.py", line 398, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['aarch64-xilinx-linux-strip', '--remove-section=.comment', '--remove-section=.note', '../projects/ultra96/peta/ultra96a/build/tmp/work/plnx_zynqmp-xilinx-linux/pmu-firmware/2019.2+gitAUTOINC+e8db5fb118-r0/sysroot-destdir/boot/pmu-firmware.elf']' returned non-zero exit status 1


ERROR: pmu-firmware-2019.2+gitAUTOINC+e8db5fb118-r0 do_populate_sysroot: Function failed: sysroot_strip
ERROR: Logfile of failure stored in: ../projects/ultra96/peta/ultra96a/build/tmp/work/plnx_zynqmp-xilinx-linux/pmu-firmware/2019.2+gitAUTOINC+e8db5fb118-r0/temp/log.do_populate_sysroot.21666
ERROR: Task (../tools/xilinx/petlinux/components/yocto/source/aarch64/layers/meta-xilinx-tools/recipes-bsp/pmu-firmware/pmu-firmware_git.bb:do_populate_sysroot) failed with exit code '1'

==========================================

 

 

0 Kudos
Highlighted
Observer
Observer
515 Views
Registered: ‎04-13-2016

I have the same problem.

Any solution?

0 Kudos
Highlighted
502 Views
Registered: ‎07-23-2019

 

My take is that because Petalinux errors are basically random text, what would help is to share the configuration. 

0 Kudos
Highlighted
Moderator
Moderator
501 Views
Registered: ‎09-12-2007

is it just the pmufw? can you build the fsbl?

petalinux-build -c bootloader

 

The PMUFW and the FSBL are created in XSCT. I want to see if there is an issue here. 

You could also just cd to the tmp directory (${TMPDIR}/ work/aarch64-xilinx-linux/pmufw) and call the make directly. 

 

 

0 Kudos
Highlighted
499 Views
Registered: ‎07-23-2019

I sometimes had trouble with Petalinux and doing a clean or mrproper fixed it:

petalinux-build -x clean

petalinux-build -x mrproper

 

0 Kudos
Highlighted
Observer
Observer
456 Views
Registered: ‎04-13-2016

Thanks.  This is a good suggestion. My findings are :

The petalinux project was originally created on a different hard drive like /media/xxx/C48000xxxx/plnx_proj

After the petalinux project is created on the same hard drive as the system drive such as /home/ xxx/plnx_proj, the project builds successfully.

Highlighted
435 Views
Registered: ‎07-23-2019

 

Ah, so I guess is the "tool pickiness". I think your finding is the solution.

0 Kudos
Highlighted
Visitor
Visitor
346 Views
Registered: ‎05-04-2018

I found that petalinux likes to source the user's .bashrc, making it highly sensitive to how ever you've customized your login account.  I fixed one of these yocto/source/aarch64/layers/core/meta/lib/oe/utils.py errors by short circuiting PL's attempt to use my .bashrc.  Try adding this to the top of your .bashrc:

 

env | grep PSEUDO_PASSWD 2>&1 > /dev/null && exit

 

 Here are a few other env vars PL seems to use in case PSEUDO_PASSWD doesn't work: PKG_CONFIG_SYSROOT_DIR, PSEUDO_DISABLED, READELF, or maybe just abort if PWD is equal to "/home/your_login/pl_proj_name/build".

0 Kudos