Skip to content

Conversation

@DePoli97
Copy link

This pull request adds compatibility fixes for building the toolchain on macOS (tested on macOS and Ubuntu 22.04).

Changes introduced:

  • Added missing system includes (<sys/ioctl.h>, <stdio.h>) for macOS builds.
  • Defined preprocessor guards to avoid ECHOCTL and other undefined symbols on Darwin.
  • Minor refactoring in readline sources to avoid C23 prototype warnings.

Why it’s safe:
All additions are protected with #ifdef __APPLE__, so Linux and other environments are not affected.

Testing:

  • Verified full toolchain (3 stages) build on macOS (Clang).
  • Same verification on Linux (GCC).

Please review and merge this PR before the main toolchain PR (pulp-riscv-gnu-toolchain).

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.

1 participant