AnsweredAssumed Answered

Compile error when make i.MX Yocto project

Question asked by Tomohito Okado on Sep 10, 2018
Latest reply on Sep 13, 2018 by Qian He

Hi,
I am using the imx 6Q SABRE-SDB development board. I want to download and build the i.MX Yocto project following the i.MX Yocto Project User's Guide, Rev. L4.9.88_2.0.0-ga, 05/2018.
But it report an error when executing "bitbake fsl-image-machine-test" command. The host environment is ubuntu 18.04 LTS on vmware. I don't know why it report the error. I have tried several times and the error remains.
 

Please tell me how resolve or avoid this problem. Thank you.

 

The error log is as following,

 

okado@ubuntu:~/imx-yocto-bsp/build-x11$ bitbake fsl-image-machine-test
WARNING: Host distribution "ubuntu-18.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:03
Loaded 3262 entries from dependency cache.
Parsing recipes: 100% |######################################################################################################################################################################| Time: 0:00:04
Parsing of 2423 .bb files complete (2421 cached, 2 parsed). 3264 targets, 207 skipped, 8 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

 

Build Configuration:
BB_VERSION           = "1.36.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-18.04"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "imx6qsabresd"
DISTRO               = "fsl-imx-x11"
DISTRO_VERSION       = "4.9.88-2.0.0"
TUNE_FEATURES        = "arm armv7a vfp neon callconvention-hard cortexa9"
TARGET_FPU           = "hard"
meta                 
meta-poky            = "HEAD:0ec241873367e18f5371a3ad9aca1e2801dcd4ee"
meta-oe              
meta-multimedia      = "HEAD:dacfa2b1920e285531bec55cd2f08743390aaf57"
meta-freescale       = "HEAD:49ac225a38f6d84519798e3264f2e4d19b84f70a"
meta-freescale-3rdparty = "HEAD:1d6d5961dbf82624b28bb318b4950a64abc31d12"
meta-freescale-distro = "HEAD:0ec6d7e206705702b5b534611754de0787f92b72"
meta-bsp             
meta-sdk             = "HEAD:d65692ecb3a4136fc1cc137152634e8633ddb3c6"
meta-browser         = "HEAD:d6f9aed41c73b75a97d71bff060b03a66ee087b1"
meta-gnome           
meta-networking      
meta-python          
meta-filesystems     = "HEAD:dacfa2b1920e285531bec55cd2f08743390aaf57"
meta-qt5             = "HEAD:32bb7d18a08d1c48873d7ab6332d4cc3815a4dff"

 

