AnsweredAssumed Answered

imx8mmevb yocto project build error,somebody help me?

Question asked by zile cao on May 18, 2020
Latest reply on May 18, 2020 by karan gajjar
version :imx-4.9.123-2.3.0-8mm_ga.xml
linux host : ubuntu 14.04
DISTRO=fsl-imx-wayland MACHINE=imx8mmevk source fsl-setup-release.sh -b build-imx8mmevk-wayland
bitbake -k core-image-base
error log:
WARNING: Host distribution "ubuntu-14.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |##########################################################################################################################################################################################################################################| Time: 0:00:00
Loaded 3299 entries from dependency cache.
Parsing recipes: 100% |########################################################################################################################################################################################################################################| Time: 0:00:02
Parsing of 2450 .bb files complete (2448 cached, 2 parsed). 3301 targets, 402 skipped, 9 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

 

Build Configuration:
BB_VERSION           = "1.36.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-14.04"
TARGET_SYS           = "aarch64-poky-linux"
MACHINE              = "imx8mmevk"
DISTRO               = "fsl-imx-wayland"
DISTRO_VERSION       = "4.9-rocko"
TUNE_FEATURES        = "aarch64"
TARGET_FPU           = ""
meta                 
meta-poky            = "HEAD:9ed1178c87afce997d5a21cadae7461fb6bb48da"
meta-oe              
meta-multimedia      = "HEAD:352531015014d1957d6444d114f4451e241c4d23"
meta-freescale       = "HEAD:a4158e3425a79720ddc4c02e76251d567bdceb51"
meta-freescale-3rdparty = "HEAD:a02324e27f7a7ac630dab616f46a8bad7fe2c071"
meta-freescale-distro = "HEAD:51756d1c2058139c8a21f89b86cfd8007b71b7f0"
meta-bsp             
meta-sdk             = "HEAD:2f76097309ceb20025af6f0dd853e0f4b641d40a"
meta-browser         = "HEAD:2ae23f16309d228ec6f1a25e404b3941115083ee"
meta-gnome           
meta-networking      
meta-python          
meta-filesystems     = "HEAD:352531015014d1957d6444d114f4451e241c4d23"
meta-qt5             = "HEAD:682ad61c071a9710e9f9d8a32ab1b5f3c14953d1"

 

