Skip to content
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

Clang 12 fails to build Flang with -DWITH_WERROR=ON #1065

Open
bryanpkc opened this issue Jun 6, 2021 · 1 comment
Open

Clang 12 fails to build Flang with -DWITH_WERROR=ON #1065

bryanpkc opened this issue Jun 6, 2021 · 1 comment

Comments

@bryanpkc
Copy link
Collaborator

bryanpkc commented Jun 6, 2021

Setting the CMake variable WITH_WERROR=ON tells Clang to compile Flang code with -Werror, which turns compile-time warnings into fatal errors. This had to be turned off by default in b8b4914 since LLVM 12 now produces many more warnings than previous LLVM versions.

I will submit a number of PRs to fix the Flang code base, in order to reduce the number of compile-time warnings, and enable WITH_WERROR=ON to be used again. Some problems requiring more extensive changes will be considered in future issues.

@bryanpkc
Copy link
Collaborator Author

bryanpkc commented Jun 6, 2021

List of PRs in preferred merge order (more to come):

The following are "roll-up" patches addressing multiple warnings in each major component, and depend on the patches above getting merged first:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant