unable to populate toolchain with multilib feature in yocto

356 views
Skip to first unread message

soujanya kothamasu

unread,
Sep 3, 2021, 9:00:49 PM9/3/21
to inside...@googlegroups.com
Hello Everyone,
I am working on yocto build system, for NXP chipset
so first i am trying to install toolchain (i.e. populate_sdk) , i need to enable multilib feature :
modified conf/local.conf as below :

 require conf/multilib.conf
 MULTILIBS = "multilib:lib32"
 DEFAULTTUNE_virtclass-multilib-lib32 = "ppce6500"
 INHERIT += "buildhistory"
BBCLASSEXTEND =+ "multilib:ppce6500"

But while doing "bitbake fsl-toolchain -c do_populate_sdk" all lib32 packages arent being able to populate to SDK and i see the below error :

ERROR: lib32-libsasl2-3 not found in the base feeds (b4860qds_64b ppc64e6500 powerpc64 noarch any all).

Any suggestions plz.

--
Regards
Soujanya

Anil Kumar Pugalia

unread,
Sep 6, 2021, 1:42:33 AM9/6/21
to inside...@googlegroups.com

Check the recipe for lib32-libsasl2-3, and multilib.conf for the proper dependencies.

Regards
Anil
Passion: http://sysplay.in (Playing with Systems)
soujanya kothamasu wrote on 04/09/21 6:30 am:
--
You received this message because you are subscribed to the Google Groups "SysPlay's Inside Linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to inside_linux...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/inside_linux/CALUiy%2BSLYrysf%2BJT9vswv_f9e3LJ_mBUdzW800TrRr6qKMEoUQ%40mail.gmail.com.

soujanya kothamasu

unread,
Sep 6, 2021, 3:55:12 AM9/6/21
to inside...@googlegroups.com
Thanks Anil.
I am unable to locate libsasl bitbake file, also in multilib.conf i see the following details , but nothing in specific to 
cat  ./poky/meta/conf/multilib.conf

baselib = "${@d.getVar('BASE_LIB_tune-' + (d.getVar('DEFAULTTUNE', True) or 'INVALID'), True) or d.getVar('BASELIB', True)}"

MULTILIB_VARIANTS = "${@extend_variants(d,'MULTILIBS','multilib')}"
MULTILIB_SAVE_VARNAME = "DEFAULTTUNE TARGET_ARCH TARGET_SYS TARGET_VENDOR"

MULTILIBS ??= "multilib:lib32"

STAGING_DIR_HOST = "${STAGING_DIR}/${MLPREFIX}${MACHINE}"
STAGING_DIR_TARGET = "${STAGING_DIR}/${MLPREFIX}${MACHINE}"
PKGDATA_DIR = "${STAGING_DIR}/${MACHINE}/pkgdata"

INHERIT += "multilib_global"

BBCLASSEXTEND_append = " ${MULTILIBS}"

MULTILIB_GLOBAL_VARIANTS ?= "lib32 lib64 libx32"

OPKG_ARGS_append = " --force-maintainer --force-overwrite"

# When multilib is enabled, allarch recipes will be installed into the MACHINE
# sysroot, not MLPREFIXMACHINE.  This means that anything using pkg-config to
# find an allarch pkgconfig file will fail as the PKG_CONFIG_PATH only looks
# inside the multilib sysroot.  Fix this by explicitly adding the MACHINE's
# architecture-independent pkgconfig location to PKG_CONFIG_PATH.
PKG_CONFIG_PATH .= ":${STAGING_DIR}/${MACHINE}${datadir}/pkgconfig"
PKG_CONFIG_PATH[vardepsexclude] = "MACHINE"


I am still stuck with the same error .

ERROR: lib32-libsasl2-3 not found in the base feeds (b4860qds_64b ppc64e6500 powerpc64 noarch any all).

Thanks,
Soujanya 



--
Regards
Soujanya

Anil Kumar Pugalia

unread,
Sep 6, 2021, 5:22:24 AM9/6/21
to inside...@googlegroups.com

