-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
[Github] Enable warnings as errors on flang sphinx build #72723
[Github] Enable warnings as errors on flang sphinx build #72723
Conversation
@llvm/pr-subscribers-github-workflow Author: Aiden Grossman (boomanaiden154) ChangesNow that the number of warnings in the flang sphinx build has come down significantly, we can turn on warnings as errors in the sphinx build, which is the default configuration in CMake. Full diff: https://github.com/llvm/llvm-project/pull/72723.diff 1 Files Affected:
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 6329d777a182031..1eaa76cf838c049 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -150,9 +150,7 @@ jobs:
TZ=UTC ninja -C polly-build docs-polly-html docs-polly-man
- name: Build Flang docs
if: steps.docs-changed-subprojects.outputs.flang_any_changed == 'true'
- # TODO(boomanaiden154): Remove the SPHINX_WARNINGS_AS_ERRORS from the
- # CMake invocation once the warnings in the flang docs build are fixed.
run: |
- cmake -B flang-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;mlir;flang" -DLLVM_ENABLE_SPHINX=ON -DSPHINX_WARNINGS_AS_ERRORS=OFF ./llvm
+ cmake -B flang-build -GNinja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_PROJECTS="clang;mlir;flang" -DLLVM_ENABLE_SPHINX=ON ./llvm
TZ=UTC ninja -C flang-build docs-flang-html docs-flang-man
|
We'll probably need to wait a little bit before merging this, but there's only one final warning that I can see before this is ready to merge:
Once that gets fixed, we should be able to get this in. |
This warning is coming from the fact there is a reference to this document in Options.td (
I will need help to fix this issue. |
Can this be merged or dropped if no longer needed? |
The error mentioned above is still present. I haven't looked too much into fixing it. It looks like there have been a couple other regression in regards to warnings in the mean time as well looking at some recent runs. |
Would be good if we could fix so that errors are caught in the PR process if at all possible. |
This warning (and all others) are now fixed. But I see the following mlir warning that is probably caused because flang needs mlir tools.
|
Now that the number of warnings in the flang sphinx build has come down significantly, we can turn on warnings as errors in the sphinx build, which is the default configuration in CMake.
d75a498
to
0bc9964
Compare
There were still two errors popping up with the CI configuration, but it looks like those are due to building the
I can't reproduce that warning at all with a recent clang version. The CI uses I'm going to land this soonish as everything should be good to go now. Thanks for your work on fixing this up! |
This warning is also fixed by the following. Thanks for your patience. |
Now that the number of warnings in the flang sphinx build has come down significantly, we can turn on warnings as errors in the sphinx build, which is the default configuration in CMake.