Repository navigation
Fix build issues with 15.x toolchain. - #804
Merged
Merged
Conversation
Peter-Moody
approved these changes
May 19, 2026
Peter-Moody
left a comment
Contributor
There was a problem hiding this comment.
Looks like you fixed everything my initial build complained about.
NevynUK
added a commit
that referenced
this pull request
Nov 14, 2026
GCC 14 made implicit function declarations, implicit int, int/pointer conversions and incompatible pointer types errors in C. This NuttX tree relies on some of them (hypot() is used with no prototype and comes from the toolchain's libm; lib_openpty.c uses ptsname_r undeclared and passes a pointer to ioctl). With GCC 14 and later, -fpermissive turns them back into the warnings GCC 10 gave; older compilers are unaffected. main fixes these sources one by one (#804), which is not on meadow-3.0. The mono configuration has its own Make.defs, which configure copies, so the flag goes there rather than in scripts/Make.defs. Verified: builds with Arm GNU Toolchain 15.3.Rel1 (--emulator), and the image runs Mono's mini tests in the Renode emulator. Not tested on a board. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
NevynUK
added a commit
that referenced
this pull request
Nov 15, 2026
* Enable the WiFi country code to be set in configuration. * Attempting to make this compatible with Emulator. * Build with GCC 14 and later: -fpermissive for C GCC 14 made implicit function declarations, implicit int, int/pointer conversions and incompatible pointer types errors in C. This NuttX tree relies on some of them (hypot() is used with no prototype and comes from the toolchain's libm; lib_openpty.c uses ptsname_r undeclared and passes a pointer to ioctl). With GCC 14 and later, -fpermissive turns them back into the warnings GCC 10 gave; older compilers are unaffected. main fixes these sources one by one (#804), which is not on meadow-3.0. The mono configuration has its own Make.defs, which configure copies, so the flag goes there rather than in scripts/Make.defs. Verified: builds with Arm GNU Toolchain 15.3.Rel1 (--emulator), and the image runs Mono's mini tests in the Renode emulator. Not tested on a board. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Make build.sh --emulator deploys work in the Renode emulator - UART4 receive flow control: --emulator sets SERIAL_IFLOWCONTROL and UART4_IFLOWCONTROL, and UART4's .iflow in stm32_serial.c now follows CONFIG_UART4_IFLOWCONTROL (it was hard-coded false). The emulator delivers a Meadow.CLI download as bursts of tens of KB; without flow control the driver dropped everything past its receive buffer and the first file never completed. There is no RTS pin (rts_gpio stays 0), so the driver holds the RX interrupt off while the buffer is full. Normal builds do not set the option and are unchanged. - The "USB disabled, reconfigure" guard no longer applies to --emulator builds, which disable USB themselves; it wiped every emulator build. Verified in Renode on an emulated CCM: a 225 KB file write completes in seconds, and MiniTests deploys through Meadow.CLI and runs (733 ran, 2 skipped, 1 known failure). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes to fix build errors with the ARM 15.x tool chain.