Hi,
I was trying to install the buildtools by using the scripts/install-buildtools script, however the call fails. The issue I found seems a bit weird, as IMHO the script would always fail, hence I am not sure whether it's really an issue or I am misusing the script. Anyway, I am using the script from the openembedded-core - OpenEmbedded Core layer repository, commit 41390f52.
The command executed:
./scripts/install-buildtools --debug --without-extended-buildtools --directory ./build-tools --base-url https://downloads.yoctoproject.org/releases/yocto --release yocto-4.0.14 --installer-version 4.0.14The command fails and its output is given in [1].
[2]DEBUG: milestone regex: NoneINFO: Fetching buildtools installerINFO: Fetching buildtools installer checksumDEBUG: checksum regex match: <re.Match object; span=(0, 113), match='62e811c2f1a91f6d2d5e07ee3031af9bff58c15f515ff5968>DEBUG: checksum: 62e811c2f1a91f6d2d5e07ee3031af9bff58c15f515ff59688bf39f1f8a4341dDEBUG: path: NoneDEBUG: filename: x86_64-buildtools-nativesdk-standalone-4.0.14.shINFO: Checksum successINFO: Making installer executableDEBUG: os.stat_result(st_mode=33252, st_ino=2376165, st_dev=2080, st_nlink=1, st_uid=1000, st_gid=1000, st_size=29509071, st_atime=1702587153, st_mtime=1699048064, st_ctime=1702587153)Build tools installer version 4.0.14====================================You are about to install the SDK to "/home/anikolic/git/openembedded-core/build-tools". Proceed [Y/n]? YExtracting SDK...........doneSetting it up...doneSDK has been successfully set up and is ready to be used.Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.$ . /home/anikolic/git/openembedded-core/build-tools/environment-setup-x86_64-pokysdk-linuxINFO: Setting up the environmentDEBUG: export regex: <re.Match object; span=(0, 361), match='export PATH="/home/anikolic/git/openembedded-core>DEBUG: env_var: PATHDEBUG: env_val: "/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux/usr/bin:/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux/usr/sbin:/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux/bin:/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux/sbin:$PATH"DEBUG: export regex: <re.Match object; span=(0, 109), match='export OECORE_NATIVE_SYSROOT="/home/anikolic/git/>DEBUG: env_var: OECORE_NATIVE_SYSROOTDEBUG: env_val: "/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux"DEBUG: export regex: <re.Match object; span=(0, 136), match='export GIT_SSL_CAINFO="/home/anikolic/git/openemb>DEBUG: env_var: GIT_SSL_CAINFODEBUG: env_val: "/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt"DEBUG: export regex: <re.Match object; span=(0, 135), match='export SSL_CERT_FILE="/home/anikolic/git/openembe>DEBUG: env_var: SSL_CERT_FILEDEBUG: env_val: "/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt"DEBUG: export regex: <re.Match object; span=(0, 140), match='export REQUESTS_CA_BUNDLE="/home/anikolic/git/ope>DEBUG: env_var: REQUESTS_CA_BUNDLEDEBUG: env_val: "/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt"DEBUG: export regex: <re.Match object; span=(0, 136), match='export CURL_CA_BUNDLE="/home/anikolic/git/openemb>DEBUG: env_var: CURL_CA_BUNDLEDEBUG: env_val: "/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt"DEBUG: export regex: <re.Match object; span=(0, 80), match='HOST_PKG_PATH=$(command -p pkg-config --variable=>DEBUG: env_var: HOST_PKG_PATHDEBUG: env_val: $(command -p pkg-config --variable=pc_path pkg-config 2>/dev/null)DEBUG: export regex: <re.Match object; span=(0, 280), match='export PKG_CONFIG_LIBDIR=/home/anikolic/git/opene>DEBUG: env_var: PKG_CONFIG_LIBDIRDEBUG: env_val: /home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux//usr/lib/pkgconfig:/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux//usr/share/pkgconfig:${HOST_PKG_PATH:-/usr/lib/pkgconfig:/usr/share/pkgconfig}DEBUG: export regex: NoneDEBUG: export regex: NoneDEBUG: export regex: NoneDEBUG: export regex: NoneDEBUG: export regex: NoneDEBUG: export regex: NoneDEBUG: export regex: NoneDEBUG: export regex: NoneINFO: Testing installationDEBUG: extended regex: NoneDEBUG: install_dir: ./build-toolsDEBUG: cmd: ['/usr/bin/which', 'tar']DEBUG: tool: tarDEBUG: proc.args: ['/usr/bin/which', 'tar']DEBUG: proc.communicate(): output b''DEBUG: proc.communicate(): errors NoneDEBUG: which tar:ERROR: Something went wrong: tar not found in ./build-toolsERROR: Something went wrong: installation failed
export PATH="/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux/usr/bin:/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux/usr/sbin:/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux/bin:/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux/sbin:$PATH"export OECORE_NATIVE_SYSROOT="/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux"export GIT_SSL_CAINFO="/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt"export SSL_CERT_FILE="/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt"export REQUESTS_CA_BUNDLE="/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt"export CURL_CA_BUNDLE="/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux/etc/ssl/certs/ca-certificates.crt"HOST_PKG_PATH=$(command -p pkg-config --variable=pc_path pkg-config 2>/dev/null)export PKG_CONFIG_LIBDIR=/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux//usr/lib/pkgconfig:/home/anikolic/git/openembedded-core/build-tools/sysroots/x86_64-pokysdk-linux//usr/share/pkgconfig:${HOST_PKG_PATH:-/usr/lib/pkgconfig:/usr/share/pkgconfig}if [ -d "$OECORE_NATIVE_SYSROOT/environment-setup.d" ]; thenfor envfile in $OECORE_NATIVE_SYSROOT/environment-setup.d/*.sh; do. $envfiledonefi# We have to unset this else it can confuse oe-selftest and other tools# which may also use the overlapping namespace.unset OECORE_NATIVE_SYSROOT