Skip to content

Fix build issues with 15.x toolchain. - #804

Merged
NevynUK merged 1 commit into
mainfrom
FixBuildIssuesFor15xTools
May 19, 2026
Merged

NevynUK merged 1 commit into
mainfrom
FixBuildIssuesFor15xTools

Conversation

@NevynUK

@NevynUK NevynUK commented May 19, 2026

Copy link
Copy Markdown
Contributor

Changes to fix build errors with the ARM 15.x tool chain.

@NevynUK
NevynUK requested a review from Peter-Moody May 19, 2026 08:27

@Peter-Moody Peter-Moody left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you fixed everything my initial build complained about.

@NevynUK
NevynUK merged commit 47ce8fe into main May 19, 2026
0 of 3 checks passed
@NevynUK
NevynUK deleted the FixBuildIssuesFor15xTools branch May 19, 2026 16:51
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>
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.

2 participants