-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[libraries] System.Native fails to build with clang-13 #60326
Comments
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
Tagging subscribers to this area: @Anipik, @safern, @ViktorHofer Issue DetailsRepro:
Expected result: Build succeeds Actual result: build fails with
This is happening because
At least ICU and openssl are affected.
|
One option is to pass So we'd have to do something like (unless cmake somehow filters out unknown options?) add_compile_options(-Wno-error=unknown-warning-option -Wno-reserved-identifier) |
ah |
Repro:
clang-13
andlibicu-dev
(I have 67.1-7 on Debian testing)Expected result: Build succeeds
Actual result: build fails with
This is happening because
-Weverything
includes the new-Wreserved-identifier
warning (more here)runtime/src/libraries/Native/Unix/CMakeLists.txt
Line 121 in 477789e
At least ICU and openssl are affected.
There are also warnings about
-Wunused-but-set-variable
(also new in clang-13) and-Wcast-function-type
(doesn't seem newalso new in clang-13, though not in the release notes llvm/llvm-project@217f0f7)and
The text was updated successfully, but these errors were encountered: