Skip to content

Fix/sdk cpp v2 build deps off - #17239

Open
gregbreen wants to merge 1 commit into
aws4embeddedlinux:master-nextfrom
gregbreen:fix/sdk-cpp-v2-build-deps-off
Open

gregbreen wants to merge 1 commit into
aws4embeddedlinux:master-nextfrom
gregbreen:fix/sdk-cpp-v2-build-deps-off

Conversation

@gregbreen

Copy link
Copy Markdown
Contributor

Issue #, if available:

#17160

Description of changes:

aws-iot-device-sdk-cpp-v2: BUILD_DEPS=OFF path fails to configure (missing CRT DEPENDS + CMAKE_PREFIX_PATH)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…+ CMAKE_PREFIX_PATH)

With build-deps disabled, the SDK links the standalone CRT packages and its
CMake find_package()s the whole CRT chain (aws-crt-cpp + aws-c-* + aws-checksums
+ s2n), not just aws-c-iot. The recipe only DEPENDS aws-c-iot in that mode and
sets no CMAKE_PREFIX_PATH, so config-mode find_package() cannot locate the CRT
*Config.cmake files in the recipe sysroot and do_configure fails.

Add the full standalone CRT DEPENDS and set CMAKE_PREFIX_PATH to the recipe
sysroot, both guarded to the build-deps-off case (no-op when build-deps is ON).

Fixes aws4embeddedlinux#17160
@gregbreen
gregbreen requested a review from a team as a code owner September 17, 2026 05:53
@gregbreen
gregbreen changed the base branch from master to master-next September 17, 2026 05:58
@gregbreen

Copy link
Copy Markdown
Contributor Author

I think the build failures are not a defect in this PR. The default build-deps=ON build fails on master-next's OpenSSL 4.x because the bundled s2n uses removed OpenSSL APIs; it's the repo-wide s2n→AWS-LC blocker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant