AnsweredAssumed Answered

i.MX7 yocto cross-compiler issue

Question asked by Wayne Lou on Dec 21, 2016
Latest reply on Dec 27, 2016 by Wayne Lou

Hi all,


I have downloaded i.MX7 dual Linux4.1.15 yocto BSP by following method.


$ repo init -u git:// -b imx-4.1-krogoth -m imx-4.1.15-2.0.0.xml
$ repo sync


I can use bitbake to build out gui image and boot the board.

$ DISTRO=fsl-imx-x11 MACHINE=imx7dsabresd source -b build-x11

$ bitbake fsl-image-gui


But now when I add some external package bb file in source directory and try to build out into rootfs. I am facing below error:

ERROR: uim-git-r1+gitrAUTOINC+c73894456d do_compile: oe_runmake failed
ERROR: uim-git-r1+gitrAUTOINC+c73894456d do_compile: Function failed: do_compile (log file is located at /home/wayne/L4.1.15/fsl-yocto-L4.1.15_2.0.0-ga/fsl-arm-yocto-bsp/build-x11/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/uim/git-r1+gitrAUTOINC+c73894456d/temp/log.do_compile.4786)
ERROR: Logfile of failure stored in: /home/wayne/L4.1.15/fsl-yocto-L4.1.15_2.0.0-ga/fsl-arm-yocto-bsp/build-x11/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/uim/git-r1+gitrAUTOINC+c73894456d/temp/log.do_compile.4786
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 CC=arm-poky-linux-gnueabi-gcc
| CC uim.o
| uim.c:18:19: fatal error: stdio.h: No such file or directory
| compilation terminated.
| make: *** [uim.o] Error 1
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /home/wayne/L4.1.15/fsl-yocto-L4.1.15_2.0.0-ga/fsl-arm-yocto-bsp/build-x11/tmp/work/cortexa7hf-neon-poky-linux-gnueabi/uim/git-r1+gitrAUTOINC+c73894456d/temp/log.do_compile.4786)
ERROR: Task 1175 (/home/wayne/L4.1.15/fsl-yocto-L4.1.15_2.0.0-ga/fsl-arm-yocto-bsp/sources/poky/meta/recipes-connectivity/uim/, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4590 tasks of which 4589 didn't need to be rerun and 1 failed.
No currently running tasks (4209 of 7281)


It seems that toolchain arm-poky-linux-gnueabi lack some C library. Could anyone provide some help.

Thanks very much.