IMX8QMMEK YOCTO-bitbake

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IMX8QMMEK YOCTO-bitbake

Jump to solution
3,905 Views
quaijing
Contributor I

As the yocto guide , i have rebuilt the image with  bitbake imx-image-multimedia.Now I have met some problems.About my environments ,the virtual unbuntu system is 16.04.The error message is as follows:

Build Configuration:
BB_VERSION = "1.42.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-16.04"
TARGET_SYS = "aarch64-poky-linux"
MACHINE = "imx8qmmek"
DISTRO = "fsl-imx-xwayland"
DISTRO_VERSION = "4.19-warrior"
TUNE_FEATURES = "aarch64"
TARGET_FPU = ""
meta
meta-poky = "HEAD:6d2e12e79211b31cdf5ea824fb9a8be54ba9a9eb"
meta-oe
meta-multimedia = "HEAD:3bdbf72e3a4bf18a4a2c7afbde4f7ab773aeded9"
meta-freescale = "HEAD:2142f7ded1b3115ccc21f7575fd83e2376247193"
meta-freescale-3rdparty = "HEAD:da422478d38e744283bcf61123c4a526396c7030"
meta-freescale-distro = "HEAD:d4e77ea682fa10d0d54a723b3d3099c44fc5e95c"
meta-bsp
meta-sdk
meta-ml = "HEAD:bb05c60e6398b374ac49554c642a3bef36452f73"
meta-browser = "HEAD:5f365ef0f842ba4651efe88787cf9c63bc8b6cb3"
meta-rust = "HEAD:11aed43748d7dd194dc6c06a35a16104400d1090"
meta-gnome
meta-networking
meta-python
meta-filesystems = "HEAD:3bdbf72e3a4bf18a4a2c7afbde4f7ab773aeded9"
meta-qt5 = "HEAD:dc2dedef9961950b88f4245ba7499538ec4244ab"

