iMX8MQ-EVK: bitbake imx-image-core failed

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

iMX8MQ-EVK: bitbake imx-image-core failed

Jump to solution
2,405 Views
Julie3
Contributor II

Hi everyone,

I am trying to build an imx-image-core on iMX8MQ-EVK, but I encountered some issue while executing the command 'bitbake -k imx-image-core'.

After executing the bitbake command of the image, I am getting the following lines:

ERROR: Task (/home/julie/imx-yocto-bsp/sources/poky/meta/recipes-devtools/binutils/binutils_2.36.bb:do_compile) failed with exit code '1'
ERROR: boost-1.75.0-r0 do_package: dwarfsrcfiles failed with exit code 1 (cmd was ['dwarfsrcfiles', '/home/julie/imx-yocto-bsp/build/tmp/work/cortexa53-crypto-poky-linux/boost/1.75.0-r0/package/usr/lib/libboost_math_c99f.a']):
dwarfsrcfiles: /home/julie/imx-yocto-bsp/build/tmp/work/cortexa53-crypto-poky-linux/boost/1.75.0-r0/package/usr/lib/libboost_math_c99f.a: not a valid ELF file

ERROR: Logfile of failure stored in: /home/julie/imx-yocto-bsp/build/tmp/work/cortexa53-crypto-poky-linux/boost/1.75.0-r0/temp/log.do_package.115730
ERROR: Task (/home/julie/imx-yocto-bsp/sources/poky/meta/recipes-support/boost/boost_1.75.0.bb:do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6687 tasks of which 6682 didn't need to be rerun and 3 failed.

Summary: 3 tasks failed:
/home/julie/imx-yocto-bsp/sources/meta-freescale/recipes-bsp/imx-mkimage/imx-boot_1.0.bb:do_compile
/home/julie/imx-yocto-bsp/sources/poky/meta/recipes-devtools/binutils/binutils_2.36.bb:do_compile
/home/julie/imx-yocto-bsp/sources/poky/meta/recipes-support/boost/boost_1.75.0.bb:do_package
Summary: There were 4 ERROR messages shown, returning a non-zero exit code.

 

After trying some solution posted on NXP forum (updating the version of the branch in imx-mkimage_git.inc, using bitbake -c cleanall binutils-native and bitbake binutils-native, commenting the line "PACKAGE_CLASSES ?= 'package_rpm'" in conf/local.conf), I am still getting these failures in compilation.

 

You can see my Build configuration below:

BB_VERSION           = "1.50.0"

BUILD_SYS            = "x86_64-linux"

NATIVELSBSTRING      = "ubuntu-20.04"

TARGET_SYS           = "aarch64-poky-linux"

MACHINE              = "imx8mq-evk"

DISTRO               = "fsl-imx-wayland"

DISTRO_VERSION       = "5.10-hardknott"

TUNE_FEATURES        = "aarch64 armv8a crc cortexa53 crypto"

TARGET_FPU           = ""

meta                

meta-poky            = "HEAD:269265c00091fa65f93de6cad32bf24f1e7f72a3"

meta-oe             

meta-multimedia     

meta-python          = "HEAD:f44e1a2b575826e88b8cb2725e54a7c5d29cf94a"

meta-freescale       = "HEAD:469d6c958c76ea235b3d3c1527e797ce3a7392e3"

meta-freescale-3rdparty = "HEAD:f8150f3b37cb83cba1f9e2378e57bb63e02d4610"

meta-freescale-distro = "HEAD:e6daa26ba1f748326546063d63a085ae671827d9"

meta-bsp            

meta-sdk            

meta-ml             

meta-v2x             = "HEAD:30eff0d5a090d34690f0261b2899d5a5cd94c5ab"

meta-nxp-demo-experience = "HEAD:9dcc11ea9f525cffedbb28895e0abb443e56c3e0"

meta-chromium        = "HEAD:8be1d3a0ba0cf32e61144900597207af5698c10d"

meta-clang           = "HEAD:b0d805060791006d651efd3d7ae3dd5add8f70fe"

meta-gnome          

meta-networking     

meta-filesystems     = "HEAD:f44e1a2b575826e88b8cb2725e54a7c5d29cf94a"

meta-qt5             = "HEAD:43f8f539d40070a70fe89136db89bf5bb1dfe7ed"

meta-python2         = "HEAD:8db9e4f6ceae33d7a4f55453d31e69f9858af4eb"

 

Could I get some help with my issue please?

Thanks,

Julie

Tags (1)
0 Kudos
1 Solution
2,388 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Please make sure you have installed all host packages.

Can you try to clean the project and rebuild it again?

View solution in original post

5 Replies
2,354 Views
josephzhou1
Contributor V

of cos , one machine one build lah

 

u shld try this for ur 2nd build: /home/julie/imx-yocto-bsp2/

thanks 

Best Regards,
Joseph Zhou Jianhui / Senior Embedded Software Engineer, Singapore
2,379 Views
Julie3
Contributor II

Hi, 

Thanks for your reply.

 

I installed the host packages from the IMX_YOCTO_PROJCET_USERS_GUIDE.pdf, which is:

sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \
xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \
pylint3 xterm rsync curl

 

I also did the following command, from https://www.yoctoproject.org/docs/2.4.2/yocto-project-qs/yocto-project-qs.html: 

sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \ build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \ xz-utils debianutils iputils-ping libsdl1.2-dev xterm

 

I don't think there are other host packages to install. Furthermore, I previously built the core-image-minimal for the same machine (imx8mq-evk), but I only removed the build folder (~/imx-yocto-bsp/build). Should I remove everything (the folder ~/imx-yocto-project)?

0 Kudos
2,389 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Please make sure you have installed all host packages.

Can you try to clean the project and rebuild it again?

2,362 Views
Julie3
Contributor II

Hi again,

Finally, I removed my folder imx-yocto-bsp and I rebuilt my imx-image-core image. I got the following warnings (the links in the warnings are down):

 

WARNING: libpcre2-native-10.36-r0 do_fetch: Failed to fetch URL https://ftp.pcre.org/pub/pcre/pcre2-10.36.tar.bz2, attempting MIRRORS if available

WARNING: libpcre-8.44-r0 do_fetch: Failed to fetch URL https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.bz2, attempting MIRRORS if available

WARNING: cwautomacros-native-20110201-r0 do_fetch: Failed to fetch URL https://downloads.sourceforge.net/cwautomacros.berlios/cwautomacros-20110201.tar.bz2, attempting MIRRORS if available

WARNING: socat-1.7.4.1-r0 do_fetch: Failed to fetch URL http://www.dest-unreach.org/socat/download/socat-1.7.4.1.tar.bz2, attempting MIRRORS if available

WARNING: grpc-go-1.4.0+gitAUTOINC+777daa17ff-r0 do_fetch: Failed to fetch URL git://github.com/grpc/grpc-go.git;destsuffix=git/src/google.golang.org/grpc, attempting MIRRORS if available

WARNING: go-connections-0.2.1+gitAUTOINC+4ccf312bf1-r0 do_fetch: Failed to fetch URL git://github.com/docker/go-connections.git;destsuffix=git/src/github.com/docker/go-connections, attempting MIRRORS if available

WARNING: compose-file-3.0+gitAUTOINC+a3e58764f5-r0 do_fetch: Failed to fetch URL git://github.com/aanand/compose-file.git;destsuffix=git/src/github.com/aanand/compose-file, attempting MIRRORS if available

WARNING: go-logrus-0.11.0+gitAUTOINC+d264929707-r0 do_fetch: Failed to fetch URL git://github.com/Sirupsen/logrus.git, attempting MIRRORS if available

WARNING: go-mux-git-r0 do_fetch: Failed to fetch URL git://github.com/gorilla/mux.git, attempting MIRRORS if available

WARNING: go-systemd-4+gitAUTOINC+b4a58d9518-r0 do_fetch: Failed to fetch URL git://github.com/coreos/go-systemd.git;branch=main, attempting MIRRORS if available

WARNING: go-capability-0.0+gitAUTOINC+2c00daeb6c-r0 do_fetch: Failed to fetch URL git://github.com/syndtr/gocapability.git, attempting MIRRORS if available

WARNING: go-pty-git-r0 do_fetch: Failed to fetch URL git://github.com/creack/pty.git, attempting MIRRORS if available

WARNING: go-cli-1.1.0+gitAUTOINC+27ecc97192-r0 do_fetch: Failed to fetch URL git://github.com/codegangsta/cli.git, attempting MIRRORS if available

WARNING: go-context-git-r0 do_fetch: Failed to fetch URL git://github.com/gorilla/context.git, attempting MIRRORS if available

WARNING: go-patricia-2.2.6+gitAUTOINC+666120de43-r0 do_fetch: Failed to fetch URL git://github.com/tchap/go-patricia.git, attempting MIRRORS if available

WARNING: go-distribution-2.6.0+gitAUTOINC+28602af35a-r0 do_fetch: Failed to fetch URL git://github.com/docker/distribution.git;branch=docker/1.13;destsuffix=git/src/github.com/docker/distribution, attempting MIRRORS if available

WARNING: go-dbus-4.0.0+gitAUTOINC+5f6efc7ef2-r0 do_fetch: Failed to fetch URL git://github.com/godbus/dbus.git, attempting MIRRORS if available

WARNING: notary-0.6.1+gitAUTOINC+d6e1431feb-r0 do_fetch: Failed to fetch URL git://github.com/docker/notary.git;destsuffix=git/src/github.com/docker/notary, attempting MIRRORS if available

WARNING: go-fsnotify-1.2.11+gitAUTOINC+836bfd95fe-r0 do_fetch: Failed to fetch URL git://github.com/fsnotify/fsnotify.git;nobranch=1, attempting MIRRORS if available

WARNING: tini-0.19.0-r0 do_fetch: Failed to fetch URL git://github.com/krallin/tini.git, attempting MIRRORS if available

WARNING: containerd-opencontainers-v1.4.4+gitAUTOINC+409c87ba59-r0 do_fetch: Failed to fetch URL git://github.com/containerd/containerd;branch=release/1.4, attempting MIRRORS if available

WARNING: apt-2.2.2-r0 do_fetch: Failed to fetch URL http://ftp.debian.org/debian/pool/main/a/apt/apt_2.2.2.tar.xz, attempting MIRRORS if available

WARNING: jailhouse-0.12-r0 do_fetch: Failed to fetch URL git://source.codeaurora.org/external/imx/imx-jailhouse.git;protocol=ssh;branch=lf-5.10.72_2.2.0, attempting MIRRORS if available

WARNING: docker-ce-v19.03.15-ce+git99e3ed89195c4e551e87aad1e7453b65456b03ad-r0 do_fetch: Failed to fetch URL git://github.com/docker/docker-ce.git;branch=19.03;name=docker, attempting MIRRORS if available

WARNING: docker-ce-v19.03.15-ce+git99e3ed89195c4e551e87aad1e7453b65456b03ad-r0 do_fetch: Failed to fetch URL git://github.com/docker/libnetwork.git;branch=bump_19.03;name=libnetwork;destsuffix=git/libnetwork, attempting MIRRORS if available

WARNING: firmwared-0+gitAUTOINC+2e6b5db43d-r0 do_fetch: Failed to fetch URL git://github.com/teg/firmwared.git, attempting MIRRORS if available

 

 

Then, made a bitbake of the optee-examples from https://github.com/linaro-swg/optee_examples

The next step is to flash my eMMC image.

Thanks for your help,

 

Julie

0 Kudos
2,375 Views
Julie3
Contributor II

I tried to do 'bitbake -c cleanall imx-image-core' and then rebuild with 'bitbake -k imx-image-core', but I still get the same errors. Should I try to remove the build folder and rebuild again? Or do you have some other advice?

 

Thanks,

Julie

0 Kudos