Kirkstone build failing with libtool

Hi,

I am trying to build the kirstone image. I have used the instructions provided. However I get a build failure on libtool. Here is the error log:

$ bitbake tdx-reference-multimedia-image
WARNING: You have included the meta-tpm layer, but 'tpm or tpm2' has not been enabled in your DISTRO_FEATURES. Some bbappend files and preferred version setting may not take effect. See the meta-tpm README for
details on enabling tpm support.
Loading cache: 100% |                                                                                                                                                                             | ETA:  --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |############################################################################################################################################################################| Time: 0:05:27
Parsing of 3259 .bb files complete (0 cached, 3259 parsed). 4778 targets, 366 skipped, 0 masked, 0 errors.
WARNING: No recipes in default available for:
  /home/tester/actions-runner/github_work/VicorderCS-DataStation-FW-YoctoSrc/VicorderCS-DataStation-FW-YoctoSrc/yocto_src/build/../layers/meta-toradex-nxp/recipes-bsp/imx-mkimage/imx-mkimage_1.0.bbappend
  /home/tester/actions-runner/github_work/VicorderCS-DataStation-FW-YoctoSrc/VicorderCS-DataStation-FW-YoctoSrc/yocto_src/build/../layers/meta-toradex-nxp/recipes-multimedia/gstreamer/gstreamer1.0-plugins-base_
1.20.0.imx.bbappend
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "2.0.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "aarch64-tdx-linux"
MACHINE              = "verdin-imx8mp"
DISTRO               = "tdx-xwayland"
DISTRO_VERSION       = "6.8.1-devel-20250128090633+build.0"
TUNE_FEATURES        = "aarch64 armv8a crc cortexa53"
TARGET_FPU           = ""
meta-toradex-nxp     = "HEAD:a82c2e40db2991924b21b12eb141e6fe5b62bb13"
meta-freescale       = "HEAD:c525e0c19bdc46d45f71873b5f286f49abb69418"
meta-freescale-3rdparty = "HEAD:48516272d97f9415e0ee3ab54a923e4c40143e69"
meta-toradex-ti      = "HEAD:38f4b5c1af28ead6bc6ff21812bea33951c5f2a6"
meta-arm-toolchain
meta-arm             = "HEAD:936c02ec13661bd86a05f7f90e1b920d5092d670"
meta-ti-bsp
meta-ti-extras       = "HEAD:417233481d8daa46633045fac358260d07cf1670"
meta-toradex-bsp-common = "HEAD:ba654fce46cb76cf9b5141a219506f27db9d81bb"
meta-oe
meta-filesystems
meta-gnome
meta-xfce
meta-networking
meta-multimedia
meta-python
meta-webserver       = "HEAD:de8681b4a2a101b99dd2c48d89a7de2ccd9a961f"
meta-freescale-distro = "HEAD:d5bbb487b2816dfc74984a78b67f7361ce404253"             
meta-toradex-demos   = "HEAD:ad72d14becf6b54c1c76864eb691a369307672fa"
meta-qt5             = "HEAD:644ebf220245bdc06e7696ccc90acc97a0dd2566"
meta-tpm             = "HEAD:b9cf9cd639bc8d1b4828eb0bd012b71486d35176"
meta-toradex-distro  = "HEAD:3c38a3acc69b7ad28908044bc2735a9d4f2b4e9f"
meta-poky            = "HEAD:6e8a5bac75ca114ef2b4d3ca150b3f501519ea8f"
meta                 = "HEAD:077aab43f2c928eb8da71934405c62327010f552"

