Repository navigation
Fix NXP MCUXpresso CIFAR link failure - #24510
Conversation
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.
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/24510
Note: Links to docs will display an error until the docs builds have been completed. ⏳ No Failures, 108 PendingAs of commit 4ec4890 with merge base 7da27ca ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@claude review effort=max |
This PR needs a
|
|
Claude finished @shoumikhin's task in 16m 47s —— View job The 8-line fix matches the link failure in CI, but the MCUXpresso SDK is still downloaded unpinned and this change ties the target more tightly to the current preview SDK. I'd approve once Detailed reviewPR Review: #24510SummaryThe PR adds the SDK's The problem is the root cause, which this PR leaves in place: the SDK is downloaded unpinned. The next NXP change to its example can break the job again, and this PR adds a dependency on an internal CMake module of the SDK's build system. What this review could not check:
InfrastructureThe SDK is unpinned, so this fixes today's break while tying the build more tightly to a moving target (
Code Quality
RecommendationApprove once Task list
What I didn't do: I couldn't read the SDK's |
Main-branch counterpart of release/1.6 fix #24509. Fixes the NXP MCUXpresso failure seen on #24490; main has the same incomplete CMake target.
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 omitsexamples/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'smcux_version.cmakeparser 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_PrintAlllink error. Adding only the helper reproduced the missingMCUXSDK_VERSION_FULL_STRcompile error. With both changes, the executable linked and printedMCUX SDK version: 2026.12.00-pvw1.git diff --checkpassed. 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 #24509. Land this on main; #24509 is the corresponding release/1.6 pick.
Prepared with OpenAI Codex.