Initialising tasks: 100% |#####################################################################################################################################################################################################################################| Time: 0:00:05
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: icu-native-59.1-r0 do_fetch: Checksum mismatch for local file /home/caozile/workspace/imx8mmini-4.9.123/downloads/icu4c-59_1-src.tgz
Cleaning and trying again.
WARNING: icu-native-59.1-r0 do_fetch: Renaming /home/caozile/workspace/imx8mmini-4.9.123/downloads/icu4c-59_1-src.tgz to /home/caozile/workspace/imx8mmini-4.9.123/downloads/icu4c-59_1-src.tgz_bad-checksum_f5515a741e8d6071400bf11e1260c2ac
WARNING: icu-native-59.1-r0 do_fetch: Checksum failure encountered with download of http://download.icu-project.org/files/icu4c/59.1/icu4c-59_1-src.tgz - will attempt other sources if available
ERROR: icu-native-59.1-r0 do_compile: oe_runmake failed
ERROR: icu-native-59.1-r0 do_compile: Function failed: do_compile (log file is located at /home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/icu-native/59.1-r0/temp/log.do_compile.7316)
ERROR: Logfile of failure stored in: /home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/icu-native/59.1-r0/temp/log.do_compile.7316
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 40
| rebuilding config/icucross.mk
| cd ./config; \
|         make -f pkgdataMakefile
| rebuilding config/icucross.inc
| rm -rf config/icu-config
| /home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/hosttools/install -c ../icu/source/config/icu-config-top config/icu-config
| /bin/sh ../icu/source/mkinstalldirs lib
| /bin/sh ../icu/source/mkinstalldirs bin
| make[1]: Entering directory `/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/icu-native/59.1-r0/build/config'
| rm -rf pkgdata.inc
| chmod u+w config/icu-config
| LC_ALL=C sed -f ../icu/source/config/make2sh.sed < ./config/Makefile.inc | grep -v '#M#' | uniq >> config/icu-config
| mkdir lib
| mkdir bin
| config/icu-uc.pc updated.
| config/icu-i18n.pc updated.
| config/icu-io.pc updated.
| make[0]: Making `all' in `stubdata'
| LC_ALL=C sed -f ../icu/source/config/make2sh.sed < ../icu/source/config/mh-linux | grep -v '#M#' | uniq >> config/icu-config
| make[1]: Entering directory `/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/icu-native/59.1-r0/build/stubdata'
|    (deps)     ../../icu/source/stubdata/stubdata.cpp
| cat ../icu/source/config/icu-config-bottom >> config/icu-config
| chmod u-w config/icu-config
| make[1]: Leaving directory `/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/icu-native/59.1-r0/build/stubdata'
| make[1]: Leaving directory `/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/icu-native/59.1-r0/build/config'
| make[1]: Entering directory `/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/icu-native/59.1-r0/build/stubdata'
| Note: rebuild with "make VERBOSE=1 " to show all compiler parameters.
|    g++     ...  ../../icu/source/stubdata/stubdata.cpp
| In file included from ../../icu/source/common/unicode/utypes.h:38,
|                  from ../../icu/source/stubdata/stubdata.cpp:22:
| ../../icu/source/common/unicode/umachine.h:347: error: ‘char16_t’ does not name a type
| In file included from ../../icu/source/common/unicode/utypes.h:39,
|                  from ../../icu/source/stubdata/stubdata.cpp:22:
| ../../icu/source/common/unicode/uversion.h:167: error: ISO C++ forbids declaration of ‘UChar’ with no type
| ../../icu/source/common/unicode/uversion.h:167: error: expected ‘,’ or ‘...’ before ‘*’ token
| ../../icu/source/stubdata/stubdata.cpp:58: error: ‘UChar’ was not declared in this scope
| ../../icu/source/stubdata/stubdata.cpp:74: error: too many initializers for ‘UDataInfo’
| *** Failed compilation command follows: ----------------------------------------------------------
| g++ -isystem/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/icu-native/59.1-r0/recipe-sysroot-native/usr/include -D_REENTRANT -DU_HAVE_ELF_H=1 -DU_HAVE_ATOMIC=0 -DU_HAVE_STRTOD_L=1 -I../../icu/source/common -DU_ATTRIBUTE_DEPRECATED= -isystem/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/icu-native/59.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long -c -DPIC -fPIC -o stubdata.o ../../icu/source/stubdata/stubdata.cpp
| --- ( rebuild with "make VERBOSE=1 all" to show all parameters ) --------
| make[1]: *** [stubdata.o] Error 1
| make[1]: Leaving directory `/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/icu-native/59.1-r0/build/stubdata'
| make: *** [all-recursive] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/icu-native/59.1-r0/temp/run.do_compile.7316:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/icu-native/59.1-r0/temp/log.do_compile.7316)
ERROR: Task (virtual:native:/home/caozile/workspace/imx8mmini-4.9.123/sources/poky/meta/recipes-support/icu/icu_59.1.bb:do_compile) failed with exit code '1'
ERROR: binutils-cross-aarch64-2.29.1-r0 do_compile: oe_runmake failed
ERROR: binutils-cross-aarch64-2.29.1-r0 do_compile: Function failed: do_compile (log file is located at /home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/binutils-cross-aarch64/2.29.1-r0/temp/log.do_compile.55321)
ERROR: Logfile of failure stored in: /home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/binutils-cross-aarch64/2.29.1-r0/temp/log.do_compile.55321
 cc1plus: error: unrecognized command line option "-Wstack-usage=262144"
| make[4]: *** [archive.o] Error 1
| make[4]: *** Waiting for unfinished jobs....
| gcc  -DHAVE_CONFIG_H -I. -I../../gprof  -DDEBUG -I../bfd -I../../gprof/../include -I../../gprof/../bfd  -I. -DLOCALEDIR="\"/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/binutils-cross-aarch64/2.29.1-r0/recipe-sysroot-native/usr/share/locale\"" -isystem/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/binutils-cross-aarch64/2.29.1-r0/recipe-sysroot-native/usr/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -isystem/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/binutils-cross-aarch64/2.29.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -c ../../gprof/alpha.c
| cc1plus: error: unrecognized command line option "-Wstack-usage=262144"
| make[4]: *** [attributes.o] Error 1
| gcc  -DHAVE_CONFIG_H -I. -I../../gprof  -DDEBUG -I../bfd -I../../gprof/../include -I../../gprof/../bfd  -I. -DLOCALEDIR="\"/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/binutils-cross-aarch64/2.29.1-r0/recipe-sysroot-native/usr/share/locale\"" -isystem/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/binutils-cross-aarch64/2.29.1-r0/recipe-sysroot-native/usr/include -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -isystem/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/binutils-cross-aarch64/2.29.1-r0/recipe-sysroot-native/usr/include -O2 -pipe -c ../../gprof/vax.c
| make[4]: *** [binary.o] Error 1
| make[4]: Leaving directory `/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/binutils-cross-aarch64/2.29.1-r0/git/build.x86_64-linux.aarch64-poky-linux/gold'
| make[3]: *** [all-recursive] Error 1
| make[3]: Leaving directory `/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/binutils-cross-aarch64/2.29.1-r0/git/build.x86_64-linux.aarch64-poky-linux/gold'
| make[2]: *** [all] Error 2
| make[2]: Leaving directory `/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/binutils-cross-aarch64/2.29.1-r0/git/build.x86_64-linux.aarch64-poky-linux/gold'
| make[1]: *** [all-gold] Error 2
| make[1]: *** Waiting for unfinished jobs....
| make[4]: Leaving directory `/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/binutils-cross-aarch64/2.29.1-r0/git/build.x86_64-linux.aarch64-poky-linux/binutils'
| make[3]: Leaving directory `/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/binutils-cross-aarch64/2.29.1-r0/git/build.x86_64-linux.aarch64-poky-linux/binutils'
| make[2]: Leaving directory `/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/binutils-cross-aarch64/2.29.1-r0/git/build.x86_64-linux.aarch64-poky-linux/binutils'
| make[1]: Leaving directory `/home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/binutils-cross-aarch64/2.29.1-r0/git/build.x86_64-linux.aarch64-poky-linux'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: /home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/binutils-cross-aarch64/2.29.1-r0/temp/run.do_compile.55321:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /home/caozile/workspace/imx8mmini-4.9.123/build-imx8mmevk-wayland/tmp/work/x86_64-linux/binutils-cross-aarch64/2.29.1-r0/temp/log.do_compile.55321)
ERROR: Task (/home/caozile/workspace/imx8mmini-4.9.123/sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.29.1.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2005 tasks of which 1991 didn't need to be rerun and 2 failed.

Summary: 2 tasks failed:
  virtual:native:/home/caozile/workspace/imx8mmini-4.9.123/sources/poky/meta/recipes-support/icu/icu_59.1.bb:do_compile
  /home/caozile/workspace/imx8mmini-4.9.123/sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.29.1.bb:do_compile
Summary: There were 4 WARNING messages shown.
Summary: There were 4 ERROR messages shown, returning a non-zero exit code.
i see " The recommended minimum Ubuntu version is 14.04 or later. Earlier versions may cause the Yocto Project build setup to fail, because it requires python versions only available starting with Ubuntu 12.04. See The Yocto Project reference manual
for more information. " in i.MX_Yocto_Project_User's_Guide.pdf. i use ubuntu 14.04 should be ok?
i try to bitbake -c cleanall <err-package> then rebuild,but it dosen't work

Outcomes