-
Notifications
You must be signed in to change notification settings - Fork 48
GCC 14 generates incorrect include directories #628
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
Comments
I marked this issue as related to non-Synopsys code. Since it’s not critical this may be skipped for this release. |
@kolerov that needs to go into known issues so that our users are aware of that. Also would be super nice to file an upstream bug for that. |
@abrodkin I updated the release page with detailed description. I will also report to upstream project. |
I've created a new branch for In short, the problem was in this commit foss-for-synopsys-dwc-arc-processors/crosstool-ng@5419c9c. It fixed canadian builds but broke other toolchain types. So, the easiest workaround here is just to use libstdc++ fix only for canadian builds. |
@kolerov are we suggesting that fix for the upstream CT-NG? |
@abrodkin I've already asked @yaroslavsadin to switch to Regarding the issue itself I can only say that it's somehow related to these bugs:
They were created more than 10 years ago, and they have not been resolved. |
Daily builds a switched to |
Uh oh!
There was an error while loading. Please reload this page.
Here is an example:
GCC is configured with
--with-sysroot=/tools/gcc-arcv-newlib-dev/riscv64-unknown-elf
and--with-native-system-header-dir=/include
but GCC tries to get access to/tools/gcc-arcv-newlib-dev/riscv64-unknown-elf/usr/local/include
which is a concatenation of a valid--with-sysroot
and invalid--with-native-system-header-dir
. This may be reproduced in a toolchain built with the latestriscv-gnu-toolchain
orCrosstool-NG
scripts.Here is how this may be reproduced (it's necessary to pass a path to GCC 14 source since RISC-V scripts still use GCC 13):
This bug was introduced in our build after this patch: foss-for-synopsys-dwc-arc-processors/crosstool-ng@5419c9c
It forces Crosstool-NG scripts to build GCC with
--with-sysroot
and--with-native-system-header-dir
options and actually it's right and RISC-V scripts do the same thing. But something wrong happens when GCC 14 is built with those options both in RISC-V original scripts and in Crosstool-NG.The text was updated successfully, but these errors were encountered: