Re: ninja: error: unknown target 'install' #yocto #toolchain #linux


Quentin Schulz
 

Hi,

On Thu, Dec 03, 2020 at 04:04:25AM -0800, vijayrakeshmunganda@gmail.com wrote:
Hi All,

I had written a bitbake file to download and install AWS SDK C from GitHub https://github.com/aws/aws-iot-device-sdk-embedded-C based on existing recipes https://github.com/aws/meta-aws, ( https://github.com/aws/meta-aws ) but I'm getting an error as "ninja: error: unknown target 'install'". Kindly please help me to solve the issue.

Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['virtual:native:/home/bl-docker/rity/src/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', 'virtual:native:/home/bl-docker/rity/src/poky/meta/recipes-devtools/ninja/ninja_1.10.0.bb:do_populate_sysroot', 'virtual:native:/home/bl-docker/rity/src/poky/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', '/home/bl-docker/rity/src/poky/meta/recipes-devtools/gcc/gcc-cross_9.3.bb:do_populate_sysroot', '/home/bl-docker/rity/src/poky/meta/recipes-devtools/cmake/cmake-native_3.16.5.bb:do_populate_sysroot', '/home/bl-docker/rity/src/poky/meta/recipes-connectivity/openssl/openssl_1.1.1g.bb:do_populate_sysroot', '/home/bl-docker/rity/src/poky/../meta-mediatek-bsp/recipes-connectivity/mosquitto/mosquitto_1.6.12.bb:do_populate_sysroot', '/home/bl-docker/rity/src/poky/meta/recipes-core/glibc/glibc_2.31.bb:do_populate_sysroot', '/home/bl-docker/rity/src/poky/meta/recipes-devtools/quilt/quilt-native_0.66.bb:do_populate_sysroot', '/home/bl-docker/rity/src/poky/meta/recipes-devtools/gcc/gcc-runtime_9.3.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_install
| NOTE: DESTDIR=/home/bl-docker/rity/bsp/tmp/work/aarch64-poky-linux/aws/1.0-r0/image VERBOSE=1 cmake --build /home/bl-docker/rity/bsp/tmp/work/aarch64-poky-linux/aws/1.0-r0/build --target install --
| [0/2] /home/bl-docker/rity/bsp/tmp/work/aarch64-poky-linux/aws/1.0-r0/recipe-sysroot-native/usr/bin/cmake -P /home/bl-docker/rity/bsp/tmp/work/aarch64-poky-linux/aws/1.0-r0/build/CMakeFiles/VerifyGlobs.cmake
| ninja: error: unknown target 'install'
| WARNING: /home/bl-docker/rity/bsp/tmp/work/aarch64-poky-linux/aws/1.0-r0/temp/run.do_install.17379:1 exit 1 from 'eval ${DESTDIR:+DESTDIR=${DESTDIR} }VERBOSE=1 cmake --build '/home/bl-docker/rity/bsp/tmp/work/aarch64-poky-linux/aws/1.0-r0/build' "$@" -- ${EXTRA_OECMAKE_BUILD}'
| ERROR: Execution of '/home/bl-docker/rity/bsp/tmp/work/aarch64-poky-linux/aws/1.0-r0/temp/run.do_install.17379' failed with exit code 1:
| [0/2] /home/bl-docker/rity/bsp/tmp/work/aarch64-poky-linux/aws/1.0-r0/recipe-sysroot-native/usr/bin/cmake -P /home/bl-docker/rity/bsp/tmp/work/aarch64-poky-linux/aws/1.0-r0/build/CMakeFiles/VerifyGlobs.cmake
| ninja: error: unknown target 'install'
No target named install. Add one or override do_install task since by
default it "calls" the install target.

[...]

SRC_URI = "git://github.com/aws/aws-iot-device-sdk-embedded-C;branch=${BRANCH};name=aws-iot-device-sdk-embedded-C"
SRCREV = "${AUTOREV}"

S= "${WORKDIR}/git"

do_configure_prepend() {
cd ${S}
git submodule update --init --recursive
IIRC, gitsm in SRC_URI instead of git should handle that:
https://docs.yoctoproject.org/bitbake/bitbake-user-manual/bitbake-user-manual-fetching.html#git-submodule-fetcher-gitsm

Quentin

Join yocto@lists.yoctoproject.org to automatically receive all group messages.