Initialising tasks: 100% |####################################################################################################| Time: 0:00:08
Sstate summary: Wanted 1855 Found 0 Missed 1855 Current 1129 (0% match, 37% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: systemtap-4.0-r0 do_compile: oe_runmake failed
ERROR: systemtap-4.0-r0 do_compile: Function failed: do_compile (log file is located at /home/quaijing/imx-yocto-bsp/build-imx8qm/tmp/work/aarch64-poky-linux/systemtap/4.0-r0/temp/log.do_compile.38750)
ERROR: Logfile of failure stored in: /home/quaijing/imx-yocto-bsp/build-imx8qm/tmp/work/aarch64-poky-linux/systemtap/4.0-r0/temp/log.do_compile.38750
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 8
| /bin/bash ../git/git_version.sh -k -s ../git -o git_version.h
| git_version.sh: Output is unchanged, keeping git_version.h
| make all-recursive
| make[1]: Entering directory '/home/quaijing/imx-yocto-bsp/build-imx8qm/tmp/work/aarch64-poky-linux/systemtap/4.0-r0/build'
| Making all in .
| make[2]: Entering directory '/home/quaijing/imx-yocto-bsp/build-imx8qm/tmp/work/aarch64-poky-linux/systemtap/4.0-r0/build'
| aarch64-poky-linux-g++ --sysroot=/home/quaijing/imx-yocto-bsp/build-imx8qm/tmp/work/aarch64-poky-linux/systemtap/4.0-r0/recipe-sysroot -Wall -Wextra -Werror -fstack-protector-all -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -fmacro-prefix-map=/home/quaijing/imx-yocto-bsp/build-imx8qm/tmp/work/aarch64-poky-linux/systemtap/4.0-r0=/usr/src/debug/systemtap/4.0-r0 -fdebug-prefix-map=/home/quaijing/imx-yocto-bsp/build-imx8qm/tmp/work/aarch64-poky-linux/systemtap/4.0-r0=/usr/src/debug/systemtap/4.0-r0 -fdebug-prefix-map=/home/quaijing/imx-yocto-bsp/build-imx8qm/tmp/work/aarch64-poky-linux/systemtap/4.0-r0/recipe-sysroot= -fdebug-prefix-map=/home/quaijing/imx-yocto-bsp/build-imx8qm/tmp/work/aarch64-poky-linux/systemtap/4.0-r0/recipe-sysroot-native= -fvisibility-inlines-hidden -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o stap stap-main.o stap-session.o stap-parse.o stap-staptree.o stap-elaborate.o stap-translate.o stap-tapsets.o stap-buildrun.o stap-loc2stap.o stap-hash.o stap-mdfour.o stap-cache.o stap-util.o stap-coveragedb.o stap-dwarf_wrappers.o stap-tapset-been.o stap-tapset-procfs.o stap-tapset-timers.o stap-tapset-netfilter.o stap-tapset-perfmon.o stap-tapset-mark.o stap-tapset-itrace.o stap-tapset-utrace.o stap-task_finder.o stap-dwflpp.o stap-rpm_finder.o stap-setupdwfl.o stap-remote.o stap-privilege.o stap-cmdline.o stap-tapset-dynprobe.o stap-tapset-method.o stap-translator-output.o stap-stapregex.o stap-stapregex-tree.o stap-stapregex-parse.o stap-stapregex-dfa.o stap-stringtable.o stap-tapset-python.o stap-interactive.o stap-bpf-base.o stap-bpf-bitset.o stap-bpf-translate.o stap-bpf-opt.o -Wl,--start-group -ldw -lebl -Wl,--end-group -lelf -lsqlite3 -lpthread -lreadline
| The script example index is outdated, run
| cd ../git/testsuite/systemtap.examples && \
| perl examples-index-gen.pl
| to regenerate it.
| /home/quaijing/imx-yocto-bsp/build-imx8qm/tmp/work/aarch64-poky-linux/systemtap/4.0-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/8.3.0/ld: stap-tapsets.o: file not recognized: file truncated
| collect2: error: ld returned 1 exit status
| Makefile:945: recipe for target 'stap' failed
| make[2]: *** [stap] Error 1
| make[2]: Leaving directory '/home/quaijing/imx-yocto-bsp/build-imx8qm/tmp/work/aarch64-poky-linux/systemtap/4.0-r0/build'
| Makefile:2097: recipe for target 'all-recursive' failed
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory '/home/quaijing/imx-yocto-bsp/build-imx8qm/tmp/work/aarch64-poky-linux/systemtap/4.0-r0/build'
| Makefile:781: recipe for target 'all' failed
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/quaijing/imx-yocto-bsp/build-imx8qm/tmp/work/aarch64-poky-linux/systemtap/4.0-r0/temp/log.do_compile.38750)
ERROR: Task (/home/quaijing/imx-yocto-bsp/sources/poky/meta/recipes-kernel/systemtap/systemtap_git.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5188 tasks of which 5185 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/quaijing/imx-yocto-bsp/sources/poky/meta/recipes-kernel/systemtap/systemtap_git.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

 

 

what should I do to fix the problem?Thanks

Labels (1)
0 Kudos
1 Solution
3,769 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi ,

   I tested it on ubunt 18.04/20.04 , you can used one of them and install packages below:

  if you are in China, you can change ubuntu 18.04/20.04 source to Tsinghua University's.

(1) After changing ubuntu source ,run these 2 commands

# sudo apt-get update
# sudo apt-get upgrade
(2)Installing software packages for cross-compile linux BSP
# sudo apt-get install flex bison gperf build-essential zlib1g-dev
# sudo apt-get install lib32ncurses5-dev x11proto-core-dev
# sudo apt-get install libx11-dev lib32z1-dev libgl1-mesa-dev
# sudo apt-get install tofrodos python-markdown libxml2-utils xsltproc
# sudo apt-get install uuid-dev:i386 liblzo2-dev:i386 gcc-multilib g++-multilib
[commnent]
For Debian-10 uuid-dev:i386 liblzo2-dev:i386---> uuid-dev liblzo2-dev
# sudo apt-get install subversion openssh-server openssh-client uuid uuid-dev zlib1g-dev
# sudo apt-get install liblz-dev lzop liblzo2-2 liblzo2-dev git-core curl
# sudo apt-get install python3 python3-pip python3-pexpect python3-git python3-jinja2 pylint3
# sudo apt-get install u-boot-tools mtd-utils android-tools-fsutils
[commnent]
For ubuntu 20.04 LTS, don’t need android-tools-fsutils. So remove it, please!
# sudo apt-get install openjdk-8-jdk device-tree-compiler aptitude
[commnent]
For Debian-10 openjdk-8-jdk --- > default-jdk
# sudo apt-get install libcurl4-openssl-dev nss-updatedb
# sudo apt-get install chrpath texinfo gawk cpio diffstat
# sudo apt-get install libncursesw5-dev libssl-dev libegl1-mesa libncurses5
# sudo apt-get install net-tools python libsdl1.2-dev xterm socat
# sudo apt-get install icedtea-netx-common icedtea-netx

 

Then follow steps described in i.MX_Yocto_Project_User's_Guide.pdf to compile linux bsp.

 

Hope above items are helpful to you.

Have a nice day!

B.R,

weidong

View solution in original post

0 Kudos
1 Reply
3,770 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi ,

   I tested it on ubunt 18.04/20.04 , you can used one of them and install packages below:

  if you are in China, you can change ubuntu 18.04/20.04 source to Tsinghua University's.

(1) After changing ubuntu source ,run these 2 commands

# sudo apt-get update
# sudo apt-get upgrade
(2)Installing software packages for cross-compile linux BSP
# sudo apt-get install flex bison gperf build-essential zlib1g-dev
# sudo apt-get install lib32ncurses5-dev x11proto-core-dev
# sudo apt-get install libx11-dev lib32z1-dev libgl1-mesa-dev
# sudo apt-get install tofrodos python-markdown libxml2-utils xsltproc
# sudo apt-get install uuid-dev:i386 liblzo2-dev:i386 gcc-multilib g++-multilib
[commnent]
For Debian-10 uuid-dev:i386 liblzo2-dev:i386---> uuid-dev liblzo2-dev
# sudo apt-get install subversion openssh-server openssh-client uuid uuid-dev zlib1g-dev
# sudo apt-get install liblz-dev lzop liblzo2-2 liblzo2-dev git-core curl
# sudo apt-get install python3 python3-pip python3-pexpect python3-git python3-jinja2 pylint3
# sudo apt-get install u-boot-tools mtd-utils android-tools-fsutils
[commnent]
For ubuntu 20.04 LTS, don’t need android-tools-fsutils. So remove it, please!
# sudo apt-get install openjdk-8-jdk device-tree-compiler aptitude
[commnent]
For Debian-10 openjdk-8-jdk --- > default-jdk
# sudo apt-get install libcurl4-openssl-dev nss-updatedb
# sudo apt-get install chrpath texinfo gawk cpio diffstat
# sudo apt-get install libncursesw5-dev libssl-dev libegl1-mesa libncurses5
# sudo apt-get install net-tools python libsdl1.2-dev xterm socat
# sudo apt-get install icedtea-netx-common icedtea-netx

 

Then follow steps described in i.MX_Yocto_Project_User's_Guide.pdf to compile linux bsp.

 

Hope above items are helpful to you.

Have a nice day!

B.R,

weidong

0 Kudos