Skip to content

[release/1.6] Fix NXP MCUXpresso CIFAR link failure - #24509

Merged
JacobSzwejbka merged 1 commit into
release/1.6from
codex/release-1.6-fix-nxp-sys-info-20261103
Nov 3, 2026
Merged

JacobSzwejbka merged 1 commit into
release/1.6from
codex/release-1.6-fix-nxp-sys-info-20261103

Conversation

@JacobSzwejbka

Copy link
Copy Markdown
Contributor

Fixes the NXP MCUXpresso failure seen on #24490 and on the release branch.

The failed job reaches the final CIFAR firmware link, then fails with undefined reference to SYS_INFO_PrintAll. The SDK example calls this helper, but our standalone CMake target omits examples/eiq_examples/common/sys_info/sys_info.c.

Add that source to the firmware target. The helper also needs MCUXSDK_VERSION_FULL_STR, which the SDK's normal build supplies through a generated header. Our standalone target now uses the SDK's mcux_version.cmake parser and sets the equivalent compile definition from the checked-out SDK version.

Verification

A focused host CMake build reused the actual example target's source list and include paths, the real SDK helper/header, and the SDK version parser. The board/runtime sources were replaced with empty fixtures and the application with a small C++ caller.

The original source list reproduced the unresolved SYS_INFO_PrintAll link error. Adding only the helper reproduced the missing MCUXSDK_VERSION_FULL_STR compile error. With both changes, the executable linked and printed MCUX SDK version: 2026.12.00-pvw1.

git diff --check passed. The full ARM firmware build and execution on hardware were not run locally; the NXP CI job must validate the complete build.

Only the example's CMakeLists.txt changes (eight added lines). Based on release/1.6 after #24490; this PR can land independently of the remaining clean backend picks.

Prepared with OpenAI Codex.

Compile the SDK sys_info implementation called by the CIFAR example. Use the SDK version parser to provide the version-string macro that the SDK normally supplies through its generated build header.

Prepared with OpenAI Codex.
@pytorch-bot

pytorch-bot Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/24509

Note: Links to docs will display an error until the docs builds have been completed.

⏳ No Failures, 79 Pending

As of commit a720b6c with merge base 4db778e (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 3, 2026
@JacobSzwejbka JacobSzwejbka reopened this Nov 3, 2026
@JacobSzwejbka
JacobSzwejbka merged commit 0a01e1b into release/1.6 Nov 3, 2026
227 of 268 checks passed
@JacobSzwejbka
JacobSzwejbka deleted the codex/release-1.6-fix-nxp-sys-info-20261103 branch November 3, 2026 17:37
JakeStevens pushed a commit to JakeStevens/executorch that referenced this pull request Nov 3, 2026
Main-branch counterpart of release/1.6 fix pytorch#24509. Fixes the NXP
MCUXpresso failure seen on pytorch#24490; main has the same incomplete CMake
target.

The [failed
job](https://github.com/pytorch/executorch/actions/runs/41601038988/job/125799646998)
reaches the final CIFAR firmware link, then fails with `undefined
reference to SYS_INFO_PrintAll`. The SDK example calls this helper, but
our standalone CMake target omits
`examples/eiq_examples/common/sys_info/sys_info.c`.

Add that source to the firmware target. The helper also needs
`MCUXSDK_VERSION_FULL_STR`, which the SDK's normal build supplies
through a generated header. Our standalone target now uses the SDK's
`mcux_version.cmake` parser and sets the equivalent compile definition
from the checked-out SDK version.

## Verification

A focused host CMake build reused the actual example target's source
list and include paths, the real SDK helper/header, and the SDK version
parser. The board/runtime sources were replaced with empty fixtures and
the application with a small C++ caller.

The original source list reproduced the unresolved `SYS_INFO_PrintAll`
link error. Adding only the helper reproduced the missing
`MCUXSDK_VERSION_FULL_STR` compile error. With both changes, the
executable linked and printed `MCUX SDK version: 2026.12.00-pvw1`.

`git diff --check` passed. The full ARM firmware build and execution on
hardware were not run locally; the NXP CI job must validate the complete
build.

Only the example's CMakeLists.txt changes (eight added lines). The
resulting file is byte-identical to the verified release fix in pytorch#24509.
Land this on main; pytorch#24509 is the corresponding release/1.6 pick.

Prepared with OpenAI Codex.

This branch was previously deployed

1 inactive deployment
cadence — a720b6c7 Deployed Nov 3, 2026 by JacobSzwejbka via hifi-op-test / hifi4 #36295
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants