Skip to content

newlib/picolibc auto detection#2934

Open
rgrr wants to merge 2 commits into
raspberrypi:developfrom
rgrr:newlib-picolibc-auto-detection
Open

newlib/picolibc auto detection#2934
rgrr wants to merge 2 commits into
raspberrypi:developfrom
rgrr:newlib-picolibc-auto-detection

Conversation

@rgrr
Copy link
Copy Markdown
Contributor

@rgrr rgrr commented May 14, 2026

For Debian testing there exists no longer newlib, instead picolibc is provided.

If the user does not explicitly selects picolibc with PICO_CLIB=picolibc the linking stage returns an undefined symbol "stdout" because the wrong newlib_interface.c had been compiled in.

This PR checks in case of gcc toolchain if newlib is installed and if not tries to use picolibc instead. The logic should be generic also for other development environments than Debian.

If another toolchain is selected (like clang), the auto-detect mechanism is omitted. In this case the clang toolchain logic must catch this case. See #2700 ;-)

Fixes #2933

@kilograham
Copy link
Copy Markdown
Contributor

can you please try #2935 which is my alternate implementation

@rgrr
Copy link
Copy Markdown
Contributor Author

rgrr commented May 14, 2026 via email

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