Skip to content

greengrass-lite: fix 32-bit build by enabling UNITY_SUPPORT_64 - #17128

Open
gregbreen wants to merge 1 commit into
aws4embeddedlinux:master-nextfrom
gregbreen:greengrass-lite-unity-support-64
Open

greengrass-lite: fix 32-bit build by enabling UNITY_SUPPORT_64#17128
gregbreen wants to merge 1 commit into
aws4embeddedlinux:master-nextfrom
gregbreen:greengrass-lite-unity-support-64

Conversation

@gregbreen

Copy link
Copy Markdown
Contributor

Issue #, if available:

#17127

Description of changes:

Stopgap to get the Greengrass nucleus lite building until we get upstream fixes.

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

The bundled gg_sdk test helpers (thirdparty/gg_sdk/unity/gg_test)
reference UNITY_DISPLAY_STYLE_INT64 / UNITY_DISPLAY_STYLE_UINT64, which
Unity only defines when UNITY_SUPPORT_64 is set. Unity auto-enables that
on 64-bit targets only, so do_compile fails on 32-bit tunes such as
arm/cortexa15t2hf-neon (qemuarm) with:

  error: 'UNITY_DISPLAY_STYLE_INT64' undeclared;
         did you mean 'UNITY_DISPLAY_STYLE_INT32'?

Add -DUNITY_SUPPORT_64 to CFLAGS. It is arch-independent and a no-op on
64-bit builds where Unity already defines it (guarded by
#ifndef UNITY_SUPPORT_64).

This is a stopgap; the proper fix belongs upstream in
aws-greengrass-component-sdk and can be removed here once that lands in
the pinned rev.
@gregbreen
gregbreen requested a review from a team as a code owner September 10, 2026 08:33
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