cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
392 Views
Registered: ‎06-21-2019

error when i petalinux-build

Jump to solution

xhcq@xhcq-virtual-machine:~/apu/petalinux_bsp$ petalinux-build
[INFO] building project
[INFO] sourcing bitbake
INFO: bitbake petalinux-user-image
Loading cache: 100% |##################################################################################################################################################| Time: 0:00:01
Loaded 3258 entries from dependency cache.
Parsing recipes: 100% |################################################################################################################################################| Time: 0:00:03
Parsing of 2468 .bb files complete (2434 cached, 34 parsed). 3261 targets, 225 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#############################################################################################################################################| Time: 0:00:27
Checking sstate mirror object availability: 100% |#####################################################################################################################|
Time: 0:00:05
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks

ERROR: icu-57.1-r0 do_compile: oe_runmake failed
ERROR: icu-57.1-r0 do_compile: Function failed: do_compile (log file is located at /home/xhcq/apu/petalinux_bsp/build/tmp/work/aarch64-xilinx-linux/icu/57.1-r0/temp/log.do_compile.15228)
ERROR: Logfile of failure stored in: /home/xhcq/apu/petalinux_bsp/build/tmp/work/aarch64-xilinx-linux/icu/57.1-r0/temp/log.do_compile.15228
Log data follows:
| DEBUG: SITE files ['endian-little', 'bit-64', 'arm-common', 'arm-64', 'common-linux', 'common-glibc', 'aarch64-linux', 'common']
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4
| ERROR: oe_runmake failed
| Note: rebuild with "make VERBOSE=1 " to show all compiler parameters.
| make[0]: Making `all' in `stubdata'
| make[1]: Entering directory '/home/xhcq/apu/petalinux_bsp/build/tmp/work/aarch64-xilinx-linux/icu/57.1-r0/build/stubdata'
| make[1]: Nothing to be done for 'all'.
| make[1]: Leaving directory '/home/xhcq/apu/petalinux_bsp/build/tmp/work/aarch64-xilinx-linux/icu/57.1-r0/build/stubdata'
| make[0]: Making `all' in `common'
| make[1]: Entering directory '/home/xhcq/apu/petalinux_bsp/build/tmp/work/aarch64-xilinx-linux/icu/57.1-r0/build/common'
| aarch64-xilinx-linux-g++ --sysroot=/home/xhcq/apu/petalinux_bsp/build/tmp/sysroots/plnx_aarch64 -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/xhcq/apu/petalinux_bsp/build/tmp/work/aarch64-xilinx-linux/icu/57.1-r0=/usr/src/debug/icu/57.1-r0 -fdebug-prefix-map=/home/xhcq/apu/petalinux_bsp/build/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/home/xhcq/apu/petalinux_bsp/build/tmp/sysroots/plnx_aarch64= -fvisibility-inlines-hidden -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long --std=c++0x -Wl,-O1 -Wl,--hash-style=gnu -shared -Wl,-Bsymbolic -Wl,-soname -Wl,libicuuc.so.57 -o ../lib/libicuuc.so.57.1 errorcode.o putil.o umath.o utypes.o uinvchar.o umutex.o ucln_cmn.o uinit.o uobject.o cmemory.o charstr.o cstr.o udata.o ucmndata.o udatamem.o umapfile.o udataswp.o ucol_swp.o utrace.o uhash.o uhash_us.o uenum.o ustrenum.o uvector.o ustack.o uvectr32.o uvectr64.o ucnv.o ucnv_bld.o ucnv_cnv.o ucnv_io.o ucnv_cb.o ucnv_err.o ucnvlat1.o ucnv_u7.o ucnv_u8.o ucnv_u16.o ucnv_u32.o ucnvscsu.o ucnvbocu.o ucnv_ext.o ucnvmbcs.o ucnv2022.o ucnvhz.o ucnv_lmb.o ucnvisci.o ucnvdisp.o ucnv_set.o ucnv_ct.o resource.o uresbund.o ures_cnv.o uresdata.o resbund.o resbund_cnv.o ucurr.o messagepattern.o ucat.o locmap.o uloc.o locid.o locutil.o locavailable.o locdispnames.o locdspnm.o loclikely.o locresdata.o bytestream.o stringpiece.o stringtriebuilder.o bytestriebuilder.o bytestrie.o bytestrieiterator.o ucharstrie.o ucharstriebuilder.o ucharstrieiterator.o dictionarydata.o appendable.o ustr_cnv.o unistr_cnv.o unistr.o unistr_case.o unistr_props.o utf_impl.o ustring.o ustrcase.o ucasemap.o ucasemap_titlecase_brkiter.o cstring.o ustrfmt.o ustrtrns.o ustr_wcs.o utext.o unistr_case_locale.o ustrcase_locale.o unistr_titlecase_brkiter.o ustr_titlecase_brkiter.o normalizer2impl.o normalizer2.o filterednormalizer2.o normlzr.o unorm.o unormcmp.o loadednormalizer2impl.o chariter.o schriter.o uchriter.o uiter.o patternprops.o uchar.o uprops.o ucase.o propname.o ubidi_props.o ubidi.o ubidiwrt.o ubidiln.o ushape.o uscript.o uscript_props.o usc_impl.o unames.o utrie.o utrie2.o utrie2_builder.o bmpset.o unisetspan.o uset_props.o uniset_props.o uniset_closure.o uset.o uniset.o usetiter.o ruleiter.o caniter.o unifilt.o unifunct.o uarrsort.o brkiter.o ubrk.o brkeng.o dictbe.o filteredbrk.o rbbi.o rbbidata.o rbbinode.o rbbirb.o rbbiscan.o rbbisetb.o rbbistbl.o rbbitblb.o serv.o servnotf.o servls.o servlk.o servlkf.o servrbf.o servslkf.o uidna.o usprep.o uts46.o punycode.o util.o util_props.o parsepos.o locbased.o cwchar.o wintz.o dtintrv.o ucnvsel.o propsvec.o ulist.o uloc_tag.o icudataver.o icuplug.o listformatter.o ulistformatter.o sharedobject.o simpleformatter.o unifiedcache.o uloc_keytype.o pluralmap.o -L../lib -L../stubdata -licudata -lpthread -ldl -lm
| locutil.o: file not recognized: File truncated
| collect2: error: ld returned 1 exit status
| make[1]: *** [Makefile:208: ../lib/libicuuc.so.57.1] Error 1
| make[1]: Leaving directory '/home/xhcq/apu/petalinux_bsp/build/tmp/work/aarch64-xilinx-linux/icu/57.1-r0/build/common'
| make: *** [Makefile:143: all-recursive] Error 2
| WARNING: /home/xhcq/apu/petalinux_bsp/build/tmp/work/aarch64-xilinx-linux/icu/57.1-r0/temp/run.do_compile.15228:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/xhcq/apu/petalinux_bsp/build/tmp/work/aarch64-xilinx-linux/icu/57.1-r0/temp/log.do_compile.15228)

ERROR: Task (/home/xhcq/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-support/icu/icu_57.1.bb:do_compile) failed with exit code '1'
ERROR: Worker process (15212) exited unexpectedly (-9), shutting down...

ERROR: Worker process (15212) exited unexpectedly (-9), shutting down...

WARNING: /home/xhcq/petalinux/components/yocto/source/aarch64/layers/core/bitbake/lib/bb/runqueue.py:1071: ResourceWarning: unclosed file <_io.BufferedWriter name=30>
self.worker = {}

NOTE: Tasks Summary: Attempted 1310 tasks of which 1308 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/xhcq/petalinux/components/yocto/source/aarch64/layers/core/meta/recipes-support/icu/icu_57.1.bb:do_compile
Summary: There was 1 WARNING message shown.
Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project
webtalk failed:PetaLinux statistics:extra lines detected:notsent_nofile!
webtalk failed:Failed to get PetaLinux usage statistics!

i hope i can get help.thanks very much

 

0 Kudos
1 Solution

Accepted Solutions
Highlighted
Mentor
Mentor
320 Views
Registered: ‎06-16-2013

Re: error when i petalinux-build

Jump to solution

Hi @xhcq 

 

I'm probably sure that it's real memory size and/or swap size issue.

Here is solution to resolve this issue.

 

1. Add real memory.

At least petalinux requests 8GB memory to build kernel and/or rootfs.

 

2. Change swap memory size ex. from 2GB to 4GB.

Even if you change swap memory size, since total memory size (real memory size and swap memory size) is NOT enough to build kernel and/or rootfs, petalinux will give up building process.

 

BTW, since it seems that you use VM, I suggest you to assign more memory (total (real memory + swap memory) over 8GB) from host side.

 

Best regards,

View solution in original post

0 Kudos
4 Replies
Highlighted
Mentor
Mentor
355 Views
Registered: ‎06-16-2013

Re: error when i petalinux-build

Jump to solution

Hi @xhcq 

 

Would you share your environment, especially the followings ?

 

- CPU name and core number

- Memory size

- Swap size

 

I guess it seems facing swap size issue.

 

Best regards,

0 Kudos
Highlighted
Visitor
Visitor
330 Views
Registered: ‎06-21-2019

Re: error when i petalinux-build

Jump to solution

my memory size is 2GB,and my swap size is 2GB.The relevant information is given .thanks for your help.

xhcq@xhcq-virtual-machine:~$ cat /proc/version
Linux version 4.13.0-36-generic (buildd@lgw01-amd64-033) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)) #40~16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018
xhcq@xhcq-virtual-machine:~$ uname -a
Linux xhcq-virtual-machine 4.13.0-36-generic #40~16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

 

设备  启动  Start  末尾  扇区  Size Id  类型
/dev/sda1 * 2048 415238143 415236096 198G 83 Linux
/dev/sda2 415238144 419430399 4192256 2G 5 扩展
/dev/sda5 415240192 419430399 4190208 2G 82 Linux 交换 / Solaris

0 Kudos
Highlighted
Mentor
Mentor
321 Views
Registered: ‎06-16-2013

Re: error when i petalinux-build

Jump to solution

Hi @xhcq 

 

I'm probably sure that it's real memory size and/or swap size issue.

Here is solution to resolve this issue.

 

1. Add real memory.

At least petalinux requests 8GB memory to build kernel and/or rootfs.

 

2. Change swap memory size ex. from 2GB to 4GB.

Even if you change swap memory size, since total memory size (real memory size and swap memory size) is NOT enough to build kernel and/or rootfs, petalinux will give up building process.

 

BTW, since it seems that you use VM, I suggest you to assign more memory (total (real memory + swap memory) over 8GB) from host side.

 

Best regards,

View solution in original post

0 Kudos
Highlighted
Visitor
Visitor
301 Views
Registered: ‎06-21-2019

Re: error when i petalinux-build

Jump to solution

ok.thanks for your advice.I will take measures by adopting your suggestions.

0 Kudos