You'll have to figure out, as where is it getting triggered from. May be a grep may help, and then around that do some google searches.

Regards
Anil
Passion: http://sysplay.in (Playing with Systems)
soujanya kothamasu wrote on 06/09/21 1:24 pm:

soujanya kothamasu

unread,
Sep 6, 2021, 6:28:45 AM9/6/21
to inside...@googlegroups.com
Hello Anil,
In my fsl-toolhcain.bb file , i have removed cyrus-sasl package and added ethtool as i need ethtool 

And I have added the following packages in fsl-toolchain.bb file :

 

TOOLCHAIN_TARGET_TASK += " \

              ethtool \

              lib32-ethtool \

\


 I added the below line in ethtool_4.0.bb file :

ALLOW_EMPTY_${PN} = "1"


Now again when I try to build toolchain I get this below error :

NOTE: Not found lib32-ethtool by name, searching provides ...
NOTE: cmd: /home /QorIQ-SDK-V2.0-20160527-yocto/build_b4860qds-64b/tmp/sysroots/i686-linux/usr/bin/smart --log-level=warning --data-dir=/home/QorIQ-SDK-V2.0-20160527-yocto/build_b4860qds-64b/tmp/work/ppc64e6500-fsl-linux/fsl-toolchain/1.0-r7/sdk/image/opt/fsl-qoriq/2.0/sysroots/ppc64e6500-fsl-linux/var/lib/smart query --provides lib32-ethtool --show-format='$name-$version' | sed -ne 's/ *Provides://p'

ERROR: lib32-ethtool not found in the base feeds (b4860qds_64b ppc64e6500 powerpc64 noarch any all).


Please let me know if i am doing anything wrong.


Thanks,

Soujanya




Anil Kumar Pugalia

unread,
Sep 6, 2021, 8:15:17 AM9/6/21
to inside...@googlegroups.com

Whatever name you are putting, are you checking that there exists a recipe for it?

Regards
Anil
Passion: http://sysplay.in (Playing with Systems)
soujanya kothamasu wrote on 06/09/21 3:58 pm:

soujanya kothamasu

unread,
Sep 7, 2021, 1:33:19 AM9/7/21
to inside...@googlegroups.com
Hello Anil,
Yes there is a recipe for ethtool - ./poky/meta/recipes-extended/ethtool/ethtool_4.0.bb.
SUMMARY = "Display or change ethernet card settings"
DESCRIPTION = "A small utility for examining and tuning the settings of your ethernet-based network interfaces."
HOMEPAGE = "http://www.kernel.org/pub/software/network/ethtool/"
SECTION = "console/network"
LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
                    file://ethtool.c;beginline=4;endline=17;md5=c19b30548c582577fc6b443626fc1216"

SRC_URI = "${KERNELORG_MIRROR}/software/network/ethtool/ethtool-${PV}.tar.gz \
           file://run-ptest \
           file://avoid_parallel_tests.patch \
           "

SRC_URI[md5sum] = "0a1c78787c7dcf077016ed86372a472f"
SRC_URI[sha256sum] = "e200516727cc9583e8b63fd6e72f667f9ed41bb4f0577ff4803b60c64cfd1dbc"

inherit autotools ptest
RDEPENDS_${PN}-ptest += "make"

do_compile_ptest() {
   oe_runmake buildtest-TESTS
}

do_install_ptest () {
   cp ${B}/Makefile                 ${D}${PTEST_PATH}
   install ${B}/test-cmdline        ${D}${PTEST_PATH}
   install ${B}/test-features       ${D}${PTEST_PATH}
   install ${B}/ethtool             ${D}${PTEST_PATH}/ethtool
   sed -i 's/^Makefile/_Makefile/'  ${D}${PTEST_PATH}/Makefile
}

ALLOW_EMPTY_${PN} = "1"

I have added the above entry to get rid of the error : 
ERROR: lib32-libsasl2-3 not found in the base feeds (b4860qds_64b ppc64e6500 powerpc64 noarch any all).





--
Regards
Soujanya
Reply all
Reply to author
Forward
0 new messages