Initialising tasks: 100% |###################################################################################################################################################################| Time: 0:00:36
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: assimp-4.0.0-r0 do_compile: Function failed: do_compile (log file is located at /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/temp/log.do_compile.55433)
ERROR: Logfile of failure stored in: /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/temp/log.do_compile.55433
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: VERBOSE=1 cmake --build /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build -- -j 1
| /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/recipe-sysroot-native/usr/bin/cmake -H/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/git -B/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build --check-build-system CMakeFiles/Makefile.cmake 0
| /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/recipe-sysroot-native/usr/bin/cmake -E cmake_progress_start /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build/CMakeFiles /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build/CMakeFiles/progress.marks
| make -f CMakeFiles/Makefile2 all
| make[1]: Entering directory '/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build'
| make -f contrib/irrXML/CMakeFiles/IrrXML.dir/build.make contrib/irrXML/CMakeFiles/IrrXML.dir/depend
| make[2]: Entering directory '/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build'
| cd /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build && /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/recipe-sysroot-native/usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/git /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/git/contrib/irrXML /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build/contrib/irrXML /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build/contrib/irrXML/CMakeFiles/IrrXML.dir/DependInfo.cmake --color=
| make[2]: Leaving directory '/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build'
| make -f contrib/irrXML/CMakeFiles/IrrXML.dir/build.make contrib/irrXML/CMakeFiles/IrrXML.dir/build
| make[2]: Entering directory '/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build'
| make[2]: Nothing to be done for 'contrib/irrXML/CMakeFiles/IrrXML.dir/build'.
| make[2]: Leaving directory '/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build'
| [  1%] Built target IrrXML
| make -f code/CMakeFiles/assimp.dir/build.make code/CMakeFiles/assimp.dir/depend
| make[2]: Entering directory '/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build'
| cd /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build && /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/recipe-sysroot-native/usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/git /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/git/code /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build/code /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build/code/CMakeFiles/assimp.dir/DependInfo.cmake --color=
| make[2]: Leaving directory '/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build'
| make -f code/CMakeFiles/assimp.dir/build.make code/CMakeFiles/assimp.dir/build
| make[2]: Entering directory '/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build'
| [  1%] Building CXX object code/CMakeFiles/assimp.dir/IFCReaderGen1.cpp.o
| cd /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build/code && /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++  -DASSIMP_BUILD_DLL_EXPORT -DASSIMP_BUILD_NO_C4D_IMPORTER -DASSIMP_BUILD_NO_OWN_ZLIB -DASSIMP_IMPORTER_GLTF_USE_OPEN3DGC=1 -DOPENDDLPARSER_BUILD -DOPENDDL_NO_USE_CPP11 -D_FILE_OFFSET_BITS=64 -Dassimp_EXPORTS -I/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/git/. -I/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build -I/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build/include -I/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/git/include -I/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/recipe-sysroot/usr/include -I/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/git/code/../contrib/rapidjson/include -I/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/git/code/../contrib -I/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/git/code/../contrib/unzip -I/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/git/contrib/irrXML -I/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/git/code/../contrib/openddlparser/include -I/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/git/code/..  -march=armv7-a -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9  --sysroot=/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/recipe-sysroot  -O2 -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0=/usr/src/debug/assimp/4.0.0-r0 -fdebug-prefix-map=/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/recipe-sysroot-native= -fdebug-prefix-map=/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/recipe-sysroot=  -fvisibility-inlines-hidden  -march=armv7-a -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9  --sysroot=/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/recipe-sysroot -fopenmp -g -fvisibility=hidden -fPIC -Wall -std=c++0x -fPIC   -o CMakeFiles/assimp.dir/IFCReaderGen1.cpp.o -c /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/git/code/IFCReaderGen1.cpp
| arm-poky-linux-gnueabi-g++: internal compiler error: Killed (program cc1plus)
| Please submit a full bug report,
| with preprocessed source if appropriate.
| See <https://gcc.gnu.org/bugs/> for instructions.
| code/CMakeFiles/assimp.dir/build.make:2849: recipe for target 'code/CMakeFiles/assimp.dir/IFCReaderGen1.cpp.o' failed
| make[2]: *** [code/CMakeFiles/assimp.dir/IFCReaderGen1.cpp.o] Error 4
| make[2]: *** Deleting file 'code/CMakeFiles/assimp.dir/IFCReaderGen1.cpp.o'
| make[2]: Leaving directory '/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build'
| CMakeFiles/Makefile2:193: recipe for target 'code/CMakeFiles/assimp.dir/all' failed
| make[1]: *** [code/CMakeFiles/assimp.dir/all] Error 2
| make[1]: Leaving directory '/home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/build'
| Makefile:132: recipe for target 'all' failed
| make: *** [all] Error 2
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/okado/imx-yocto-bsp/build-x11/tmp/work/cortexa9hf-neon-poky-linux-gnueabi/assimp/4.0.0-r0/temp/log.do_compile.55433)
ERROR: Task (/home/okado/imx-yocto-bsp/sources/poky/meta/recipes-graphics/vulkan/assimp_4.0.0.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3634 tasks of which 3633 didn't need to be rerun and 1 failed.

 

Summary: 1 task failed:
  /home/okado/imx-yocto-bsp/sources/poky/meta/recipes-graphics/vulkan/assimp_4.0.0.bb:do_compile
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Outcomes