aws4embeddedlinux/meta-aws

Fails to build aws-sdk-cpp

Closed this issue · 1 comments

The build fails on the aws-c-sdkutils package with the following error:

Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['/home/marius/halodi-yocto/sources/meta-ros/meta-ros-common/recipes-devtools/awslabs/aws-c-common_0.4.15.bb:do_populate_sysroot', '/home/marius/halodi-yocto/sources/meta-ros/meta-ros2-humble/recipes-devtools/cmake/cmake-native_3.22.3.bb:do_populate_sysroot', '/home/marius/halodi-yocto/sources/poky/meta/recipes-core/glibc/glibc_2.35.bb:do_populate_sysroot', '/home/marius/halodi-yocto/sources/poky/meta/recipes-devtools/gcc/gcc-cross_11.4.bb:do_populate_sysroot', '/home/marius/halodi-yocto/sources/poky/meta/recipes-devtools/gcc/gcc-runtime_11.4.bb:do_populate_sysroot', '/home/marius/halodi-yocto/sources/poky/meta/recipes-devtools/quilt/quilt-native_0.67.bb:do_populate_sysroot', 'virtual:native:/home/marius/halodi-yocto/sources/poky/meta/recipes-devtools/ninja/ninja_1.10.2.bb:do_populate_sysroot', 'virtual:native:/home/marius/halodi-yocto/sources/poky/meta/recipes-devtools/patch/patch_2.7.6.bb:do_populate_sysroot', 'virtual:native:/home/marius/halodi-yocto/sources/poky/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', 'virtual:native:/home/marius/halodi-yocto/sources/poky/meta/recipes-devtools/pseudo/pseudo_git.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: []
| NOTE: Skipping as already exists in sysroot: ['aws-c-common', 'cmake-native', 'glibc', 'gcc-cross-aarch64', 'gcc-runtime', 'quilt-native', 'ninja-native', 'patch-native', 'pkgconfig-native', 'pseudo-native', 'libtool-native', 'linux-libc-headers', 'attr-native', 'xz-native', 'curl-native', 'ncurses-native', 'bzip2-native', 'zstd-native', 'zlib-native', 're2c-native', 'binutils-cross-aarch64', 'mpfr-native', 'flex-native', 'gmp-native', 'texinfo-dummy-native', 'libmpc-native', 'gnu-config-native', 'libgcc', 'gettext-minimal-native', 'openssl-native', 'm4-native', 'perl-native', 'make-native', 'gdbm-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_configure
| -- The C compiler identification is GNU 11.4.0
| -- Detecting C compiler ABI info
| -- Detecting C compiler ABI info - done
| -- Check for working C compiler: /home/marius/halodi-yocto/build/jetson-xavier-rogue/tmp/work/armv8a-poky-linux/aws-c-sdkutils/0.1.15-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-gcc - skipped
| -- Detecting C compile features
| -- Detecting C compile features - done
| CMake Error at CMakeLists.txt:33 (include):
|   include could not find requested file:
| 
|     AwsCheckHeaders
| 
| 
| CMake Error at CMakeLists.txt:36 (include):
|   include could not find requested file:
| 
|     AwsFindPackage
| 
| 
| -- Looking for stdint.h
| -- Looking for stdint.h - found
| -- Looking for stdbool.h
| -- Looking for stdbool.h - found
| -- Performing Test HAS_WGNU
| -- Performing Test HAS_WGNU - Failed
| -- Performing Test HAVE_SYSCONF
| -- Performing Test HAVE_SYSCONF - Success
| -- Performing Test HAS_SANITIZERS
| -- Performing Test HAS_SANITIZERS - Failed
| CMake Error at CMakeLists.txt:70 (aws_use_package):
|   Unknown CMake command "aws_use_package".

I can build the aws-c-common package just fine. This is a build for a ARM processor, Jetson AGX Xavier to be precise, built of head of kirkstone branch.

Any idea why the aws-c-sdkutils package can not find the requires AWS packages?

The issue was (as with several other issues I saw) that I had included meta-ros which had a different version of the aws-c-common recipe.