newlib/picolibc auto detection#2934
Open
rgrr wants to merge 2 commits into
Open
Conversation
Contributor
|
can you please try #2935 which is my alternate implementation |
Contributor
Author
|
I'll give it a try on sunday.
H.
…On 14 May 2026 21:07:06 CEST, Graham Sanderson ***@***.***> wrote:
kilograham left a comment (raspberrypi/pico-sdk#2934)
can you please try #2935 which is my alternate implementation
--
Reply to this email directly or view it on GitHub:
#2934 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
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.
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