AnsweredAssumed Answered

Error when build images for IMX8 by Yocto project

Question asked by Vu Tang on Jun 10, 2019
Latest reply on Jun 14, 2019 by Diego Adrian Cuevas

Hi all,

 

When following instructions in i.MX Yocto Project User's Guide to try to build images for my MCIMX8M-EVK KIT, I got an error with building package "libpam". A part of building log is attached below.

 

| aarch64-poky-linux-libtool: link: gcc -isystem/media/vutt6/linuxwrk/imx8/fsl-arm-yocto-bsp/build-qt5/tmp/work/aarch64-poky-linux/libpam/1.3.0-r5/recipe-sysroot-native/usr/include -O2 -pipe -Wl,-rpath-link -Wl,/media/vutt6/linuxwrk/imx8/fsl-arm-yocto-bsp/build-qt5/tmp/work/aarch64-poky-linux/libpam/1.3.0-r5/recipe-sysroot-native/usr/lib -Wl,-rpath-link -Wl,/media/vutt6/linuxwrk/imx8/fsl-arm-yocto-bsp/build-qt5/tmp/work/aarch64-poky-linux/libpam/1.3.0-r5/recipe-sysroot-native/lib -Wl,-rpath -Wl,/media/vutt6/linuxwrk/imx8/fsl-arm-yocto-bsp/build-qt5/tmp/work/aarch64-poky-linux/libpam/1.3.0-r5/recipe-sysroot-native/usr/lib -Wl,-rpath -Wl,/media/vutt6/linuxwrk/imx8/fsl-arm-yocto-bsp/build-qt5/tmp/work/aarch64-poky-linux/libpam/1.3.0-r5/recipe-sysroot-native/lib -Wl,-O1 -o padout parse_l.o parse_y.o -L/media/vutt6/linuxwrk/imx8/fsl-arm-yocto-bsp/build-qt5/tmp/work/aarch64-poky-linux/libpam/1.3.0-r5/recipe-sysroot-native/usr/lib -L/media/vutt6/linuxwrk/imx8/fsl-arm-yocto-bsp/build-qt5/tmp/work/aarch64-poky-linux/libpam/1.3.0-r5/recipe-sysroot-native/lib
| parse_y.o: In function `yyparse':
| parse_y.c:(.text+0xc23): undefined reference to `__warn_memset_zero_len'
| collect2: error: ld returned 1 exit status
| Makefile:458: recipe for target 'padout' failed
| make[4]: *** [padout] Error 1
| make[4]: Leaving directory '/media/vutt6/linuxwrk/imx8/fsl-arm-yocto-bsp/build-qt5/tmp/work/aarch64-poky-linux/libpam/1.3.0-r5/build/doc/specs'
| Makefile:411: recipe for target 'all' failed
| make[3]: *** [all] Error 2
| make[3]: Leaving directory '/media/vutt6/linuxwrk/imx8/fsl-arm-yocto-bsp/build-qt5/tmp/work/aarch64-poky-linux/libpam/1.3.0-r5/build/doc/specs'
| Makefile:466: recipe for target 'all-recursive' failed
| make[2]: *** [all-recursive] Error 1
| make[2]: Leaving directory '/media/vutt6/linuxwrk/imx8/fsl-arm-yocto-bsp/build-qt5/tmp/work/aarch64-poky-linux/libpam/1.3.0-r5/build/doc'
| Makefile:472: recipe for target 'all-recursive' failed
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory '/media/vutt6/linuxwrk/imx8/fsl-arm-yocto-bsp/build-qt5/tmp/work/aarch64-poky-linux/libpam/1.3.0-r5/build'
| Makefile:404: recipe for target 'all' failed
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| WARNING: /media/vutt6/linuxwrk/imx8/fsl-arm-yocto-bsp/build-qt5/tmp/work/aarch64-poky-linux/libpam/1.3.0-r5/temp/run.do_compile.20204:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /media/vutt6/linuxwrk/imx8/fsl-arm-yocto-bsp/build-qt5/tmp/work/aarch64-poky-linux/libpam/1.3.0-r5/temp/log.do_compile.20204)

This error happens in my build machine run with Ubuntu 16.04.

 

Does anyone has any idea about what happen with my project?

 

Thank you very much.

Outcomes