* Re: multilib32: libtool-cross_2.4.6.bb configure failure [not found] <169A373D601F14AC.28384@lists.yoctoproject.org> @ 2021-08-11 13:41 ` Geller, Nir [not found] ` <169A44490E3AA64A.29477@lists.yoctoproject.org> 1 sibling, 0 replies; 4+ messages in thread From: Geller, Nir @ 2021-08-11 13:41 UTC (permalink / raw) To: yocto [-- Attachment #1: Type: text/plain, Size: 9051 bytes --] Investigating run.do_configure suggests that in the configure stage oe_runconf() is set with what seems to be wrong -host and -target values: --host=armmllib32-linux-gnueabi --target=armmllib32-linux-gnueabi How can I influence oe_runconf() generation and set correct values? From: yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> On Behalf Of Geller, Nir Sent: Wednesday, August 11, 2021 12:42 PM To: yocto@lists.yoctoproject.org Subject: [yocto] multilib32: libtool-cross_2.4.6.bb configure failure Hi There, Following the instruction from TI https://software-dl.ti.com/processor-sdk-linux-rt/esd/AM64X/latest/exports/docs/linux/Overview_Building_the_SDK.html I've setup a yocto project for the AM64x. Toolchain used is 9.2-2019.12 Now I need to add support for multilib32 because I have some software that can be compiled only 32 bit. I added the following lines to conf/local.conf # Define multilib target require conf/multilib.conf MULTILIBS = "multilib:lib32" DEFAULTTUNE_virtclass-multilib-lib32 = "armv7athf-neon" And I am able to build a few packges with lib32- successfully, however, lib32-libtool-cross fails at the configure stage: --host is set to the value armmllib32-linux-gnueabi ERROR: lib32-libtool-cross-2.4.6-r0 do_configure: configure failed ERROR: lib32-libtool-cross-2.4.6-r0 do_configure: Execution of '/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/temp/run.do_configure.29261' failed with exit code 1: automake (GNU automake) 1.16.1 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later <https://gnu.org/licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Tom Tromey <tromey@redhat.com<mailto:tromey@redhat.com>> and Alexandre Duret-Lutz <adl@gnu.org<mailto:adl@gnu.org>>. AUTOV is 1.16 autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --system-acdir=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot/usr/share/aclocal/ --automake-acdir=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/share/aclocal-1.16 -I /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/m4/ -I /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/tests/ -I /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/share/aclocal/ --force --warnings=cross -I m4 aclocal: warning: unknown warning category 'cross' autoreconf: configure.ac: tracing autoreconf: running: /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/bin/autoconf --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/m4/ --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/tests/ --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/share/aclocal/ --force --warnings=cross autoreconf: running: /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/bin/autoheader --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/m4/ --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/tests/ --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/share/aclocal/ --force --warnings=cross autoreconf: running: automake --add-missing --copy --force-missing --warnings=cross automake: warning: unknown warning category 'cross' autoreconf: running: gnu-configize autoreconf: Leaving directory `.' | NOTE: Running ../libtool-2.4.6/configure --build=x86_64-linux --host=armmllib32-linux-gnueabi --target=armmllib32-linux-gnueabi --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include --infodir=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot/usr/share/info --mandir=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot configure: loading site script /home/build/tisdk/sources/meta-openembedded/meta-networking/site/endian-little configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/endian-little configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/arm-common configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/arm-32 configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/common-linux configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/common-glibc configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/arm-linux configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/common ## ------------------------- ## ## Configuring libtool 2.4.6 ## ## ------------------------- ## checking for GNU M4 that supports accurate traces... /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/bin/m4 checking whether /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/bin/m4 accepts --gnu... yes checking how m4 supports trace files... --debugfile checking for a BSD-compatible install... /home/build/tisdk/build/arago-tmp-external-arm-glibc/hosttools/install -c checking whether build environment is sane... yes checking for armmllib32-linux-gnueabi-strip... arm-none-linux-gnueabihf-strip checking for a thread-safe mkdir -p... /home/build/tisdk/build/arago-tmp-external-arm-glibc/hosttools/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking build system type... x86_64-pc-linux-gnu checking host system type... Invalid configuration `armmllib32-linux-gnueabi': machine `armmllib32-unknown' not recognized configure: error: /bin/bash ../libtool-2.4.6/build-aux/config.sub armmllib32-linux-gnueabi failed WARNING: /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/temp/run.do_configure.29261:1 exit 1 from 'exit 1' ERROR: Logfile of failure stored in: /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/temp/log.do_configure.29261 Manually running the configure command with -host=arm-none-linux-gnueabihf is working properly. How can I fix the recipe to set -host correctly in this case? Thanks a lot, Nir. [-- Attachment #2: Type: text/html, Size: 16838 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <169A44490E3AA64A.29477@lists.yoctoproject.org>]
* Re: [yocto] multilib32: libtool-cross_2.4.6.bb configure failure [not found] ` <169A44490E3AA64A.29477@lists.yoctoproject.org> @ 2021-08-11 14:03 ` Geller, Nir [not found] ` <169A457CA9F8C7BB.28384@lists.yoctoproject.org> 1 sibling, 0 replies; 4+ messages in thread From: Geller, Nir @ 2021-08-11 14:03 UTC (permalink / raw) To: Geller, Nir, yocto [-- Attachment #1: Type: text/plain, Size: 9547 bytes --] The variable SYS_HOST is expanded to armmllib32-linux-gnueabi Shouldn't it be expanded to arm-none-linux-gnueabihf ? Thanks, Nir. From: yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> On Behalf Of Geller, Nir Sent: Wednesday, August 11, 2021 4:41 PM To: yocto@lists.yoctoproject.org Subject: Re: [yocto] multilib32: libtool-cross_2.4.6.bb configure failure Investigating run.do_configure suggests that in the configure stage oe_runconf() is set with what seems to be wrong -host and -target values: --host=armmllib32-linux-gnueabi --target=armmllib32-linux-gnueabi How can I influence oe_runconf() generation and set correct values? From: yocto@lists.yoctoproject.org<mailto:yocto@lists.yoctoproject.org> <yocto@lists.yoctoproject.org<mailto:yocto@lists.yoctoproject.org>> On Behalf Of Geller, Nir Sent: Wednesday, August 11, 2021 12:42 PM To: yocto@lists.yoctoproject.org<mailto:yocto@lists.yoctoproject.org> Subject: [yocto] multilib32: libtool-cross_2.4.6.bb configure failure Hi There, Following the instruction from TI https://software-dl.ti.com/processor-sdk-linux-rt/esd/AM64X/latest/exports/docs/linux/Overview_Building_the_SDK.html I've setup a yocto project for the AM64x. Toolchain used is 9.2-2019.12 Now I need to add support for multilib32 because I have some software that can be compiled only 32 bit. I added the following lines to conf/local.conf # Define multilib target require conf/multilib.conf MULTILIBS = "multilib:lib32" DEFAULTTUNE_virtclass-multilib-lib32 = "armv7athf-neon" And I am able to build a few packges with lib32- successfully, however, lib32-libtool-cross fails at the configure stage: --host is set to the value armmllib32-linux-gnueabi ERROR: lib32-libtool-cross-2.4.6-r0 do_configure: configure failed ERROR: lib32-libtool-cross-2.4.6-r0 do_configure: Execution of '/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/temp/run.do_configure.29261' failed with exit code 1: automake (GNU automake) 1.16.1 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later <https://gnu.org/licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Tom Tromey <tromey@redhat.com<mailto:tromey@redhat.com>> and Alexandre Duret-Lutz <adl@gnu.org<mailto:adl@gnu.org>>. AUTOV is 1.16 autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --system-acdir=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot/usr/share/aclocal/ --automake-acdir=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/share/aclocal-1.16 -I /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/m4/ -I /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/tests/ -I /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/share/aclocal/ --force --warnings=cross -I m4 aclocal: warning: unknown warning category 'cross' autoreconf: configure.ac: tracing autoreconf: running: /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/bin/autoconf --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/m4/ --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/tests/ --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/share/aclocal/ --force --warnings=cross autoreconf: running: /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/bin/autoheader --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/m4/ --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/tests/ --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/share/aclocal/ --force --warnings=cross autoreconf: running: automake --add-missing --copy --force-missing --warnings=cross automake: warning: unknown warning category 'cross' autoreconf: running: gnu-configize autoreconf: Leaving directory `.' | NOTE: Running ../libtool-2.4.6/configure --build=x86_64-linux --host=armmllib32-linux-gnueabi --target=armmllib32-linux-gnueabi --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include --infodir=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot/usr/share/info --mandir=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot configure: loading site script /home/build/tisdk/sources/meta-openembedded/meta-networking/site/endian-little configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/endian-little configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/arm-common configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/arm-32 configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/common-linux configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/common-glibc configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/arm-linux configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/common ## ------------------------- ## ## Configuring libtool 2.4.6 ## ## ------------------------- ## checking for GNU M4 that supports accurate traces... /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/bin/m4 checking whether /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/bin/m4 accepts --gnu... yes checking how m4 supports trace files... --debugfile checking for a BSD-compatible install... /home/build/tisdk/build/arago-tmp-external-arm-glibc/hosttools/install -c checking whether build environment is sane... yes checking for armmllib32-linux-gnueabi-strip... arm-none-linux-gnueabihf-strip checking for a thread-safe mkdir -p... /home/build/tisdk/build/arago-tmp-external-arm-glibc/hosttools/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking build system type... x86_64-pc-linux-gnu checking host system type... Invalid configuration `armmllib32-linux-gnueabi': machine `armmllib32-unknown' not recognized configure: error: /bin/bash ../libtool-2.4.6/build-aux/config.sub armmllib32-linux-gnueabi failed WARNING: /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/temp/run.do_configure.29261:1 exit 1 from 'exit 1' ERROR: Logfile of failure stored in: /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/temp/log.do_configure.29261 Manually running the configure command with -host=arm-none-linux-gnueabihf is working properly. How can I fix the recipe to set -host correctly in this case? Thanks a lot, Nir. [-- Attachment #2: Type: text/html, Size: 17888 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <169A457CA9F8C7BB.28384@lists.yoctoproject.org>]
* Re: [yocto] multilib32: libtool-cross_2.4.6.bb configure failure [not found] ` <169A457CA9F8C7BB.28384@lists.yoctoproject.org> @ 2021-08-11 15:39 ` Geller, Nir [not found] ` <169A4ABC156F9D6A.29477@lists.yoctoproject.org> 1 sibling, 0 replies; 4+ messages in thread From: Geller, Nir @ 2021-08-11 15:39 UTC (permalink / raw) To: yocto [-- Attachment #1: Type: text/plain, Size: 10798 bytes --] Executing bitbake lib32-libtool-cross -e Yields, among many others, 18513 # $TARGET_VENDOR [3 operations] 18514 # set /home/build/tisdk/sources/oe-core/meta/conf/bitbake.conf:132 18515 # "-oe" 18516 # set /home/build/tisdk/sources/meta-arago/meta-arago-distro/conf/distro/include/toolchain-arm.inc:15 18517 # "" 18518 # override[virtclass-multilib-lib32]:set multilib_global.bbclass:159 [multilib_virtclass_handler_vendor] 18519 # "mllib32" 18520 # pre-expansion value: 18521 # "mllib32" 18522 TARGET_VENDOR="mllib32" Later, HOST_VENDOR = "${TARGET_VENDOR}", And HOST_SYS = "${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}" Ok. So either these variables are calculated incorrectly, or the libtool-cross recipe needs to be fixed in order to support multilib properly. Can anyone please assist? Thanks, Nir. From: yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> On Behalf Of Geller, Nir Sent: Wednesday, August 11, 2021 5:03 PM To: Geller, Nir <nir.geller@servotronix.com>; yocto@lists.yoctoproject.org Subject: Re: [yocto] multilib32: libtool-cross_2.4.6.bb configure failure The variable SYS_HOST is expanded to armmllib32-linux-gnueabi Shouldn't it be expanded to arm-none-linux-gnueabihf ? Thanks, Nir. From: yocto@lists.yoctoproject.org<mailto:yocto@lists.yoctoproject.org> <yocto@lists.yoctoproject.org<mailto:yocto@lists.yoctoproject.org>> On Behalf Of Geller, Nir Sent: Wednesday, August 11, 2021 4:41 PM To: yocto@lists.yoctoproject.org<mailto:yocto@lists.yoctoproject.org> Subject: Re: [yocto] multilib32: libtool-cross_2.4.6.bb configure failure Investigating run.do_configure suggests that in the configure stage oe_runconf() is set with what seems to be wrong -host and -target values: --host=armmllib32-linux-gnueabi --target=armmllib32-linux-gnueabi How can I influence oe_runconf() generation and set correct values? From: yocto@lists.yoctoproject.org<mailto:yocto@lists.yoctoproject.org> <yocto@lists.yoctoproject.org<mailto:yocto@lists.yoctoproject.org>> On Behalf Of Geller, Nir Sent: Wednesday, August 11, 2021 12:42 PM To: yocto@lists.yoctoproject.org<mailto:yocto@lists.yoctoproject.org> Subject: [yocto] multilib32: libtool-cross_2.4.6.bb configure failure Hi There, Following the instruction from TI https://software-dl.ti.com/processor-sdk-linux-rt/esd/AM64X/latest/exports/docs/linux/Overview_Building_the_SDK.html I've setup a yocto project for the AM64x. Toolchain used is 9.2-2019.12 Now I need to add support for multilib32 because I have some software that can be compiled only 32 bit. I added the following lines to conf/local.conf # Define multilib target require conf/multilib.conf MULTILIBS = "multilib:lib32" DEFAULTTUNE_virtclass-multilib-lib32 = "armv7athf-neon" And I am able to build a few packges with lib32- successfully, however, lib32-libtool-cross fails at the configure stage: --host is set to the value armmllib32-linux-gnueabi ERROR: lib32-libtool-cross-2.4.6-r0 do_configure: configure failed ERROR: lib32-libtool-cross-2.4.6-r0 do_configure: Execution of '/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/temp/run.do_configure.29261' failed with exit code 1: automake (GNU automake) 1.16.1 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later <https://gnu.org/licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Tom Tromey <tromey@redhat.com<mailto:tromey@redhat.com>> and Alexandre Duret-Lutz <adl@gnu.org<mailto:adl@gnu.org>>. AUTOV is 1.16 autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --system-acdir=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot/usr/share/aclocal/ --automake-acdir=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/share/aclocal-1.16 -I /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/m4/ -I /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/tests/ -I /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/share/aclocal/ --force --warnings=cross -I m4 aclocal: warning: unknown warning category 'cross' autoreconf: configure.ac: tracing autoreconf: running: /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/bin/autoconf --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/m4/ --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/tests/ --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/share/aclocal/ --force --warnings=cross autoreconf: running: /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/bin/autoheader --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/m4/ --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/tests/ --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/share/aclocal/ --force --warnings=cross autoreconf: running: automake --add-missing --copy --force-missing --warnings=cross automake: warning: unknown warning category 'cross' autoreconf: running: gnu-configize autoreconf: Leaving directory `.' | NOTE: Running ../libtool-2.4.6/configure --build=x86_64-linux --host=armmllib32-linux-gnueabi --target=armmllib32-linux-gnueabi --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include --infodir=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot/usr/share/info --mandir=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot configure: loading site script /home/build/tisdk/sources/meta-openembedded/meta-networking/site/endian-little configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/endian-little configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/arm-common configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/arm-32 configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/common-linux configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/common-glibc configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/arm-linux configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/common ## ------------------------- ## ## Configuring libtool 2.4.6 ## ## ------------------------- ## checking for GNU M4 that supports accurate traces... /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/bin/m4 checking whether /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/bin/m4 accepts --gnu... yes checking how m4 supports trace files... --debugfile checking for a BSD-compatible install... /home/build/tisdk/build/arago-tmp-external-arm-glibc/hosttools/install -c checking whether build environment is sane... yes checking for armmllib32-linux-gnueabi-strip... arm-none-linux-gnueabihf-strip checking for a thread-safe mkdir -p... /home/build/tisdk/build/arago-tmp-external-arm-glibc/hosttools/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking build system type... x86_64-pc-linux-gnu checking host system type... Invalid configuration `armmllib32-linux-gnueabi': machine `armmllib32-unknown' not recognized configure: error: /bin/bash ../libtool-2.4.6/build-aux/config.sub armmllib32-linux-gnueabi failed WARNING: /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/temp/run.do_configure.29261:1 exit 1 from 'exit 1' ERROR: Logfile of failure stored in: /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/temp/log.do_configure.29261 Manually running the configure command with -host=arm-none-linux-gnueabihf is working properly. How can I fix the recipe to set -host correctly in this case? Thanks a lot, Nir. [-- Attachment #2: Type: text/html, Size: 20656 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <169A4ABC156F9D6A.29477@lists.yoctoproject.org>]
* Re: [yocto] multilib32: libtool-cross_2.4.6.bb configure failure [not found] ` <169A4ABC156F9D6A.29477@lists.yoctoproject.org> @ 2021-08-18 6:13 ` Geller, Nir 0 siblings, 0 replies; 4+ messages in thread From: Geller, Nir @ 2021-08-18 6:13 UTC (permalink / raw) To: yocto [-- Attachment #1: Type: text/plain, Size: 11268 bytes --] Hi, Any help on this topic would be much appreciated. Thanks, Nir. From: yocto@lists.yoctoproject.org <yocto@lists.yoctoproject.org> On Behalf Of Geller, Nir Sent: Wednesday, August 11, 2021 6:40 PM To: yocto@lists.yoctoproject.org Subject: Re: [yocto] multilib32: libtool-cross_2.4.6.bb configure failure Executing bitbake lib32-libtool-cross -e Yields, among many others, 18513 # $TARGET_VENDOR [3 operations] 18514 # set /home/build/tisdk/sources/oe-core/meta/conf/bitbake.conf:132 18515 # "-oe" 18516 # set /home/build/tisdk/sources/meta-arago/meta-arago-distro/conf/distro/include/toolchain-arm.inc:15 18517 # "" 18518 # override[virtclass-multilib-lib32]:set multilib_global.bbclass:159 [multilib_virtclass_handler_vendor] 18519 # "mllib32" 18520 # pre-expansion value: 18521 # "mllib32" 18522 TARGET_VENDOR="mllib32" Later, HOST_VENDOR = "${TARGET_VENDOR}", And HOST_SYS = "${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}" Ok. So either these variables are calculated incorrectly, or the libtool-cross recipe needs to be fixed in order to support multilib properly. Can anyone please assist? Thanks, Nir. From: yocto@lists.yoctoproject.org<mailto:yocto@lists.yoctoproject.org> <yocto@lists.yoctoproject.org<mailto:yocto@lists.yoctoproject.org>> On Behalf Of Geller, Nir Sent: Wednesday, August 11, 2021 5:03 PM To: Geller, Nir <nir.geller@servotronix.com<mailto:nir.geller@servotronix.com>>; yocto@lists.yoctoproject.org<mailto:yocto@lists.yoctoproject.org> Subject: Re: [yocto] multilib32: libtool-cross_2.4.6.bb configure failure The variable SYS_HOST is expanded to armmllib32-linux-gnueabi Shouldn't it be expanded to arm-none-linux-gnueabihf ? Thanks, Nir. From: yocto@lists.yoctoproject.org<mailto:yocto@lists.yoctoproject.org> <yocto@lists.yoctoproject.org<mailto:yocto@lists.yoctoproject.org>> On Behalf Of Geller, Nir Sent: Wednesday, August 11, 2021 4:41 PM To: yocto@lists.yoctoproject.org<mailto:yocto@lists.yoctoproject.org> Subject: Re: [yocto] multilib32: libtool-cross_2.4.6.bb configure failure Investigating run.do_configure suggests that in the configure stage oe_runconf() is set with what seems to be wrong -host and -target values: --host=armmllib32-linux-gnueabi --target=armmllib32-linux-gnueabi How can I influence oe_runconf() generation and set correct values? From: yocto@lists.yoctoproject.org<mailto:yocto@lists.yoctoproject.org> <yocto@lists.yoctoproject.org<mailto:yocto@lists.yoctoproject.org>> On Behalf Of Geller, Nir Sent: Wednesday, August 11, 2021 12:42 PM To: yocto@lists.yoctoproject.org<mailto:yocto@lists.yoctoproject.org> Subject: [yocto] multilib32: libtool-cross_2.4.6.bb configure failure Hi There, Following the instruction from TI https://software-dl.ti.com/processor-sdk-linux-rt/esd/AM64X/latest/exports/docs/linux/Overview_Building_the_SDK.html I've setup a yocto project for the AM64x. Toolchain used is 9.2-2019.12 Now I need to add support for multilib32 because I have some software that can be compiled only 32 bit. I added the following lines to conf/local.conf # Define multilib target require conf/multilib.conf MULTILIBS = "multilib:lib32" DEFAULTTUNE_virtclass-multilib-lib32 = "armv7athf-neon" And I am able to build a few packges with lib32- successfully, however, lib32-libtool-cross fails at the configure stage: --host is set to the value armmllib32-linux-gnueabi ERROR: lib32-libtool-cross-2.4.6-r0 do_configure: configure failed ERROR: lib32-libtool-cross-2.4.6-r0 do_configure: Execution of '/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/temp/run.do_configure.29261' failed with exit code 1: automake (GNU automake) 1.16.1 Copyright (C) 2018 Free Software Foundation, Inc. License GPLv2+: GNU GPL version 2 or later <https://gnu.org/licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Tom Tromey <tromey@redhat.com<mailto:tromey@redhat.com>> and Alexandre Duret-Lutz <adl@gnu.org<mailto:adl@gnu.org>>. AUTOV is 1.16 autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --system-acdir=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot/usr/share/aclocal/ --automake-acdir=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/share/aclocal-1.16 -I /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/m4/ -I /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/tests/ -I /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/share/aclocal/ --force --warnings=cross -I m4 aclocal: warning: unknown warning category 'cross' autoreconf: configure.ac: tracing autoreconf: running: /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/bin/autoconf --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/m4/ --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/tests/ --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/share/aclocal/ --force --warnings=cross autoreconf: running: /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/bin/autoheader --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/m4/ --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/libtool-2.4.6/tests/ --include=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/share/aclocal/ --force --warnings=cross autoreconf: running: automake --add-missing --copy --force-missing --warnings=cross automake: warning: unknown warning category 'cross' autoreconf: running: gnu-configize autoreconf: Leaving directory `.' | NOTE: Running ../libtool-2.4.6/configure --build=x86_64-linux --host=armmllib32-linux-gnueabi --target=armmllib32-linux-gnueabi --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include --infodir=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot/usr/share/info --mandir=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/lib32-recipe-sysroot configure: loading site script /home/build/tisdk/sources/meta-openembedded/meta-networking/site/endian-little configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/endian-little configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/arm-common configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/arm-32 configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/common-linux configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/common-glibc configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/arm-linux configure: loading site script /home/build/tisdk/sources/oe-core/meta/site/common ## ------------------------- ## ## Configuring libtool 2.4.6 ## ## ------------------------- ## checking for GNU M4 that supports accurate traces... /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/bin/m4 checking whether /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/recipe-sysroot-native/usr/bin/m4 accepts --gnu... yes checking how m4 supports trace files... --debugfile checking for a BSD-compatible install... /home/build/tisdk/build/arago-tmp-external-arm-glibc/hosttools/install -c checking whether build environment is sane... yes checking for armmllib32-linux-gnueabi-strip... arm-none-linux-gnueabihf-strip checking for a thread-safe mkdir -p... /home/build/tisdk/build/arago-tmp-external-arm-glibc/hosttools/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking build system type... x86_64-pc-linux-gnu checking host system type... Invalid configuration `armmllib32-linux-gnueabi': machine `armmllib32-unknown' not recognized configure: error: /bin/bash ../libtool-2.4.6/build-aux/config.sub armmllib32-linux-gnueabi failed WARNING: /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/temp/run.do_configure.29261:1 exit 1 from 'exit 1' ERROR: Logfile of failure stored in: /home/build/tisdk/build/arago-tmp-external-arm-glibc/work/armv7at2hf-neonmllib32-linux-gnueabi/lib32-libtool-cross/2.4.6-r0/temp/log.do_configure.29261 Manually running the configure command with -host=arm-none-linux-gnueabihf is working properly. How can I fix the recipe to set -host correctly in this case? Thanks a lot, Nir. [-- Attachment #2: Type: text/html, Size: 21730 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-08-18 6:13 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <169A373D601F14AC.28384@lists.yoctoproject.org> 2021-08-11 13:41 ` multilib32: libtool-cross_2.4.6.bb configure failure Geller, Nir [not found] ` <169A44490E3AA64A.29477@lists.yoctoproject.org> 2021-08-11 14:03 ` [yocto] " Geller, Nir [not found] ` <169A457CA9F8C7BB.28384@lists.yoctoproject.org> 2021-08-11 15:39 ` Geller, Nir [not found] ` <169A4ABC156F9D6A.29477@lists.yoctoproject.org> 2021-08-18 6:13 ` Geller, Nir
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.