Initialising tasks: 100% |#########################################################################################################################################################################| Time: 0:00:11
Sstate summary: Wanted 3541 Local 0 Mirrors 0 Missed 3541 Current 78 (0% match, 2% complete)
NOTE: Executing Tasks
ERROR: libtool-native-2.4.7-r0 do_install: oe_runmake failed
ERROR: libtool-native-2.4.7-r0 do_install: ExecutionError('/home/tester/bitbake-data/bitbake.tmp/work/x86_64-linux/libtool-native/2.4.7-r0/temp/run.do_install.1870950', 1, None, None)
ERROR: Logfile of failure stored in: /home/tester/bitbake-data/bitbake.tmp/work/x86_64-linux/libtool-native/2.4.7-r0/temp/log.do_install.1870950
Log data follows:
| DEBUG: Executing python function autotools_aclocals
| DEBUG: SITE files ['endian-little', 'common-linux', 'common-glibc', 'bit-64', 'x86_64-linux', 'common']
| DEBUG: Python function autotools_aclocals finished
| DEBUG: Executing shell function do_install
| NOTE: make -j 2 DESTDIR=/home/tester/bitbake-data/bitbake.tmp/work/x86_64-linux/libtool-native/2.4.7-r0/image install
| make  install-recursive
| make[1]: Entering directory '/data/bitbake-data/bitbake.tmp/work/x86_64-linux/libtool-native/2.4.7-r0/build'
| Making install in .
| make[2]: Entering directory '/data/bitbake-data/bitbake.tmp/work/x86_64-linux/libtool-native/2.4.7-r0/build'
| /bin/bash ./libtool  --tag=CC   --mode=compile gcc  -DHAVE_CONFIG_H -I. -I../../../../../../../../home/tester/bitbake-data/bitbake.tmp/work/x86_64-linux/libtool-native/2.4.7-r0/libtool-2.4.7  -DLTDLOPEN=liblt
dl -DLT_CONFIG_H='<config.h>' -DLTDL -I. -I../../../../../../../../home/tester/bitbake-data/bitbake.tmp/work/x86_64-linux/libtool-native/2.4.7-r0/libtool-2.4.7 -Ilibltdl -I../../../../../../../../home/tester/bi
tbake-data/bitbake.tmp/work/x86_64-linux/libtool-native/2.4.7-r0/libtool-2.4.7/libltdl -Ilibltdl/libltdl -I../../../../../../../../home/tester/bitbake-data/bitbake.tmp/work/x86_64-linux/libtool-native/2.4.7-r0/
libtool-2.4.7/libltdl/libltdl -isystem/home/tester/bitbake-data/bitbake.tmp/work/x86_64-linux/libtool-native/2.4.7-r0/recipe-sysroot-native/usr/include  -isystem/home/tester/bitbake-data/bitbake.tmp/work/x86_64
-linux/libtool-native/2.4.7-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o libltdl/loaders/libltdl_la-preopen.lo `test -f 'libltdl/loaders/preopen.c' || echo '../../../../../../../../home/tester/bitbake-d
ata/bitbake.tmp/work/x86_64-linux/libtool-native/2.4.7-r0/libtool-2.4.7/'`libltdl/loaders/preopen.c
| /bin/bash ./libtool  --tag=CC   --mode=compile gcc  -DHAVE_CONFIG_H -I. -I../../../../../../../../home/tester/bitbake-data/bitbake.tmp/work/x86_64-linux/libtool-native/2.4.7-r0/libtool-2.4.7  -DLTDLOPEN=liblt
dl -DLT_CONFIG_H='<config.h>' -DLTDL -I. -I../../../../../../../../home/tester/bitbake-data/bitbake.tmp/work/x86_64-linux/libtool-native/2.4.7-r0/libtool-2.4.7 -Ilibltdl -I../../../../../../../../home/tester/bi
tbake-data/bitbake.tmp/work/x86_64-linux/libtool-native/2.4.7-r0/libtool-2.4.7/libltdl -Ilibltdl/libltdl -I../../../../../../../../home/tester/bitbake-data/bitbake.tmp/work/x86_64-linux/libtool-native/2.4.7-r0/
libtool-2.4.7/libltdl/libltdl -isystem/home/tester/bitbake-data/bitbake.tmp/work/x86_64-linux/libtool-native/2.4.7-r0/recipe-sysroot-native/usr/include  -isystem/home/tester/bitbake-data/bitbake.tmp/work/x86_64
-linux/libtool-native/2.4.7-r0/recipe-sysroot-native/usr/include -O2 -pipe -c -o libltdl/libltdl_la-lt__alloc.lo `test -f 'libltdl/lt__alloc.c' || echo '../../../../../../../../home/tester/bitbake-data/bitbake.
tmp/work/x86_64-linux/libtool-native/2.4.7-r0/libtool-2.4.7/'`libltdl/lt__alloc.c
| ./libtool: line 917: func_add_hook: command not found
| ./libtool: line 1022: func_add_hook: command not found
| ./libtool: line 1086: func_add_hook: command not found
| ./libtool: line 1091: func_options: command not found
| ./libtool: line 917: func_add_hook: command not found
| ./libtool: line 1022: func_add_hook: command not found
| ./libtool: line 654: func_usage_message: command not found
| ./libtool: line 1086: func_add_hook: command not found
| ./libtool: line 1091: func_options: command not found
| ./libtool: line 654: func_usage_message: command not found

I am not able to understand what the problem is. Any help is appreciated.
I have attached the log file.
log.do_install.1917516 (66.6 KB)

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello,

I’m sorry to hear you’re having trouble with the libtool build failure while working on the Kirkstone image for your Toradex Verdin iMX8MP module. Here are some steps you can take to troubleshoot and resolve this issue:

  1. Check Dependencies: Ensure all necessary build dependencies are installed on your host system. Missing dependencies can often lead to build failures. You can refer to the Yocto Project documentation for a list of required packages.

  2. Environment Setup: Verify that your build environment is correctly set up. This includes sourcing the appropriate environment setup script provided by the Yocto build system and ensuring your shell environment variables are correctly configured.

  3. Clean the Build: Sometimes, artifacts from previous builds can cause issues. Try cleaning the build by running bitbake -c clean libtool-native and then attempt the build again with bitbake tdx-reference-multimedia-image.

  4. Check for Patches: Look for any patches or updates related to libtool in the meta-layers you are using. Known issues are sometimes addressed in newer patches or updates.

  5. Review Logs: Examine the detailed log file mentioned in the error message (log.do_install.1870950). This file can provide more specific information about what went wrong during the installation phase of libtool.

  6. Layer Compatibility: Ensure that all the layers you are using are compatible with the Kirkstone release. Incompatibilities between layers can lead to build issues.

By following these steps, you should be able to identify and resolve the issue causing the libtool build failure. If the problem persists, consider isolating the issue by building libtool-native separately to see if the error is specific to that component.

I hope this helps! If you have any more questions, feel free to ask.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

https://community.nxp.com/t5/i-MX-Processors/Connman-do-install-error/m-p/1711654.

Hi @rajtendulkar

Just to make sure, are you trying to build the vanilla (without any modification) lastest BSP 6 reference multimedia image for the verdin imx8mp?

This is the first time you are building an image using Yocto?

  • Have you checked the Yocto build dependencies?
1 Like

Hi,

I am able to resolve the issue.
In my setup, DL_DIR, TMPDIR and SSTATE_DIR were symlinks to another disk.
Libtool had problems on changing folder to those symlinks.
I removed the symlinks and replaced with direct path, the problem was resolved.

Thank you!