Repository navigation
fix(nrf52840): disable LTO on three Adafruit-BSP boards (arm-gnu 15.2 bug) (fixes #2653) - #2654
Conversation
… bug) The arm-gnu-toolchain 15.2.rel1 + Adafruit nRF52 BSP combination produces "offset out of range" assembler errors in the LTO temp file during link, the same bug that hit xiaoblesense_adafruit (#2641 / PR #2642). The non-Seeed nRF52840 boards have now crossed the same threshold: .lto-tmp/ccEo9QPb.s:13834: Error: offset out of range ... build error: build failed: arm-none-eabi-gcc link failed lto-wrapper: fatal error: arm-none-eabi-gcc returned 1 exit status Apply the same `-fno-lto` workaround to: - NRF52840 (board_name="nrf52840_dk") - ADA_FEATHER_NRF52840_SENSE (board_name="adafruit_feather_nrf52840_sense") - SUPERMINI_NRF52840 (board_name="supermini_nrf52840") NICE_NANO_NRF52840 and NRFMICRO_NRF52840 use the same toolchain but are currently passing — leave them alone (don't pre-emptively disable LTO on passing builds; size regressions). Re-apply only when/if they fail. Fixes #2653
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThree nRF52840-based board definitions in ChangesLTO workaround for nRF52840 boards
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
-fno-ltoworkaround from PR ci(nrf52): disable LTO on xiaoblesense_adafruit to dodge arm-gnu 15.2 LTO bug #2642 to three more Adafruit-BSP nRF52840 boards that just crossed the same arm-gnu 15.2.rel1 LTO threshold.nrf52840_dk,adafruit_feather_nrf52840_sense, andnrf52840_superminiworkflows.Root cause
Identical signature on all three failing runs:
The Adafruit BSP at 1.10601.0 brings in enough core code that the LTO-merged TU exceeds Thumb-2 branch reach across function boundaries — exact same toolchain bug PR #2642 documented for
xiaoblesense_adafruitand PR #2644 mirrored forxiaoblesense.Scope discipline
NICE_NANO_NRF52840andNRFMICRO_NRF52840use the same BSP + toolchain but currently pass — left alone (don't disable LTO pre-emptively on green builds; risks size regressions). Re-apply only when they fail.Test plan
nrf52840_dkworkflow goes green post-merge.adafruit_feather_nrf52840_senseworkflow goes green post-merge.nrf52840_superminiworkflow goes green post-merge.nice_nano_nrf52840,nrfmicro_nrf52840builds remain green.Fixes #2653
🤖 Generated with Claude Code
Summary by CodeRabbit
Bug Fixes