imx yocto build error

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

imx yocto build error

442 Views
kajolkharbanda
NXP Employee
NXP Employee

I am trying to build core-image-minimal for i.MX93 using yocto build:

Getting this error:

deps/insn-emit.TPo insn-emit.cc
| aarch64-poky-linux-g++: fatal error: Killed signal terminated program cc1plus
| compilation terminated.
| make[1]: *** [Makefile:1144: insn-emit.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| rm gcc.pod
| make[1]: Leaving directory '/home/nxf94256/imx-yocto-bsp/build-wayland/tmp/work/armv8a-poky-linux/gcc/12.2.0-r0/gcc-12.2.0/build.aarch64-poky-linux.aarch64-poky-linux/gcc'
| make: *** [Makefile:4619: all-gcc] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/nxf94256/imx-yocto-bsp/sources/poky/meta/recipes-devtools/gcc/gcc_12.2.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2789 tasks of which 1188 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/nxf94256/imx-yocto-bsp/sources/poky/meta/recipes-devtools/gcc/gcc_12.2.bb:do_compile
Summary: There were 2 WARNING messages.
Summary: There were 2 ERROR messages, returning a non-zero exit code.

0 Kudos
4 Replies

421 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @kajolkharbanda.

I hope you are doing well
 
This error is related to a memory shortage in your host machine. The Yocto build process requires a higher amount of memory to run parallel tasks. When your system gets out of memory, to free up memory, it kills some of the processes that use the most memory.
 
The same error is described in the below link.
 
Thanks & Regards,
Dhruvit Vasavada
0 Kudos

409 Views
kajolkharbanda
NXP Employee
NXP Employee

Enough space is available in home directory:

nxf94256@lsv051137:~/imx-yocto-bsp/build-wayland$ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 392M 3.9M 388M 1% /run
/dev/mapper/vg_sys-lv_root 9.8G 14M 9.3G 1% /
/dev/mapper/vg_data-lv_usr 9.8G 7.0G 2.3G 76% /usr
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/sda2 974M 263M 644M 29% /boot
/dev/mapper/vg_data-lv_opt 49G 1.4G 46G 3% /opt
/dev/mapper/vg_data-lv_var 9.8G 2.3G 7.0G 25% /var
/dev/mapper/vg_data-lv_home 689G 65G 596G 10% /home
/dev/mapper/vg_sys-lv_tmp 9.8G 620K 9.3G 1% /tmp

0 Kudos

394 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @kajolkharbanda,

The 'df' command will show the output for available memory in the disk(ROM). However, the issue seems to be related to RAM, not the disk space. Here, while compiling the core-image-minimal, lots of resources will be in use including the RAM to run the processes/threads in your host machine. If it is insufficient to run further processes/threads the operating system may kill some processes. In your case it is cc1plus.
 
Thanks & Regards,
Dhruvit Vasavada

0 Kudos

331 Views
kajolkharbanda
NXP Employee
NXP Employee

Getting some new errors:

 

inux/12.2.0/ld: insn-emit.o:(.debug_info+0x90ef8): undefined reference to `.LVUS391362'
| /home/nxf94256/imx-yocto-bsp/build-wayland/tmp/work/armv8a-poky-linux/gcc/12.2.0-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/12.2.0/ld: insn-emit.o:(.debug_info+0x90efd): undefined reference to `.LLRL391358'
| /home/nxf94256/imx-yocto-bsp/build-wayland/tmp/work/armv8a-poky-linux/gcc/12.2.0-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/12.2.0/ld: insn-emit.o:(.debug_info+0x90f06): undefined reference to `.LLST391363'
| /home/nxf94256/imx-yocto-bsp/build-wayland/tmp/work/armv8a-poky-linux/gcc/12.2.0-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/12.2.0/ld: insn-emit.o:(.debug_info+0x90f0a): undefined reference to `.LVUS391363'
| /home/nxf94256/imx-yocto-bsp/build-wayland/tmp/work/armv8a-poky-linux/gcc/12.2.0-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/12.2.0/ld: insn-emit.o:(.debug_info+0x90f1d): undefined reference to `.LLRL391364'
| /home/nxf94256/imx-yocto-bsp/build-wayland/tmp/work/armv8a-poky-linux/gcc/12.2.0-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/12.2.0/ld: insn-emit.o:(.debug_info+0x90f2e): undefined reference to `.LLST391365'
| /home/nxf94256/imx-yocto-bsp/build-wayland/tmp/work/armv8a-poky-linux/gcc/12.2.0-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/12.2.0/ld: insn-emit.o:(.debug_info+0x90f32): undefined reference to `.LVUS391365'
| /home/nxf94256/imx-yocto-bsp/build-wayland/tmp/work/armv8a-poky-linux/gcc/12.2.0-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/12.2.0/ld: insn-emit.o:(.debug_info+0x90f3b): undefined reference to `.LLST391366'
| /home/nxf94256/imx-yocto-bsp/build-wayland/tmp/work/armv8a-poky-linux/gcc/12.2.0-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/12.2.0/ld: insn-emit.o:(.debug_info+0x90f3f): undefined reference to `.LVUS391366'
| /home/nxf94256/imx-yocto-bsp/build-wayland/tmp/work/armv8a-poky-linux/gcc/12.2.0-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/12.2.0/ld: insn-emit.o:(.debug_info+0x90f48): undefined reference to `.LLST391367'
| /home/nxf94256/imx-yocto-bsp/build-wayland/tmp/work/armv8a-poky-linux/gcc/12.2.0-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/12.2.0/ld: insn-emit.o:(.debug_info+0x90f4c): undefined reference to `.LVUS391367'
| /home/nxf94256/imx-yocto-bsp/build-wayland/tmp/work/armv8a-poky-linux/gcc/12.2.0-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/12.2.0/ld: insn-emit.o:(.debug_info+0x90f55): undefined reference to `.LLST391368'
| collect2: error: ld returned 1 exit status
| make[1]: *** [../../../../../../../work-shared/gcc-12.2.0-r0/gcc-12.2.0/gcc/lto/Make-lang.in:102: lto-dump] Error 1
| make[1]: *** Waiting for unfinished jobs....
| collect2: error: ld returned 1 exit status
| make[1]: *** [../../../../../../../work-shared/gcc-12.2.0-r0/gcc-12.2.0/gcc/lto/Make-lang.in:96: lto1] Error 1
| make[1]: Leaving directory '/home/nxf94256/imx-yocto-bsp/build-wayland/tmp/work/armv8a-poky-linux/gcc/12.2.0-r0/gcc-12.2.0/build.aarch64-poky-linux.aarch64-poky-linux/gcc'
| make: *** [Makefile:4619: all-gcc] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/nxf94256/imx-yocto-bsp/sources/poky/meta/recipes-devtools/gcc/gcc_12.2.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3611 tasks of which 3596 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/home/nxf94256/imx-yocto-bsp/sources/poky/meta/recipes-devtools/gcc/gcc_12.2.bb:do_compile
Summary: There were 2 ERROR messages, returning a non-zero exit code.

0 Kudos