-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure that correct libc headers are pulled by libstdc++ builds #797
Ensure that correct libc headers are pulled by libstdc++ builds #797
Conversation
Initial test result: https://github.com/zephyrproject-rtos/sdk-ng/actions/runs/10992244350 This managed to fix the However, there are still more problems with the Canadian cross toolchain builds ( |
More detailed analysis on the symptom: #760 (comment) |
This commit pulls in the crosstool-ng patch that fixes the wrong libstdc++ C library header path, specified using `--with-headers` argument, for additional libc variants such as newlib-nano and picolibc. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
GCC was adding the libc header directories to the target include search path only when building non-Canadian cross compilers, which caused wrong libc (newlib) headers to be picked up by the libstdc++ builds for companion libcs such as newlib-nano and picolibc when building a Canadian cross compiler. This commit pulls in the GCC patch that ensures that the libc header directories are always added to the include search path, even when compiling a Canadian cross compiler. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
This reverts commit ac8acc2 because the non-Linux C++ build issue has been fixed. Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
689801f
to
e05392d
Compare
Two additional patches, one in crosstool-ng and another in gcc, have been added fixing the problems described in #760 (comment) and #760 (comment). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
41449a8
into
zephyrproject-rtos:main
This series pulls in the crosstool-ng and gcc patches that ensure correct libc headers are pulled by the libstdc++ builds for the companion libcs (newlib-nano and picolibc).
crosstool-ng PR: zephyrproject-rtos/crosstool-ng#29
gcc PR: zephyrproject-rtos/gcc#36
Fixes #760