Closed domhel closed 1 year ago
What is the build host? gcc/g++ versions?
I'd suggest using the docker environment: https://github.com/compulab-yokneam/yocker#ubuntu-2004-preferred
I'm on Ubuntu 22.04 with gcc 11.3.0 Yocto Kirkstone works for me as expected, just not with the Readme
Hello,
I am trying to replicate an issue I have when using mender-uboot without grub.
For that, I followed the instructions:
From meta-bsp-imx8mm:
repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-kirkstone -m imx-5.15.32-2.0.0.xml
mkdir -p .repo/local_manifests wget --directory-prefix .repo/local_manifests https://raw.githubusercontent.com/compulab-yokneam/meta-bsp-imx8mm/${CLB_RELEASE}/scripts/${LREPO}
mkdir -p .repo/local_manifests wget --directory-prefix .repo/local_manifests https://raw.githubusercontent.com/compulab-yokneam/meta-mender-compulab/kirkstone-nxp/scripts/mender-compulab-kirkstone.xml repo sync
export MACHINE=iot-gate-imx8 source mender-setup-environment build-${MACHINE} bitbake -k fsl-image-network-full-cmdline
... huge error message ... | /home/dominik/br/yocto/compulab-freescale-bsp/build-iot-gate-imx8/tmp/work/aarch64-poky-linux/gdb/11.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/11.2.0/ld: /usr/src/debug/gdb/11.2-r0/build-aarch64-poky-linux/gdb/../../gdb-11.2/gdb/../gdbsupport/scoped_restore.h:86: undefined reference to
execution_direction' | /home/dominik/br/yocto/compulab-freescale-bsp/build-iot-gate-imx8/tmp/work/aarch64-poky-linux/gdb/11.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/11.2.0/ld: init.o:(.data+0x208): undefined reference to
_initialize_dwarf2_read()' | /home/dominik/br/yocto/compulab-freescale-bsp/build-iot-gate-imx8/tmp/work/aarch64-poky-linux/gdb/11.2-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/../../libexec/aarch64-poky-linux/gcc/aarch64-poky-linux/11.2.0/ld: init.o:(.data+0x2c8): undefined reference to `_initialize_infrun()' | collect2: error: ld returned 1 exit status | make[2]: [Makefile:1886: gdb] Error 1 | make[2]: Leaving directory '/home/dominik/br/yocto/compulab-freescale-bsp/build-iot-gate-imx8/tmp/work/aarch64-poky-linux/gdb/11.2-r0/build-aarch64-poky-linux/gdb' | make[1]: [Makefile:9782: all-gdb] Error 2 | make[1]: Leaving directory '/home/dominik/br/yocto/compulab-freescale-bsp/build-iot-gate-imx8/tmp/work/aarch64-poky-linux/gdb/11.2-r0/build-aarch64-poky-linux' | make: *** [Makefile:903: all] Error 2 | ERROR: oe_runmake failed | WARNING: exit code 1 from a shell command. ERROR: Task (/home/dominik/br/yocto/compulab-freescale-bsp/sources/poky/meta/recipes-devtools/gdb/gdb_11.2.bb:do_compile) failed with exit code '1'