conan-io / meta-conan

Yocto layer for the Conan project
23 stars 28 forks source link

build fails with "conan" command not found #13

Open gg6663 opened 2 years ago

gg6663 commented 2 years ago

Hi All, I have followed the steps provided in https://docs.conan.io/en/latest/integrations/cross_platform/yocto.html and integrated layer "meta-conan" into Yocto build ( Sumo ). I have cloned the meta-conan from branch "thud"

Created a recipe file to fetch binary from conan as shown below

inherit conan

DESCRIPTION = "Zebra Chimera Core Library.." LICENSE = "CLOSED"

DEPENDS = " python-cson-native" DEPENDS += " python3-cython-native" DEPENDS += " python3-idna-native"

CONAN_PROFILE_PATH ="${TOPDIR}/conf/armv8"

CONAN_REMOTE_URL = "https://artifactory-ny.zebra.com/artifactory/api/conan/dcs-con-dev" CONAN_REMOTE_NAME = "dev"

CONAN_PKG = "ChiCore/[>1.0.0]@chi/protected"

When i try to compile/install chimera-chicore using command " bitbake -c install chimera-chicore" below error is shown up

ERROR: chimera-chicore-1.0-r0 do_install: Function failed: do_install (log file is located at /data/work/builds/work-space/xs4070/layercake/bld-xs1020/tmp/work/aarch64-poky-linux/chimera-chicore/1.0-r0/temp/log.do_install.13643) ERROR: Logfile of failure stored in: /data/work/builds/work-space/xs4070/layercake/bld-xs1020/tmp/work/aarch64-poky-linux/chimera-chicore/1.0-r0/temp/log.do_install.13643 Log data follows: | DEBUG: Executing python function extend_recipe_sysroot | NOTE: Direct dependencies are ['/data/work/builds/work-space/xs4070/layercake/sources/poky/meta/recipes-devtools/gcc/gcc-runtime_7.3.bb:do_populate_sysroot', '/data/work/builds/work-space/xs4070/layercake/sources/poky/meta/recipes-devtools/gcc/gcc-cross_7.3.bb:do_populate_sysroot', '/data/work/builds/work-space/xs4070/layercake/sources/poky/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', 'virtual:native:/data/work/builds/work-space/xs4070/layercake/sources/meta-openembedded/meta-python/recipes-extended/python-cson/python-cson_git.bb:do_populate_sysroot', 'virtual:native:/data/work/builds/work-space/xs4070/layercake/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-idna_2.6.bb:do_populate_sysroot', 'virtual:native:/data/work/builds/work-space/xs4070/layercake/sources/meta-openembedded/meta-python/recipes-devtools/python/python3-cython_0.28.2.bb:do_populate_sysroot', 'virtual:native:/data/work/builds/work-space/xs4070/layercake/sources/meta-zebra-bsp/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot', '/data/work/builds/work-space/xs4070/layercake/sources/poky/meta/recipes-core/glibc/glibc_2.27.bb:do_populate_sysroot'] | NOTE: Installed into sysroot: [] | NOTE: Skipping as already exists in sysroot: ['gcc-runtime', 'gcc-cross-aarch64', 'quilt-native', 'python-cson-native', 'python3-idna-native', 'python3-cython-native', 'pseudo-native', 'glibc', 'libgcc', 'linux-libc-headers', 'python-setuptools-native', 'python-native', 'python3-setuptools-native', 'python3-native', 'texinfo-dummy-native', 'libmpc-native', 'autoconf-native', 'xz-native', 'zlib-native', 'gmp-native', 'libtool-native', 'binutils-cross-aarch64', 'gnu-config-native', 'flex-native', 'mpfr-native', 'automake-native', 'unzip-native', 'sqlite3-native', 'readline-native', 'gdbm-native', 'pkgconfig-native', 'db-native', 'bzip2-native', 'openssl-native', 'expat-native', 'm4-native', 'gettext-minimal-native', 'bison-native', 'ncurses-native'] | DEBUG: Python function extend_recipe_sysroot finished | DEBUG: Executing shell function do_install | Arch value 'x86_64' from 'BUILD_ARCH' mapped to 'x86_64' | Arch value 'aarch64' from 'HOST_ARCH' mapped to 'armv8' | Arch value 'x86_64' from 'BUILD_ARCH' mapped to 'x86_64' | Arch value 'aarch64' from 'HOST_ARCH' mapped to 'armv8' | Configuring the Conan remote: | https://artifactory-ny.zebra.com/artifactory/api/conan/dcs-con-dev | /data/work/builds/work-space/xs4070/layercake/bld-xs1020/tmp/work/aarch64-poky-linux/chimera-chicore/1.0-r0/temp/run.do_install.13643: 122: /data/work/builds/work-space/xs4070/layercake/bld-xs1020/tmp/work/aarch64-poky-linux/chimera-chicore/1.0-r0/temp/run.do_install.13643: conan: not found | WARNING: exit code 127 from a shell command. | ERROR: Function failed: do_install (log file is located at /data/work/builds/work-space/xs4070/layercake/bld-xs1020/tmp/work/aarch64-poky-linux/chimera-chicore/1.0-r0/temp/log.do_install.13643) ERROR: Task (/data/work/builds/work-space/xs4070/layercake/sources/meta-zebra-bsp/recipes-chimera/chimera-executable/chimera-chicore.bb:do_install) failed with exit code '1' NOTE: Tasks Summary: Attempted 379 tasks of which 378 didn't need to be rerun and 1 failed. NOTE: No commit since BUILDHISTORY_COMMIT != '1'

Summary: 1 task failed: /data/work/builds/work-space/xs4070/layercake/sources/meta-zebra-bsp/recipes-chimera/chimera-executable/chimera-chicore.bb:do_install

Please revive my changes and let me know if i missed any steps..

Thanks Girish