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

Linux: fails to build with This attribute requires a heading to be specified #57709

Closed
sylvestre opened this issue Sep 13, 2022 · 5 comments
Closed
Labels
build-problem clang Clang issues not falling into any other category

Comments

@sylvestre
Copy link
Collaborator

Started to fail recently with:


cd "/build/llvm-toolchain-snapshot-16~++20220913071901+d67603a65488/build-llvm/tools/clang/stage2-bins" && "/build/llvm-toolchain-snapshot-16~++20220913071901+d67603a65488/build-llvm/tools/clang/stage2-bins/bin/clang-tblgen" -gen-attr-docs -I /build/llvm-toolchain-snapshot-16~++20220913071901+d67603a65488/clang/docs -I/build/llvm-toolchain-snapshot-16~++20220913071901+d67603a65488/clang/include -I/build/llvm-toolchain-snapshot-16~++20220913071901+d67603a65488/build-llvm/tools/clang/stage2-bins/tools/clang/include -I/build/llvm-toolchain-snapshot-16~++20220913071901+d67603a65488/build-llvm/tools/clang/stage2-bins/include -I/build/llvm-toolchain-snapshot-16~++20220913071901+d67603a65488/llvm/include -I/build/llvm-toolchain-snapshot-16~++20220913071901+d67603a65488/clang/docs/../include/clang/Basic /build/llvm-toolchain-snapshot-16~++20220913071901+d67603a65488/clang/docs/../include/clang/Basic/Attr.td --write-if-changed -o tools/clang/docs/AttributeReference.rst -d tools/clang/docs/AttributeReference.rst.d
/build/llvm-toolchain-snapshot-16~++20220913071901+d67603a65488/clang/docs/../include/clang/Basic/Attr.td:2082:1: error: This attribute requires a heading to be specified
def NoStackProtector : InheritableAttr {
^
@tbaederr
Copy link
Contributor

Also mentioned in https://reviews.llvm.org/rGab56719acd98

sylvestre added a commit that referenced this issue Sep 13, 2022
@sylvestre
Copy link
Collaborator Author

ok, thanks. I reverted the patch

@hokein
Copy link
Collaborator

hokein commented Sep 13, 2022

I was going to land a fix, but I was late. I think the fix is

+++ b/clang/include/clang/Basic/AttrDocs.td
@@ -4452,6 +4452,7 @@ spelled "XYZ" in the `OpenMP 5.1 Standard`_).
 
 def NoStackProtectorDocs : Documentation {
   let Category = DocCatFunction;
+  let Heading = "no_stack_protector";
   let Content = [{

@sylvestre
Copy link
Collaborator Author

sorry about that

@EugeneZelenko EugeneZelenko added clang Clang issues not falling into any other category build-problem and removed new issue labels Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-problem clang Clang issues not falling into any other category
Projects
None yet
Development

No branches or pull requests

4 participants