Skip to content

Conversation

hnrklssn
Copy link
Member

@hnrklssn hnrklssn commented Oct 9, 2025

This renames some attribute list related functions, to make callers think about whether they want to append or prepend to the list, instead of defaulting to prepending which is often not the desired behaviour (for the cases where it matters, sometimes we're just adding to an empty list). Then it adjusts some of these calls to append where they were previously prepending. This has the effect of making err_attributes_are_not_compatible consistent in emitting diagnostics as <new-attr> and <existing-attr> are not compatible, regardless of the syntax used to apply the attributes.

This renames functions that prepend or append lists of attributes, to be
explicit wrt whether they prepend or append. This should make it easier
to spot mistakes, and no longer makes the prepend option seem like the
default.
To make sure attributes occur the order they are parsed (for consistent
diagnostics), the most recently parsed attributes should be appended
rather than prepended.
@llvmbot llvmbot added clang Clang issues not falling into any other category clang:frontend Language frontend issues, e.g. anything involving "Sema" labels Oct 9, 2025
@llvmbot
Copy link
Member

llvmbot commented Oct 9, 2025

@llvm/pr-subscribers-clang

Author: Henrik G. Olsson (hnrklssn)

Changes

This renames some attribute list related functions, to make callers think about whether they want to append or prepend to the list, instead of defaulting to prepending which is often not the desired behaviour (for the cases where it matters, sometimes we're just adding to an empty list). Then it adjusts some of these calls to append where they were previously prepending. This has the effect of making err_attributes_are_not_compatible consistent in emitting diagnostics as &lt;new-attr&gt; and &lt;existing-attr&gt; are not compatible, regardless of the syntax used to apply the attributes.


Full diff: https://github.com/llvm/llvm-project/pull/162714.diff

14 Files Affected:

  • (modified) clang/include/clang/Parse/Parser.h (+4-4)
  • (modified) clang/include/clang/Sema/DeclSpec.h (+7-7)
  • (modified) clang/include/clang/Sema/ParsedAttr.h (+8-8)
  • (modified) clang/lib/Parse/ParseDecl.cpp (+11-11)
  • (modified) clang/lib/Parse/ParseDeclCXX.cpp (+4-4)
  • (modified) clang/lib/Parse/ParseExprCXX.cpp (+1-1)
  • (modified) clang/lib/Parse/ParseObjc.cpp (+5-5)
  • (modified) clang/lib/Parse/ParseStmt.cpp (+2-2)
  • (modified) clang/lib/Parse/ParseTemplate.cpp (+1-1)
  • (modified) clang/lib/Parse/Parser.cpp (+2-2)
  • (modified) clang/lib/Sema/DeclSpec.cpp (+1-1)
  • (modified) clang/lib/Sema/ParsedAttr.cpp (+1-1)
  • (modified) clang/lib/Sema/SemaDecl.cpp (+1-1)
  • (modified) clang/test/Sema/internal_linkage.c (+1-1)
diff --git a/clang/include/clang/Parse/Parser.h b/clang/include/clang/Parse/Parser.h
index e301cf1080977..5fc70ebb39930 100644
--- a/clang/include/clang/Parse/Parser.h
+++ b/clang/include/clang/Parse/Parser.h
@@ -2173,7 +2173,7 @@ class Parser : public CodeCompletionHandler {
     if (Tok.is(tok::kw___attribute)) {
       ParsedAttributes Attrs(AttrFactory);
       ParseGNUAttributes(Attrs, LateAttrs, &D);
-      D.takeAttributes(Attrs);
+      D.takeAttributesAppend(Attrs);
     }
   }
 
@@ -2272,7 +2272,7 @@ class Parser : public CodeCompletionHandler {
     if (isAllowedCXX11AttributeSpecifier()) {
       ParsedAttributes Attrs(AttrFactory);
       ParseCXX11Attributes(Attrs);
-      D.takeAttributes(Attrs);
+      D.takeAttributesAppend(Attrs);
     }
   }
 
@@ -2292,7 +2292,7 @@ class Parser : public CodeCompletionHandler {
       ParsedAttributes AttrsWithRange(AttrFactory);
       ParseMicrosoftAttributes(AttrsWithRange);
       AttrsParsed = !AttrsWithRange.empty();
-      Attrs.takeAllFrom(AttrsWithRange);
+      Attrs.takeAllFromAppend(AttrsWithRange);
     }
     return AttrsParsed;
   }
@@ -5175,7 +5175,7 @@ class Parser : public CodeCompletionHandler {
     if (Tok.is(tok::colon)) {
       ParsedAttributes Attrs(AttrFactory);
       ParseHLSLAnnotations(Attrs, EndLoc, CouldBeBitField);
-      D.takeAttributes(Attrs);
+      D.takeAttributesAppend(Attrs);
       return true;
     }
     return false;
diff --git a/clang/include/clang/Sema/DeclSpec.h b/clang/include/clang/Sema/DeclSpec.h
index c1a99a1fddc80..4b52fc02088a0 100644
--- a/clang/include/clang/Sema/DeclSpec.h
+++ b/clang/include/clang/Sema/DeclSpec.h
@@ -835,7 +835,7 @@ class DeclSpec {
   /// \endcode
   ///
   void addAttributes(const ParsedAttributesView &AL) {
-    Attrs.addAll(AL.begin(), AL.end());
+    Attrs.addAllPrepend(AL.begin(), AL.end());
   }
 
   bool hasAttributes() const { return !Attrs.empty(); }
@@ -843,8 +843,8 @@ class DeclSpec {
   ParsedAttributes &getAttributes() { return Attrs; }
   const ParsedAttributes &getAttributes() const { return Attrs; }
 
-  void takeAttributesFrom(ParsedAttributes &attrs) {
-    Attrs.takeAllFrom(attrs);
+  void takeAttributesFromAppend(ParsedAttributes &attrs) {
+    Attrs.takeAllFromAppend(attrs);
   }
 
   /// Finish - This does final analysis of the declspec, issuing diagnostics for
@@ -2327,7 +2327,7 @@ class Declarator {
   void AddTypeInfo(const DeclaratorChunk &TI, ParsedAttributes &&attrs,
                    SourceLocation EndLoc) {
     DeclTypeInfo.push_back(TI);
-    DeclTypeInfo.back().getAttrs().addAll(attrs.begin(), attrs.end());
+    DeclTypeInfo.back().getAttrs().addAllPrepend(attrs.begin(), attrs.end());
     getAttributePool().takeAllFrom(attrs.getPool());
 
     if (!EndLoc.isInvalid())
@@ -2638,7 +2638,7 @@ class Declarator {
     return InventedTemplateParameterList;
   }
 
-  /// takeAttributes - Takes attributes from the given parsed-attributes
+  /// takeAttributesPrepend - Takes attributes from the given parsed-attributes
   /// set and add them to this declarator.
   ///
   /// These examples both add 3 attributes to "var":
@@ -2647,8 +2647,8 @@ class Declarator {
   ///                                 __attribute__((common,deprecated));
   ///
   /// Also extends the range of the declarator.
-  void takeAttributes(ParsedAttributes &attrs) {
-    Attrs.takeAllFrom(attrs);
+  void takeAttributesAppend(ParsedAttributes &attrs) {
+    Attrs.takeAllFromAppend(attrs);
 
     if (attrs.Range.getEnd().isValid())
       SetRangeEnd(attrs.Range.getEnd());
diff --git a/clang/include/clang/Sema/ParsedAttr.h b/clang/include/clang/Sema/ParsedAttr.h
index 2edee7eaa19a1..85b75742808a9 100644
--- a/clang/include/clang/Sema/ParsedAttr.h
+++ b/clang/include/clang/Sema/ParsedAttr.h
@@ -856,19 +856,19 @@ class ParsedAttributesView {
     friend class ParsedAttributesView;
   };
 
-  void addAll(iterator B, iterator E) {
+  void addAllPrepend(iterator B, iterator E) {
     AttrList.insert(AttrList.begin(), B.I, E.I);
   }
 
-  void addAll(const_iterator B, const_iterator E) {
+  void addAllPrepend(const_iterator B, const_iterator E) {
     AttrList.insert(AttrList.begin(), B.I, E.I);
   }
 
-  void addAllAtEnd(iterator B, iterator E) {
+  void addAllAppend(iterator B, iterator E) {
     AttrList.insert(AttrList.end(), B.I, E.I);
   }
 
-  void addAllAtEnd(const_iterator B, const_iterator E) {
+  void addAllAppend(const_iterator B, const_iterator E) {
     AttrList.insert(AttrList.end(), B.I, E.I);
   }
 
@@ -943,18 +943,18 @@ class ParsedAttributes : public ParsedAttributesView {
 
   AttributePool &getPool() const { return pool; }
 
-  void takeAllFrom(ParsedAttributes &Other) {
+  void takeAllFromPrepend(ParsedAttributes &Other) {
     assert(&Other != this &&
            "ParsedAttributes can't take attributes from itself");
-    addAll(Other.begin(), Other.end());
+    addAllPrepend(Other.begin(), Other.end());
     Other.clearListOnly();
     pool.takeAllFrom(Other.pool);
   }
 
-  void takeAllAtEndFrom(ParsedAttributes &Other) {
+  void takeAllFromAppend(ParsedAttributes &Other) {
     assert(&Other != this &&
            "ParsedAttributes can't take attributes from itself");
-    addAllAtEnd(Other.begin(), Other.end());
+    addAllAppend(Other.begin(), Other.end());
     Other.clearListOnly();
     pool.takeAllFrom(Other.pool);
   }
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index d6cd7eb8c2c3d..a6dd47ba85409 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/lib/Parse/ParseDecl.cpp
@@ -1934,12 +1934,12 @@ Parser::DeclGroupPtrTy Parser::ParseSimpleDeclaration(
     bool RequireSemi, ForRangeInit *FRI, SourceLocation *DeclSpecStart) {
   // Need to retain these for diagnostics before we add them to the DeclSepc.
   ParsedAttributesView OriginalDeclSpecAttrs;
-  OriginalDeclSpecAttrs.addAll(DeclSpecAttrs.begin(), DeclSpecAttrs.end());
+  OriginalDeclSpecAttrs.addAllPrepend(DeclSpecAttrs.begin(), DeclSpecAttrs.end());
   OriginalDeclSpecAttrs.Range = DeclSpecAttrs.Range;
 
   // Parse the common declaration-specifiers piece.
   ParsingDeclSpec DS(*this);
-  DS.takeAttributesFrom(DeclSpecAttrs);
+  DS.takeAttributesFromAppend(DeclSpecAttrs);
 
   ParsedTemplateInfo TemplateInfo;
   DeclSpecContext DSContext = getDeclSpecContextFromDeclaratorContext(Context);
@@ -2135,7 +2135,7 @@ Parser::DeclGroupPtrTy Parser::ParseDeclGroup(ParsingDeclSpec &DS,
   // list. This ensures that we will not attempt to interpret them as statement
   // attributes higher up the callchain.
   ParsedAttributes LocalAttrs(AttrFactory);
-  LocalAttrs.takeAllFrom(Attrs);
+  LocalAttrs.takeAllFromPrepend(Attrs);
   ParsingDeclarator D(*this, DS, LocalAttrs, Context);
   if (TemplateInfo.TemplateParams)
     D.setTemplateParameterLists(*TemplateInfo.TemplateParams);
@@ -3462,7 +3462,7 @@ void Parser::ParseDeclarationSpecifiers(
           PA.setInvalid();
         }
 
-        DS.takeAttributesFrom(attrs);
+        DS.takeAttributesFromAppend(attrs);
       }
 
       // If this is not a declaration specifier token, we're done reading decl
@@ -3689,7 +3689,7 @@ void Parser::ParseDeclarationSpecifiers(
         if (ParseImplicitInt(DS, &SS, TemplateInfo, AS, DSContext, Attrs)) {
           if (!Attrs.empty()) {
             AttrsLastTime = true;
-            attrs.takeAllFrom(Attrs);
+            attrs.takeAllFromAppend(Attrs);
           }
           continue;
         }
@@ -3854,7 +3854,7 @@ void Parser::ParseDeclarationSpecifiers(
         if (ParseImplicitInt(DS, nullptr, TemplateInfo, AS, DSContext, Attrs)) {
           if (!Attrs.empty()) {
             AttrsLastTime = true;
-            attrs.takeAllFrom(Attrs);
+            attrs.takeAllFromAppend(Attrs);
           }
           continue;
         }
@@ -4463,7 +4463,7 @@ void Parser::ParseDeclarationSpecifiers(
       // take them over and handle them here.
       if (!Attributes.empty()) {
         AttrsLastTime = true;
-        attrs.takeAllFrom(Attributes);
+        attrs.takeAllFromAppend(Attributes);
       }
       continue;
     }
@@ -4830,7 +4830,7 @@ void Parser::ParseLexedCAttribute(LateParsedAttribute &LA, bool EnterScope,
     ConsumeAnyToken();
 
   if (OutAttrs) {
-    OutAttrs->takeAllFrom(Attrs);
+    OutAttrs->takeAllFromAppend(Attrs);
   }
 }
 
@@ -6122,7 +6122,7 @@ void Parser::ParseTypeQualifierListOpt(
       isAllowedCXX11AttributeSpecifier()) {
     ParsedAttributes Attrs(AttrFactory);
     ParseCXX11Attributes(Attrs);
-    DS.takeAttributesFrom(Attrs);
+    DS.takeAttributesFromAppend(Attrs);
   }
 
   SourceLocation EndLoc;
@@ -7483,7 +7483,7 @@ void Parser::ParseParameterDeclarationClause(
       // Take them so that we only apply the attributes to the first parameter.
       // We have already started parsing the decl-specifier sequence, so don't
       // parse any parameter-declaration pieces that precede it.
-      ArgDeclSpecAttrs.takeAllFrom(FirstArgAttrs);
+      ArgDeclSpecAttrs.takeAllFromPrepend(FirstArgAttrs);
     } else {
       // Parse any C++11 attributes.
       MaybeParseCXX11Attributes(ArgDeclAttrs);
@@ -7505,7 +7505,7 @@ void Parser::ParseParameterDeclarationClause(
                                DeclSpecContext::DSC_normal,
                                /*LateAttrs=*/nullptr, AllowImplicitTypename);
 
-    DS.takeAttributesFrom(ArgDeclSpecAttrs);
+    DS.takeAttributesFromAppend(ArgDeclSpecAttrs);
 
     // Parse the declarator.  This is "PrototypeContext" or
     // "LambdaExprParameterContext", because we must accept either
diff --git a/clang/lib/Parse/ParseDeclCXX.cpp b/clang/lib/Parse/ParseDeclCXX.cpp
index 19f94122f151e..9c7e3a9e56901 100644
--- a/clang/lib/Parse/ParseDeclCXX.cpp
+++ b/clang/lib/Parse/ParseDeclCXX.cpp
@@ -739,7 +739,7 @@ Parser::DeclGroupPtrTy Parser::ParseUsingDeclaration(
         << FixItHint::CreateInsertionFromRange(
                Tok.getLocation(), CharSourceRange::getTokenRange(Range))
         << FixItHint::CreateRemoval(Range);
-    Attrs.takeAllFrom(MisplacedAttrs);
+    Attrs.takeAllFromPrepend(MisplacedAttrs);
   }
 
   // Maybe this is an alias-declaration.
@@ -787,7 +787,7 @@ Parser::DeclGroupPtrTy Parser::ParseUsingDeclaration(
     // Parse (optional) attributes.
     MaybeParseAttributes(PAKM_GNU | PAKM_CXX11, Attrs);
     DiagnoseCXX11AttributeExtension(Attrs);
-    Attrs.addAll(PrefixAttrs.begin(), PrefixAttrs.end());
+    Attrs.addAllPrepend(PrefixAttrs.begin(), PrefixAttrs.end());
 
     if (InvalidDeclarator)
       SkipUntil(tok::comma, tok::semi, StopBeforeMatch);
@@ -1948,7 +1948,7 @@ void Parser::ParseClassSpecifier(tok::TokenKind TagTokKind,
 
       // Recover by adding misplaced attributes to the attribute list
       // of the class so they can be applied on the class later.
-      attrs.takeAllFrom(Attributes);
+      attrs.takeAllFromAppend(Attributes);
     }
   }
 
@@ -2842,7 +2842,7 @@ Parser::DeclGroupPtrTy Parser::ParseCXXClassMemberDeclaration(
   // decl-specifier-seq:
   // Parse the common declaration-specifiers piece.
   ParsingDeclSpec DS(*this, TemplateDiags);
-  DS.takeAttributesFrom(DeclSpecAttrs);
+  DS.takeAttributesFromAppend(DeclSpecAttrs);
 
   if (MalformedTypeSpec)
     DS.SetTypeSpecError();
diff --git a/clang/lib/Parse/ParseExprCXX.cpp b/clang/lib/Parse/ParseExprCXX.cpp
index a2c69578d5087..cb0d2a000994a 100644
--- a/clang/lib/Parse/ParseExprCXX.cpp
+++ b/clang/lib/Parse/ParseExprCXX.cpp
@@ -1244,7 +1244,7 @@ ExprResult Parser::ParseLambdaExpressionAfterIntroducer(
         break;
     }
 
-    D.takeAttributes(Attributes);
+    D.takeAttributesAppend(Attributes);
   }
 
   MultiParseScope TemplateParamScope(*this);
diff --git a/clang/lib/Parse/ParseObjc.cpp b/clang/lib/Parse/ParseObjc.cpp
index a64fb02294c5a..c2dbc4edf0c3c 100644
--- a/clang/lib/Parse/ParseObjc.cpp
+++ b/clang/lib/Parse/ParseObjc.cpp
@@ -43,7 +43,7 @@ void Parser::MaybeSkipAttributes(tok::ObjCKeywordKind Kind) {
 Parser::DeclGroupPtrTy
 Parser::ParseObjCAtDirectives(ParsedAttributes &DeclAttrs,
                               ParsedAttributes &DeclSpecAttrs) {
-  DeclAttrs.takeAllFrom(DeclSpecAttrs);
+  DeclAttrs.takeAllFromPrepend(DeclSpecAttrs);
 
   SourceLocation AtLoc = ConsumeToken(); // the "@"
 
@@ -1065,7 +1065,7 @@ void Parser::ParseObjCTypeQualifierList(ObjCDeclSpec &DS,
 
 /// Take all the decl attributes out of the given list and add
 /// them to the given attribute set.
-static void takeDeclAttributes(ParsedAttributesView &attrs,
+static void takeDeclAttributesAppend(ParsedAttributesView &attrs,
                                ParsedAttributesView &from) {
   for (auto &AL : llvm::reverse(from)) {
     if (!AL.isUsedAsTypeAttr()) {
@@ -1088,10 +1088,10 @@ static void takeDeclAttributes(ParsedAttributes &attrs,
   attrs.getPool().takeAllFrom(D.getDeclSpec().getAttributePool());
 
   // Now actually move the attributes over.
-  takeDeclAttributes(attrs, D.getMutableDeclSpec().getAttributes());
-  takeDeclAttributes(attrs, D.getAttributes());
+  takeDeclAttributesAppend(attrs, D.getMutableDeclSpec().getAttributes());
+  takeDeclAttributesAppend(attrs, D.getAttributes());
   for (unsigned i = 0, e = D.getNumTypeObjects(); i != e; ++i)
-    takeDeclAttributes(attrs, D.getTypeObject(i).getAttrs());
+    takeDeclAttributesAppend(attrs, D.getTypeObject(i).getAttrs());
 }
 
 ParsedType Parser::ParseObjCTypeName(ObjCDeclSpec &DS,
diff --git a/clang/lib/Parse/ParseStmt.cpp b/clang/lib/Parse/ParseStmt.cpp
index 2e7af1219547e..7ac0d335a6555 100644
--- a/clang/lib/Parse/ParseStmt.cpp
+++ b/clang/lib/Parse/ParseStmt.cpp
@@ -718,7 +718,7 @@ StmtResult Parser::ParseLabeledStatement(ParsedAttributes &Attrs,
     // and followed by a semicolon, GCC will reject (it appears to parse the
     // attributes as part of a statement in that case). That looks like a bug.
     if (!getLangOpts().CPlusPlus || Tok.is(tok::semi))
-      Attrs.takeAllFrom(TempAttrs);
+      Attrs.takeAllFromAppend(TempAttrs);
     else {
       StmtVector Stmts;
       ParsedAttributes EmptyCXX11Attrs(AttrFactory);
@@ -2407,7 +2407,7 @@ StmtResult Parser::ParsePragmaLoopHint(StmtVector &Stmts,
       Stmts, StmtCtx, TrailingElseLoc, Attrs, EmptyDeclSpecAttrs,
       PrecedingLabel);
 
-  Attrs.takeAllFrom(TempAttrs);
+  Attrs.takeAllFromPrepend(TempAttrs);
 
   // Start of attribute range may already be set for some invalid input.
   // See PR46336.
diff --git a/clang/lib/Parse/ParseTemplate.cpp b/clang/lib/Parse/ParseTemplate.cpp
index 74aff0b804057..b9f691597a736 100644
--- a/clang/lib/Parse/ParseTemplate.cpp
+++ b/clang/lib/Parse/ParseTemplate.cpp
@@ -196,7 +196,7 @@ Parser::DeclGroupPtrTy Parser::ParseDeclarationAfterTemplate(
   ParsingDeclSpec DS(*this, &DiagsFromTParams);
   DS.SetRangeStart(DeclSpecAttrs.Range.getBegin());
   DS.SetRangeEnd(DeclSpecAttrs.Range.getEnd());
-  DS.takeAttributesFrom(DeclSpecAttrs);
+  DS.takeAttributesFromAppend(DeclSpecAttrs);
 
   ParseDeclarationSpecifiers(DS, TemplateInfo, AS,
                              getDeclSpecContextFromDeclaratorContext(Context));
diff --git a/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp
index a17398b84c6a6..e13bfacadd5c2 100644
--- a/clang/lib/Parse/Parser.cpp
+++ b/clang/lib/Parse/Parser.cpp
@@ -1083,7 +1083,7 @@ Parser::DeclGroupPtrTy Parser::ParseDeclOrFunctionDefInternal(
          "expected uninitialised source range");
   DS.SetRangeStart(DeclSpecAttrs.Range.getBegin());
   DS.SetRangeEnd(DeclSpecAttrs.Range.getEnd());
-  DS.takeAttributesFrom(DeclSpecAttrs);
+  DS.takeAttributesFromAppend(DeclSpecAttrs);
 
   ParsedTemplateInfo TemplateInfo;
   MaybeParseMicrosoftAttributes(DS.getAttributes());
@@ -1155,7 +1155,7 @@ Parser::DeclGroupPtrTy Parser::ParseDeclOrFunctionDefInternal(
     }
 
     DS.abort();
-    DS.takeAttributesFrom(Attrs);
+    DS.takeAttributesFromAppend(Attrs);
 
     const char *PrevSpec = nullptr;
     unsigned DiagID;
diff --git a/clang/lib/Sema/DeclSpec.cpp b/clang/lib/Sema/DeclSpec.cpp
index 8756ce5f0d850..f086c5d489f4c 100644
--- a/clang/lib/Sema/DeclSpec.cpp
+++ b/clang/lib/Sema/DeclSpec.cpp
@@ -197,7 +197,7 @@ DeclaratorChunk DeclaratorChunk::getFunction(bool hasProto,
         [&](DeclSpec::TQ TypeQual, StringRef PrintName, SourceLocation SL) {
           I.Fun.MethodQualifiers->SetTypeQual(TypeQual, SL);
         });
-    I.Fun.MethodQualifiers->getAttributes().takeAllFrom(attrs);
+    I.Fun.MethodQualifiers->getAttributes().takeAllFromPrepend(attrs);
     I.Fun.MethodQualifiers->getAttributePool().takeAllFrom(attrs.getPool());
   }
 
diff --git a/clang/lib/Sema/ParsedAttr.cpp b/clang/lib/Sema/ParsedAttr.cpp
index 294f88eae931c..42fa2af65b04f 100644
--- a/clang/lib/Sema/ParsedAttr.cpp
+++ b/clang/lib/Sema/ParsedAttr.cpp
@@ -304,7 +304,7 @@ bool ParsedAttr::checkAtMostNumArgs(Sema &S, unsigned Num) const {
 void clang::takeAndConcatenateAttrs(ParsedAttributes &First,
                                     ParsedAttributes &&Second) {
 
-  First.takeAllAtEndFrom(Second);
+  First.takeAllFromAppend(Second);
 
   if (!First.Range.getBegin().isValid())
     First.Range.setBegin(Second.Range.getBegin());
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 6eaf7b9435491..24d80c3c08a96 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -14637,7 +14637,7 @@ StmtResult Sema::ActOnCXXForRangeIdentifier(Scope *S, SourceLocation IdentLoc,
 
   Declarator D(DS, ParsedAttributesView::none(), DeclaratorContext::ForInit);
   D.SetIdentifier(Ident, IdentLoc);
-  D.takeAttributes(Attrs);
+  D.takeAttributesAppend(Attrs);
 
   D.AddTypeInfo(DeclaratorChunk::getReference(0, IdentLoc, /*lvalue*/ false),
                 IdentLoc);
diff --git a/clang/test/Sema/internal_linkage.c b/clang/test/Sema/internal_linkage.c
index a1bff73fb6620..4ea8599039c14 100644
--- a/clang/test/Sema/internal_linkage.c
+++ b/clang/test/Sema/internal_linkage.c
@@ -20,7 +20,7 @@ struct __attribute__((internal_linkage)) S { // expected-warning{{'internal_link
 __attribute__((internal_linkage("foo"))) int g(void) {} // expected-error{{'internal_linkage' attribute takes no arguments}}
 
 int var6 [[clang::internal_linkage]];
-int var7 [[clang::internal_linkage]] __attribute__((common)); // expected-error{{'clang::internal_linkage' and 'common' attributes are not compatible}} \
+int var7 [[clang::internal_linkage]] __attribute__((common)); // expected-error{{'common' and 'clang::internal_linkage' attributes are not compatible}} \
                                                    // expected-note{{conflicting attribute is here}}
 __attribute__((common)) int var8 [[clang::internal_linkage]]; // expected-error{{'clang::internal_linkage' and 'common' attributes are not compatible}} \
                                                    // expected-note{{conflicting attribute is here}}

Copy link

github-actions bot commented Oct 9, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.


int var6 [[clang::internal_linkage]];
int var7 [[clang::internal_linkage]] __attribute__((common)); // expected-error{{'clang::internal_linkage' and 'common' attributes are not compatible}} \
int var7 [[clang::internal_linkage]] __attribute__((common)); // expected-error{{'common' and 'clang::internal_linkage' attributes are not compatible}} \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that the original order was better.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For context this is what the diagnostic looks like in the terminal:

internal_linkage.c:23:53: error: 'common' and 'clang::internal_linkage' attributes are not compatible
   23 | int var7 [[clang::internal_linkage]] __attribute__((common));
      |                                                     ^
internal_linkage.c:23:12: note: conflicting attribute is here
   23 | int var7 [[clang::internal_linkage]] __attribute__((common));
      |            ^

I think it makes sense to emit the error on the last occurring attribute, and I also think it makes sense to mention the erroring attribute first in the diagnostics message. This is also what this diagnostic almost always did already.

Would you prefer that the diagnostic was rephrased? Maybe something like attribute 'common' not compatible with attribute 'clang::internal_linkage'?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think that the rephrasing of the warning would absolutely help!


void takeAttributesFrom(ParsedAttributes &attrs) {
Attrs.takeAllFrom(attrs);
void takeAttributesFromAppend(ParsedAttributes &attrs) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to inline the operation? i.e. takeAttributesAppendingFrom

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Also renamed addAllAppend and addAllPrepend to appendAll and prependAll.

addAll[Prepend/Append] -> [prepend/append]All
takeAllFrom[Prepend/Append] -> takeAll[Prepend/Append]From
takeAttributesFromAppend -> takeAttributesAppendFrom
Rename from AppendFrom/PrependFrom to AppendingFrom/PrependingFrom.
takeAttributesAppend -> takeAttributesAppending
prependAll -> prepend
appendAll -> append
Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do still think that the altered phrasing would be a much better diagnostic, but this change now feels like it is actually cleaning up the code base a good deal. Sorry about the multiple iterations, I do appreciate the final result.

@hnrklssn
Copy link
Member Author

Failures in SemaOpenCL/address-spaces.cl seem unrelated, so merging this.

@hnrklssn hnrklssn merged commit 3a9440b into llvm:main Oct 10, 2025
8 of 10 checks passed
@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-sie-ubuntu-fast running on sie-linux-worker while building clang at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/37503

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/22/include -nostdsysteminc /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/22/include -nostdsysteminc /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/22/include -nostdsysteminc /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/22/include -nostdsysteminc /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/22/include -nostdsysteminc /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/22/include -nostdsysteminc /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/22/include -nostdsysteminc /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/lib/clang/22/include -nostdsysteminc /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2025

LLVM Buildbot has detected a new failure on builder openmp-offload-amdgpu-runtime-2 running on rocm-worker-hw-02 while building clang at step 7 "Add check check-clang".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/15169

Here is the relevant piece of the build log for the reference
Step 7 (Add check check-clang) failure: test (failure)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib/clang/22/include -nostdsysteminc /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib/clang/22/include -nostdsysteminc /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib/clang/22/include -nostdsysteminc /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib/clang/22/include -nostdsysteminc /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib/clang/22/include -nostdsysteminc /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib/clang/22/include -nostdsysteminc /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib/clang/22/include -nostdsysteminc /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib/clang/22/include -nostdsysteminc /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2025

LLVM Buildbot has detected a new failure on builder openmp-offload-sles-build-only running on rocm-worker-hw-04-sles while building clang at step 6 "Add check check-clang".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/32182

Here is the relevant piece of the build log for the reference
Step 6 (Add check check-clang) failure: test (failure)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/clang/22/include -nostdsysteminc /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/clang/22/include -nostdsysteminc /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/clang/22/include -nostdsysteminc /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/clang/22/include -nostdsysteminc /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/clang/22/include -nostdsysteminc /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/clang/22/include -nostdsysteminc /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/clang/22/include -nostdsysteminc /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/bin/clang -cc1 -internal-isystem /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.build/lib/clang/22/include -nostdsysteminc /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /home/botworker/bbot/builds/openmp-offload-sles-build/llvm.src/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************


@hnrklssn
Copy link
Member Author

On a closer look, it seems to have been related after all. Fixing!

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-sie-win running on sie-win-worker while building clang at step 4 "clean-build-dir".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/46/builds/24641

Here is the relevant piece of the build log for the reference
Step 4 (clean-build-dir) failure: Delete failed. (failure)
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -cc1 -internal-isystem Z:\b\llvm-clang-x86_64-sie-win\build\lib\clang\22\include -nostdsysteminc Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\SemaOpenCL\address-spaces.cl -verify=expected -pedantic -fsyntax-only
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' -cc1 -internal-isystem 'Z:\b\llvm-clang-x86_64-sie-win\build\lib\clang\22\include' -nostdsysteminc 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\SemaOpenCL\address-spaces.cl' -verify=expected -pedantic -fsyntax-only
# note: command had no output on stdout or stderr
# RUN: at line 2
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -cc1 -internal-isystem Z:\b\llvm-clang-x86_64-sie-win\build\lib\clang\22\include -nostdsysteminc Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\SemaOpenCL\address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' -cc1 -internal-isystem 'Z:\b\llvm-clang-x86_64-sie-win\build\lib\clang\22\include' -nostdsysteminc 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\SemaOpenCL\address-spaces.cl' -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
# note: command had no output on stdout or stderr
# RUN: at line 3
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -cc1 -internal-isystem Z:\b\llvm-clang-x86_64-sie-win\build\lib\clang\22\include -nostdsysteminc Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\SemaOpenCL\address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' -cc1 -internal-isystem 'Z:\b\llvm-clang-x86_64-sie-win\build\lib\clang\22\include' -nostdsysteminc 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\SemaOpenCL\address-spaces.cl' -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
# note: command had no output on stdout or stderr
# RUN: at line 4
z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe -cc1 -internal-isystem Z:\b\llvm-clang-x86_64-sie-win\build\lib\clang\22\include -nostdsysteminc Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\SemaOpenCL\address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\clang.exe' -cc1 -internal-isystem 'Z:\b\llvm-clang-x86_64-sie-win\build\lib\clang\22\include' -nostdsysteminc 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\SemaOpenCL\address-spaces.cl' -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
# .---command stderr------------
# | error: 'expected-error' diagnostics seen but not expected: 
# |   File Z:\b\llvm-clang-x86_64-sie-win\llvm-project\clang\test\SemaOpenCL\address-spaces.cl Line 268: function scope variable cannot be declared in global address space
# | 1 error generated.
# `-----------------------------
# error: command failed with exit status: 1

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2025

LLVM Buildbot has detected a new failure on builder arc-builder running on arc-worker while building clang at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/3/builds/23209

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/buildbot/worker/arc-folder/build/bin/clang -cc1 -internal-isystem /buildbot/worker/arc-folder/build/lib/clang/22/include -nostdsysteminc /buildbot/worker/arc-folder/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /buildbot/worker/arc-folder/build/bin/clang -cc1 -internal-isystem /buildbot/worker/arc-folder/build/lib/clang/22/include -nostdsysteminc /buildbot/worker/arc-folder/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/buildbot/worker/arc-folder/build/bin/clang -cc1 -internal-isystem /buildbot/worker/arc-folder/build/lib/clang/22/include -nostdsysteminc /buildbot/worker/arc-folder/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /buildbot/worker/arc-folder/build/bin/clang -cc1 -internal-isystem /buildbot/worker/arc-folder/build/lib/clang/22/include -nostdsysteminc /buildbot/worker/arc-folder/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/buildbot/worker/arc-folder/build/bin/clang -cc1 -internal-isystem /buildbot/worker/arc-folder/build/lib/clang/22/include -nostdsysteminc /buildbot/worker/arc-folder/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /buildbot/worker/arc-folder/build/bin/clang -cc1 -internal-isystem /buildbot/worker/arc-folder/build/lib/clang/22/include -nostdsysteminc /buildbot/worker/arc-folder/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/buildbot/worker/arc-folder/build/bin/clang -cc1 -internal-isystem /buildbot/worker/arc-folder/build/lib/clang/22/include -nostdsysteminc /buildbot/worker/arc-folder/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /buildbot/worker/arc-folder/build/bin/clang -cc1 -internal-isystem /buildbot/worker/arc-folder/build/lib/clang/22/include -nostdsysteminc /buildbot/worker/arc-folder/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /buildbot/worker/arc-folder/llvm-project/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2025

LLVM Buildbot has detected a new failure on builder clang-m68k-linux-cross running on suse-gary-m68k-cross while building clang at step 5 "ninja check 1".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/17303

Here is the relevant piece of the build log for the reference
Step 5 (ninja check 1) failure: stage 1 checked (failure)
...
[58/346] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/CodeCompletionStringsTests.cpp.o
[59/346] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/FindSymbolsTests.cpp.o
[60/346] Building CXX object tools/clang/unittests/CMakeFiles/AllClangUnitTests.dir/Analysis/FlowSensitive/CFGMatchSwitchTest.cpp.o
[61/346] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/FileIndexTests.cpp.o
[62/346] Building CXX object tools/clang/tools/extra/unittests/clang-doc/CMakeFiles/ClangDocTests.dir/SerializeTest.cpp.o
[63/346] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/BackgroundIndexTests.cpp.o
[64/346] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/ClangdLSPServerTests.cpp.o
[65/346] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/TestWorkspace.cpp.o
[66/346] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/ModulesTests.cpp.o
[67/346] Building CXX object tools/clang/tools/extra/unittests/clang-tidy/CMakeFiles/ClangTidyTests.dir/OverlappingReplacementsTest.cpp.o
FAILED: tools/clang/tools/extra/unittests/clang-tidy/CMakeFiles/ClangTidyTests.dir/OverlappingReplacementsTest.cpp.o 
/usr/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/tools/clang/tools/extra/unittests/clang-tidy -I/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/clang-tools-extra/unittests/clang-tidy -I/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/clang-tools-extra/unittests/clang-tidy/../../include-cleaner/include -I/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/clang/include -I/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/tools/clang/include -I/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/stage1/include -I/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/include -I/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/clang-tools-extra/clang-tidy -I/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/third-party/unittest/googletest/include -I/var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-reference -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -Wno-pass-failed -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -O3 -DNDEBUG -std=c++17  -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -MD -MT tools/clang/tools/extra/unittests/clang-tidy/CMakeFiles/ClangTidyTests.dir/OverlappingReplacementsTest.cpp.o -MF tools/clang/tools/extra/unittests/clang-tidy/CMakeFiles/ClangTidyTests.dir/OverlappingReplacementsTest.cpp.o.d -o tools/clang/tools/extra/unittests/clang-tidy/CMakeFiles/ClangTidyTests.dir/OverlappingReplacementsTest.cpp.o -c /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/clang-tools-extra/unittests/clang-tidy/OverlappingReplacementsTest.cpp
c++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
[68/346] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/SymbolInfoTests.cpp.o
[69/346] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/InsertionPointTests.cpp.o
[70/346] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/QualityTests.cpp.o
[71/346] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/SemanticSelectionTests.cpp.o
[72/346] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/StdLibTests.cpp.o
[73/346] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/IndexActionTests.cpp.o
[74/346] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/SyncAPI.cpp.o
[75/346] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/PrerequisiteModulesTest.cpp.o
[76/346] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/SemanticHighlightingTests.cpp.o
[77/346] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/HeaderSourceSwitchTests.cpp.o
[78/346] Building CXX object tools/clang/tools/extra/clangd/unittests/CMakeFiles/ClangdTests.dir/SelectionTests.cpp.o
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/streambuf:43,
                 from /usr/include/c++/14/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/14/iterator:66,
                 from /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/include/llvm/ADT/ADL.h:13,
                 from /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/include/llvm/ADT/iterator_range.h:21,
                 from /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/llvm/include/llvm/ADT/StringRef.h:14,
                 from /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/clang-tools-extra/clangd/URI.h:12,
                 from /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/clang-tools-extra/clangd/Protocol.h:26,
                 from /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/clang-tools-extra/clangd/unittests/Annotations.h:15,
                 from /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/clang-tools-extra/clangd/unittests/SelectionTests.cpp:8:
In static member function ‘static _Up* std::__copy_move<_IsMove, true, std::random_access_iterator_tag>::__copy_m(_Tp*, _Tp*, _Up*) [with _Tp = const clang::clangd::SelectionTree::Node* const; _Up = const clang::clangd::SelectionTree::Node*; bool _IsMove = false]’,
    inlined from ‘_OI std::__copy_move_a2(_II, _II, _OI) [with bool _IsMove = false; _II = const clang::clangd::SelectionTree::Node* const*; _OI = const clang::clangd::SelectionTree::Node**]’ at /usr/include/c++/14/bits/stl_algobase.h:521:30,
    inlined from ‘_OI std::__copy_move_a1(_II, _II, _OI) [with bool _IsMove = false; _II = const clang::clangd::SelectionTree::Node* const*; _OI = const clang::clangd::SelectionTree::Node**]’ at /usr/include/c++/14/bits/stl_algobase.h:548:42,
    inlined from ‘_OI std::__copy_move_a(_II, _II, _OI) [with bool _IsMove = false; _II = const clang::clangd::SelectionTree::Node* const*; _OI = const clang::clangd::SelectionTree::Node**]’ at /usr/include/c++/14/bits/stl_algobase.h:555:31,
    inlined from ‘_OI std::copy(_II, _II, _OI) [with _II = const clang::clangd::SelectionTree::Node* const*; _OI = const clang::clangd::SelectionTree::Node**]’ at /usr/include/c++/14/bits/stl_algobase.h:651:7,
    inlined from ‘static _ForwardIterator std::__uninitialized_copy<true>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const clang::clangd::SelectionTree::Node* const*; _ForwardIterator = const clang::clangd::SelectionTree::Node**]’ at /usr/include/c++/14/bits/stl_uninitialized.h:147:27,
    inlined from ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = const clang::clangd::SelectionTree::Node* const*; _ForwardIterator = const clang::clangd::SelectionTree::Node**]’ at /usr/include/c++/14/bits/stl_uninitialized.h:185:15,
    inlined from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, allocator<_Tp>&) [with _InputIterator = const clang::clangd::SelectionTree::Node* const*; _ForwardIterator = const clang::clangd::SelectionTree::Node**; _Tp = const clang::clangd::SelectionTree::Node*]’ at /usr/include/c++/14/bits/stl_uninitialized.h:373:37,
    inlined from ‘void std::vector<_Tp, _Alloc>::_M_range_insert(iterator, _ForwardIterator, _ForwardIterator, std::forward_iterator_tag) [with _ForwardIterator = const clang::clangd::SelectionTree::Node* const*; _Tp = const clang::clangd::SelectionTree::Node*; _Alloc = std::allocator<const clang::clangd::SelectionTree::Node*>]’ at /usr/include/c++/14/bits/vector.tcc:1022:38,
    inlined from ‘std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::insert(const_iterator, _InputIterator, _InputIterator) [with _InputIterator = const clang::clangd::SelectionTree::Node* const*; <template-parameter-2-2> = void; _Tp = const clang::clangd::SelectionTree::Node*; _Alloc = std::allocator<const clang::clangd::SelectionTree::Node*>]’ at /usr/include/c++/14/bits/stl_vector.h:1488:19,
    inlined from ‘std::vector<const clang::clangd::SelectionTree::Node*> clang::clangd::{anonymous}::allNodes(const clang::clangd::SelectionTree&)’ at /var/lib/buildbot/workers/suse-gary-m68k-cross/clang-m68k-linux-cross/llvm/clang-tools-extra/clangd/unittests/SelectionTests.cpp:72:18,

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-gcc-ubuntu running on sie-linux-worker3 while building clang at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/25800

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/clang/22/include -nostdsysteminc /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/clang/22/include -nostdsysteminc /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/clang/22/include -nostdsysteminc /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/clang/22/include -nostdsysteminc /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/clang/22/include -nostdsysteminc /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/clang/22/include -nostdsysteminc /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/clang/22/include -nostdsysteminc /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/bin/clang -cc1 -internal-isystem /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/build/lib/clang/22/include -nostdsysteminc /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /home/buildbot/buildbot-root/llvm-clang-x86_64-gcc-ubuntu/llvm-project/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2025

LLVM Buildbot has detected a new failure on builder fuchsia-x86_64-linux running on fuchsia-debian-64-us-central1-b-1 while building clang at step 4 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/25723

Here is the relevant piece of the build log for the reference
Step 4 (annotate) failure: 'python ../llvm-zorg/zorg/buildbot/builders/annotated/fuchsia-linux.py ...' (failure)
...
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Failed
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
-- Performing Test C_SUPPORTS_NO_PASS_FAILED_FLAG
-- Performing Test C_SUPPORTS_NO_PASS_FAILED_FLAG - Success
-- Performing Test CXX_SUPPORTS_NO_PASS_FAILED_FLAG
-- Performing Test CXX_SUPPORTS_NO_PASS_FAILED_FLAG - Success
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS - Success
-- Looking for os_signpost_interval_begin
-- Looking for os_signpost_interval_begin - not found
-- Performing Test SUPPORTS_FFILE_PREFIX_MAP
-- Performing Test SUPPORTS_FFILE_PREFIX_MAP - Success
-- Looking for flock
-- Looking for flock - found
-- Linker detection: unknown
-- Performing Test LLVM_LINKER_SUPPORTS_B_SYMBOLIC_FUNCTIONS
-- Performing Test LLVM_LINKER_SUPPORTS_B_SYMBOLIC_FUNCTIONS - Success
-- Performing Test HAS_WERROR_GLOBAL_CTORS
-- Performing Test HAS_WERROR_GLOBAL_CTORS - Success
-- Performing Test LLVM_HAS_NOGLOBAL_CTOR_MUTEX
-- Performing Test LLVM_HAS_NOGLOBAL_CTOR_MUTEX - Success
-- Looking for __x86_64__
-- Looking for __x86_64__ - found
-- Found Git: /usr/bin/git (found version "2.34.1") 
-- Looking for logf128
-- Looking for logf128 - not found
-- Targeting X86
-- Targeting ARM
-- Targeting AArch64
-- Targeting RISCV
-- LLD version: 22.0.0
-- Looking for sys/resource.h
-- Looking for sys/resource.h - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for dladdr
-- Looking for dladdr - found
-- Clang version: 22.0.0git
-- Looking for include file sys/inotify.h
-- Looking for include file sys/inotify.h - found
-- CTTestTidyModule ignored -- Loadable modules not supported on this platform.
Step 7 (check) failure: check (failure)
...
[852/1442] Running the Clang regression tests
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using clang: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/bin/clang
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find cir-opt in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/subst.py:126: note: Did not find clang-repl in /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/bin:/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/bin
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/bin/ld.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/bin/lld-link
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/bin/ld64.lld
llvm-lit: /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/bin/wasm-ld
-- Testing: 22711 tests, 60 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.
FAIL: Clang :: SemaOpenCL/address-spaces.cl (21848 of 22711)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/lib/clang/22/include -nostdsysteminc /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/lib/clang/22/include -nostdsysteminc /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/lib/clang/22/include -nostdsysteminc /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/lib/clang/22/include -nostdsysteminc /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/lib/clang/22/include -nostdsysteminc /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/lib/clang/22/include -nostdsysteminc /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/lib/clang/22/include -nostdsysteminc /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/bin/clang -cc1 -internal-isystem /var/lib/buildbot/fuchsia-x86_64-linux/build/llvm-build-c9q1q15j/lib/clang/22/include -nostdsysteminc /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
********************
Failed Tests (1):
  Clang :: SemaOpenCL/address-spaces.cl


Testing Time: 157.80s

Total Discovered Tests: 48196
  Skipped          :     8 (0.02%)
  Unsupported      :  1179 (2.45%)
  Passed           : 46982 (97.48%)
  Expectedly Failed:    26 (0.05%)
  Failed           :     1 (0.00%)
[1212/1442] Building CXX object unittests/Support/CMakeFiles/SupportTests.dir/JobserverTest.cpp.o
/var/lib/buildbot/fuchsia-x86_64-linux/llvm-project/llvm/unittests/Support/JobserverTest.cpp:353:20: warning: lambda capture 'i' is not used [-Wunused-lambda-capture]
  353 |     Pool.async([&, i] {
      |                  ~~^

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-aarch64-darwin running on doug-worker-5 while building clang at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/28787

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/lib/clang/22/include -nostdsysteminc /Users/buildbot/buildbot-root2/aarch64-darwin/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/lib/clang/22/include -nostdsysteminc /Users/buildbot/buildbot-root2/aarch64-darwin/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/lib/clang/22/include -nostdsysteminc /Users/buildbot/buildbot-root2/aarch64-darwin/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/lib/clang/22/include -nostdsysteminc /Users/buildbot/buildbot-root2/aarch64-darwin/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/lib/clang/22/include -nostdsysteminc /Users/buildbot/buildbot-root2/aarch64-darwin/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/lib/clang/22/include -nostdsysteminc /Users/buildbot/buildbot-root2/aarch64-darwin/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/lib/clang/22/include -nostdsysteminc /Users/buildbot/buildbot-root2/aarch64-darwin/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/bin/clang -cc1 -internal-isystem /Volumes/ExternalSSD/buildbot-root/aarch64-darwin/build/lib/clang/22/include -nostdsysteminc /Users/buildbot/buildbot-root2/aarch64-darwin/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /Users/buildbot/buildbot-root2/aarch64-darwin/llvm-project/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************


@hnrklssn
Copy link
Member Author

Fix here: #162785

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2025

LLVM Buildbot has detected a new failure on builder clang-debian-cpp20 running on clang-debian-cpp20 while building clang at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/108/builds/18599

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/clang -cc1 -internal-isystem /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/lib/clang/22/include -nostdsysteminc /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/clang -cc1 -internal-isystem /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/lib/clang/22/include -nostdsysteminc /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/clang -cc1 -internal-isystem /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/lib/clang/22/include -nostdsysteminc /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/clang -cc1 -internal-isystem /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/lib/clang/22/include -nostdsysteminc /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/clang -cc1 -internal-isystem /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/lib/clang/22/include -nostdsysteminc /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/clang -cc1 -internal-isystem /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/lib/clang/22/include -nostdsysteminc /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/clang -cc1 -internal-isystem /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/lib/clang/22/include -nostdsysteminc /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/bin/clang -cc1 -internal-isystem /vol/worker/clang-debian-cpp20/clang-debian-cpp20/build/lib/clang/22/include -nostdsysteminc /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /vol/worker/clang-debian-cpp20/clang-debian-cpp20/llvm-project/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************


hnrklssn added a commit that referenced this pull request Oct 10, 2025
This test was broken by
#162714. Previously the
`[[clang::opencl_private]]` attribute was applied first, resulting in
the clashing `__global` attribute being ignored. Now that `__global` is
applied first, it results in an error, and then
`[[clang::opencl_private]]` is applied, resulting in another error.
@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-bootstrap-hwasan running on sanitizer-buildbot12 while building clang at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/55/builds/18431

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Success
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
-- Performing Test C_SUPPORTS_NO_PASS_FAILED_FLAG
-- Performing Test C_SUPPORTS_NO_PASS_FAILED_FLAG - Success
-- Performing Test CXX_SUPPORTS_NO_PASS_FAILED_FLAG
-- Performing Test CXX_SUPPORTS_NO_PASS_FAILED_FLAG - Success
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS - Success
-- Looking for os_signpost_interval_begin
-- Looking for os_signpost_interval_begin - not found
-- Looking for flock
-- Looking for flock - found
-- Found Python3: /usr/bin/python3 (found version "3.13.3") found components: Interpreter
-- LLVM host triple: aarch64-unknown-linux-gnu
-- LLVM default target triple: aarch64-unknown-linux-gnu
-- Using libc++abi testing configuration: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/libcxxabi/test/configs/llvm-libc++abi-shared.cfg.in
-- Looking for fopen in c
-- Looking for fopen in c - found
-- Looking for __gcc_personality_v0 in gcc_s
-- Looking for __gcc_personality_v0 in gcc_s - found
-- Looking for __aeabi_uldivmod in gcc
-- Looking for __aeabi_uldivmod in gcc - not found
-- Performing Test C_SUPPORTS_COMMENT_LIB_PRAGMA
-- Performing Test C_SUPPORTS_COMMENT_LIB_PRAGMA - Success
-- Looking for dladdr in dl
-- Looking for dladdr in dl - found
-- Looking for pthread_once in pthread
-- Looking for pthread_once in pthread - found
-- Looking for __cxa_thread_atexit_impl in c
-- Looking for __cxa_thread_atexit_impl in c - found
-- Performing Test CXX_SUPPORTS_FNO_OMIT_FRAME_POINTER_FLAG
-- Performing Test CXX_SUPPORTS_FNO_OMIT_FRAME_POINTER_FLAG - Success
-- Performing Test CXX_SUPPORTS_GLINE_TABLES_ONLY_FLAG
-- Performing Test CXX_SUPPORTS_GLINE_TABLES_ONLY_FLAG - Success
-- Performing Test CXX_SUPPORTS_FSTRICT_ALIASING_FLAG
-- Performing Test CXX_SUPPORTS_FSTRICT_ALIASING_FLAG - Success
-- Performing Test CXX_SUPPORTS_EHSC_FLAG
-- Performing Test CXX_SUPPORTS_EHSC_FLAG - Failed
-- Performing Test C_SUPPORTS_FUNWIND_TABLES_FLAG
-- Performing Test C_SUPPORTS_FUNWIND_TABLES_FLAG - Success
-- Performing Test CXX_SUPPORTS_WALL_FLAG
Step 11 (stage2/hwasan check) failure: stage2/hwasan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/main.py:74: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 91222 tests, 72 workers --
Testing:  0.. 10.. 20
FAIL: Clang :: SemaOpenCL/address-spaces.cl (21808 of 91222)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build_hwasan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
67.54s: Clang :: Driver/fsanitize.c
42.99s: LLVM :: CodeGen/AMDGPU/sched-group-barrier-pipeline-solver.mir
40.64s: Clang :: Driver/arm-cortex-cpus-2.c
38.96s: Clang :: Driver/arm-cortex-cpus-1.c
35.12s: Clang :: Preprocessor/riscv-target-features.c
33.21s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
32.02s: LLVM :: CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
31.26s: Clang :: OpenMP/target_update_codegen.cpp
29.94s: Clang :: Headers/arm-neon-header.c
29.11s: Clang :: Preprocessor/aarch64-target-features.c
28.66s: Clang :: Preprocessor/arm-target-features.c
27.43s: Clang :: Driver/linux-ld.c
26.31s: Clang :: CodeGen/X86/avx-builtins.c
26.28s: Clang :: CodeGen/X86/sse2-builtins.c
25.72s: Clang :: Driver/clang_f_opts.c
Step 14 (stage3/hwasan check) failure: stage3/hwasan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/llvm/utils/lit/lit/main.py:74: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 87866 tests, 72 workers --
Testing:  0.. 10.. 20
FAIL: Clang :: SemaOpenCL/address-spaces.cl (21816 of 87866)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm_build2_hwasan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-hwasan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
23.31s: LLVM :: tools/llvm-reduce/parallel-workitem-kill.ll
13.44s: Clang :: Driver/fsanitize.c
12.11s: LLVM :: CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
10.01s: LLVM-Unit :: Support/./SupportTests/ProgramEnvTest/TestExecuteNoWaitDetached
8.30s: Clang :: Preprocessor/riscv-target-features.c
8.25s: Clang :: OpenMP/target_update_codegen.cpp
8.20s: Clang :: Driver/arm-cortex-cpus-2.c
8.14s: Clang :: CodeGen/X86/avx-builtins.c
8.05s: Clang :: Driver/arm-cortex-cpus-1.c
8.05s: Clang :: CodeGen/X86/sse2-builtins.c
8.03s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
7.58s: LLVM :: CodeGen/AMDGPU/memintrinsic-unroll.ll
7.30s: Clang :: CodeGen/AArch64/sve-intrinsics/acle_sve_reinterpret.c
6.53s: Clang :: Preprocessor/aarch64-target-features.c
6.41s: Clang :: CodeGen/X86/avx2-builtins.c

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2025

LLVM Buildbot has detected a new failure on builder llvm-clang-x86_64-darwin running on doug-worker-3 while building clang at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/23/builds/14548

Here is the relevant piece of the build log for the reference
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang -cc1 -internal-isystem /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/lib/clang/22/include -nostdsysteminc /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang -cc1 -internal-isystem /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/lib/clang/22/include -nostdsysteminc /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang -cc1 -internal-isystem /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/lib/clang/22/include -nostdsysteminc /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang -cc1 -internal-isystem /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/lib/clang/22/include -nostdsysteminc /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang -cc1 -internal-isystem /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/lib/clang/22/include -nostdsysteminc /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang -cc1 -internal-isystem /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/lib/clang/22/include -nostdsysteminc /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang -cc1 -internal-isystem /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/lib/clang/22/include -nostdsysteminc /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/bin/clang -cc1 -internal-isystem /Volumes/RAMDisk/buildbot-root/x86_64-darwin/build/lib/clang/22/include -nostdsysteminc /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /Volumes/RAMDisk/buildbot-root/x86_64-darwin/llvm-project/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************


llvm-sync bot pushed a commit to arm/arm-toolchain that referenced this pull request Oct 10, 2025
This test was broken by
llvm/llvm-project#162714. Previously the
`[[clang::opencl_private]]` attribute was applied first, resulting in
the clashing `__global` attribute being ignored. Now that `__global` is
applied first, it results in an error, and then
`[[clang::opencl_private]]` is applied, resulting in another error.
@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-bootstrap-ubsan running on sanitizer-buildbot9 while building clang at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/85/builds/14387

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Success
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
-- Performing Test C_SUPPORTS_NO_PASS_FAILED_FLAG
-- Performing Test C_SUPPORTS_NO_PASS_FAILED_FLAG - Success
-- Performing Test CXX_SUPPORTS_NO_PASS_FAILED_FLAG
-- Performing Test CXX_SUPPORTS_NO_PASS_FAILED_FLAG - Success
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS - Success
-- Looking for os_signpost_interval_begin
-- Looking for os_signpost_interval_begin - not found
-- Looking for flock
-- Looking for flock - found
-- Found Python3: /usr/bin/python3 (found version "3.13.3") found components: Interpreter
-- LLVM host triple: aarch64-unknown-linux-gnu
-- LLVM default target triple: aarch64-unknown-linux-gnu
-- Using libc++abi testing configuration: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/libcxxabi/test/configs/llvm-libc++abi-shared.cfg.in
-- Looking for fopen in c
-- Looking for fopen in c - found
-- Looking for __gcc_personality_v0 in gcc_s
-- Looking for __gcc_personality_v0 in gcc_s - found
-- Looking for __aeabi_uldivmod in gcc
-- Looking for __aeabi_uldivmod in gcc - not found
-- Performing Test C_SUPPORTS_COMMENT_LIB_PRAGMA
-- Performing Test C_SUPPORTS_COMMENT_LIB_PRAGMA - Success
-- Looking for dladdr in dl
-- Looking for dladdr in dl - found
-- Looking for pthread_once in pthread
-- Looking for pthread_once in pthread - found
-- Looking for __cxa_thread_atexit_impl in c
-- Looking for __cxa_thread_atexit_impl in c - found
-- Performing Test CXX_SUPPORTS_FNO_OMIT_FRAME_POINTER_FLAG
-- Performing Test CXX_SUPPORTS_FNO_OMIT_FRAME_POINTER_FLAG - Success
-- Performing Test CXX_SUPPORTS_GLINE_TABLES_ONLY_FLAG
-- Performing Test CXX_SUPPORTS_GLINE_TABLES_ONLY_FLAG - Success
-- Performing Test CXX_SUPPORTS_FSTRICT_ALIASING_FLAG
-- Performing Test CXX_SUPPORTS_FSTRICT_ALIASING_FLAG - Success
-- Performing Test CXX_SUPPORTS_EHSC_FLAG
-- Performing Test CXX_SUPPORTS_EHSC_FLAG - Failed
-- Performing Test C_SUPPORTS_FUNWIND_TABLES_FLAG
-- Performing Test C_SUPPORTS_FUNWIND_TABLES_FLAG - Success
-- Performing Test CXX_SUPPORTS_WALL_FLAG
Step 11 (stage2/ubsan check) failure: stage2/ubsan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/main.py:74: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 91223 tests, 72 workers --
Testing:  0.. 10.. 20
FAIL: Clang :: SemaOpenCL/address-spaces.cl (21825 of 91223)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
99.13s: Clang :: Driver/fsanitize.c
62.12s: Clang :: Driver/arm-cortex-cpus-2.c
61.12s: Clang :: Driver/arm-cortex-cpus-1.c
57.01s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
54.91s: Clang :: Preprocessor/riscv-target-features.c
54.32s: Clang :: OpenMP/target_update_codegen.cpp
46.77s: Clang :: Preprocessor/arm-target-features.c
46.70s: Clang :: Preprocessor/aarch64-target-features.c
40.95s: Clang :: Driver/linux-ld.c
39.80s: Clang :: Preprocessor/predefined-arch-macros.c
38.42s: LLVM :: CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
38.26s: Clang :: Driver/clang_f_opts.c
37.27s: Clang :: Driver/cl-options.c
35.16s: Clang :: Analysis/a_flaky_crash.cpp
34.45s: LLVM :: CodeGen/AMDGPU/memintrinsic-unroll.ll
Step 14 (stage3/ubsan check) failure: stage3/ubsan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/llvm/utils/lit/lit/main.py:74: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 87866 tests, 72 workers --
Testing:  0.. 10.. 20
FAIL: Clang :: SemaOpenCL/address-spaces.cl (21814 of 87866)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm_build2_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-ubsan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
24.50s: Clang :: Driver/fsanitize.c
24.14s: LLVM :: CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
23.64s: LLVM :: tools/llvm-reduce/parallel-workitem-kill.ll
17.08s: Clang :: CodeGen/X86/avx-builtins.c
16.12s: Clang :: CodeGen/X86/sse2-builtins.c
15.76s: Clang :: CodeGen/AArch64/sve-intrinsics/acle_sve_reinterpret.c
15.58s: Clang :: Preprocessor/riscv-target-features.c
15.15s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
14.89s: Clang :: OpenMP/target_update_codegen.cpp
13.76s: Clang :: CodeGen/X86/avx2-builtins.c
13.65s: Clang :: CodeGen/X86/avx512vlbw-builtins.c
13.61s: Clang :: Driver/arm-cortex-cpus-2.c
13.33s: LLVM :: CodeGen/AMDGPU/memintrinsic-unroll.ll
13.11s: Clang :: Driver/arm-cortex-cpus-1.c
12.80s: Clang :: CodeGen/X86/mmx-builtins.c

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2025

LLVM Buildbot has detected a new failure on builder clang-aarch64-sve2-vla-2stage running on linaro-g4-02 while building clang at step 12 "ninja check 2".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/199/builds/6448

Here is the relevant piece of the build log for the reference
Step 12 (ninja check 2) failure: stage 2 checked (failure)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/lib/clang/22/include -nostdsysteminc /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/lib/clang/22/include -nostdsysteminc /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/lib/clang/22/include -nostdsysteminc /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/lib/clang/22/include -nostdsysteminc /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/lib/clang/22/include -nostdsysteminc /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/lib/clang/22/include -nostdsysteminc /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/lib/clang/22/include -nostdsysteminc /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/stage2/lib/clang/22/include -nostdsysteminc /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /home/tcwg-buildbot/worker/clang-aarch64-sve2-vla-2stage/llvm/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2025

LLVM Buildbot has detected a new failure on builder clang-aarch64-sve-vla-2stage running on linaro-g3-02 while building clang at step 12 "ninja check 2".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/41/builds/9510

Here is the relevant piece of the build log for the reference
Step 12 (ninja check 2) failure: stage 2 checked (failure)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/stage2/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/stage2/lib/clang/22/include -nostdsysteminc /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/llvm/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/stage2/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/stage2/lib/clang/22/include -nostdsysteminc /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/llvm/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/stage2/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/stage2/lib/clang/22/include -nostdsysteminc /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/llvm/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/stage2/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/stage2/lib/clang/22/include -nostdsysteminc /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/llvm/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/stage2/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/stage2/lib/clang/22/include -nostdsysteminc /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/llvm/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/stage2/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/stage2/lib/clang/22/include -nostdsysteminc /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/llvm/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/stage2/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/stage2/lib/clang/22/include -nostdsysteminc /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/llvm/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/stage2/bin/clang -cc1 -internal-isystem /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/stage2/lib/clang/22/include -nostdsysteminc /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/llvm/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /home/tcwg-buildbot/worker/clang-aarch64-sve-vla-2stage/llvm/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************


@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-bootstrap-asan running on sanitizer-buildbot7 while building clang at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/24/builds/13513

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Success
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
-- Performing Test C_SUPPORTS_NO_PASS_FAILED_FLAG
-- Performing Test C_SUPPORTS_NO_PASS_FAILED_FLAG - Success
-- Performing Test CXX_SUPPORTS_NO_PASS_FAILED_FLAG
-- Performing Test CXX_SUPPORTS_NO_PASS_FAILED_FLAG - Success
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS - Success
-- Looking for os_signpost_interval_begin
-- Looking for os_signpost_interval_begin - not found
-- Looking for flock
-- Looking for flock - found
-- Found Python3: /usr/bin/python3 (found version "3.13.3") found components: Interpreter
-- LLVM host triple: aarch64-unknown-linux-gnu
-- LLVM default target triple: aarch64-unknown-linux-gnu
-- Using libc++abi testing configuration: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/libcxxabi/test/configs/llvm-libc++abi-shared.cfg.in
-- Looking for fopen in c
-- Looking for fopen in c - found
-- Looking for __gcc_personality_v0 in gcc_s
-- Looking for __gcc_personality_v0 in gcc_s - found
-- Looking for __aeabi_uldivmod in gcc
-- Looking for __aeabi_uldivmod in gcc - not found
-- Performing Test C_SUPPORTS_COMMENT_LIB_PRAGMA
-- Performing Test C_SUPPORTS_COMMENT_LIB_PRAGMA - Success
-- Looking for dladdr in dl
-- Looking for dladdr in dl - found
-- Looking for pthread_once in pthread
-- Looking for pthread_once in pthread - found
-- Looking for __cxa_thread_atexit_impl in c
-- Looking for __cxa_thread_atexit_impl in c - found
-- Performing Test CXX_SUPPORTS_FNO_OMIT_FRAME_POINTER_FLAG
-- Performing Test CXX_SUPPORTS_FNO_OMIT_FRAME_POINTER_FLAG - Success
-- Performing Test CXX_SUPPORTS_GLINE_TABLES_ONLY_FLAG
-- Performing Test CXX_SUPPORTS_GLINE_TABLES_ONLY_FLAG - Success
-- Performing Test CXX_SUPPORTS_FSTRICT_ALIASING_FLAG
-- Performing Test CXX_SUPPORTS_FSTRICT_ALIASING_FLAG - Success
-- Performing Test CXX_SUPPORTS_EHSC_FLAG
-- Performing Test CXX_SUPPORTS_EHSC_FLAG - Failed
-- Performing Test C_SUPPORTS_FUNWIND_TABLES_FLAG
-- Performing Test C_SUPPORTS_FUNWIND_TABLES_FLAG - Success
-- Performing Test CXX_SUPPORTS_WALL_FLAG
Step 11 (stage2/asan check) failure: stage2/asan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/main.py:74: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 91223 tests, 72 workers --
Testing:  0.. 10.. 20
FAIL: Clang :: SemaOpenCL/address-spaces.cl (21816 of 91223)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build_asan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
203.75s: Clang :: Driver/fsanitize.c
134.39s: Clang :: Preprocessor/riscv-target-features.c
126.80s: Clang :: Driver/arm-cortex-cpus-2.c
124.48s: Clang :: Driver/arm-cortex-cpus-1.c
122.04s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
115.25s: Clang :: OpenMP/target_update_codegen.cpp
105.74s: LLVM :: CodeGen/AMDGPU/sched-group-barrier-pipeline-solver.mir
104.96s: Clang :: Preprocessor/arm-target-features.c
104.49s: Clang :: Preprocessor/aarch64-target-features.c
97.53s: LLVM :: CodeGen/RISCV/attributes.ll
87.30s: Clang :: Preprocessor/predefined-arch-macros.c
83.89s: Clang :: Driver/linux-ld.c
79.39s: Clang :: Driver/clang_f_opts.c
75.50s: Clang :: Driver/cl-options.c
74.92s: Clang :: Analysis/a_flaky_crash.cpp
Step 14 (stage3/asan check) failure: stage3/asan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/main.py:74: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 87866 tests, 72 workers --
Testing:  0.. 10.. 20
FAIL: Clang :: SemaOpenCL/address-spaces.cl (21806 of 87866)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm_build2_asan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-asan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
23.30s: LLVM :: tools/llvm-reduce/parallel-workitem-kill.ll
13.43s: Clang :: Driver/fsanitize.c
11.89s: LLVM :: CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
10.02s: LLVM-Unit :: Support/./SupportTests/ProgramEnvTest/TestExecuteNoWaitDetached
8.37s: Clang :: Driver/arm-cortex-cpus-2.c
8.22s: Clang :: CodeGen/X86/avx-builtins.c
8.14s: Clang :: OpenMP/target_update_codegen.cpp
8.13s: Clang :: Preprocessor/riscv-target-features.c
8.02s: Clang :: CodeGen/X86/sse2-builtins.c
8.01s: Clang :: Driver/arm-cortex-cpus-1.c
7.97s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
7.50s: LLVM :: CodeGen/AMDGPU/memintrinsic-unroll.ll
7.37s: Clang :: CodeGen/AArch64/sve-intrinsics/acle_sve_reinterpret.c
6.67s: Clang :: Preprocessor/aarch64-target-features.c
6.47s: Clang :: Preprocessor/arm-target-features.c

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-x86_64-linux-fast running on sanitizer-buildbot3 while building clang at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/169/builds/15820

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/main.py:74: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 92571 tests, 64 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60
FAIL: Clang :: SemaOpenCL/address-spaces.cl (14743 of 92571)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
363.78s: LLVM :: CodeGen/AMDGPU/sched-group-barrier-pipeline-solver.mir
262.73s: Clang :: Driver/fsanitize.c
208.62s: LLVM :: CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
197.69s: Clang :: Preprocessor/riscv-target-features.c
168.97s: Clang :: OpenMP/target_update_codegen.cpp
164.53s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
156.16s: Clang :: Preprocessor/arm-target-features.c
155.26s: Clang :: Driver/arm-cortex-cpus-2.c
154.61s: Clang :: Preprocessor/aarch64-target-features.c
154.59s: Clang :: Driver/arm-cortex-cpus-1.c
148.65s: LLVM :: CodeGen/AMDGPU/memintrinsic-unroll.ll
132.73s: Clang :: CodeGen/X86/sse2-builtins.c
132.23s: Clang :: Analysis/a_flaky_crash.cpp
132.15s: Clang :: Preprocessor/predefined-arch-macros.c
131.06s: Clang :: CodeGen/X86/avx-builtins.c
Step 10 (stage2/asan_ubsan check) failure: stage2/asan_ubsan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/main.py:74: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 92571 tests, 64 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60
FAIL: Clang :: SemaOpenCL/address-spaces.cl (14743 of 92571)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_asan_ubsan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
363.78s: LLVM :: CodeGen/AMDGPU/sched-group-barrier-pipeline-solver.mir
262.73s: Clang :: Driver/fsanitize.c
208.62s: LLVM :: CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
197.69s: Clang :: Preprocessor/riscv-target-features.c
168.97s: Clang :: OpenMP/target_update_codegen.cpp
164.53s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
156.16s: Clang :: Preprocessor/arm-target-features.c
155.26s: Clang :: Driver/arm-cortex-cpus-2.c
154.61s: Clang :: Preprocessor/aarch64-target-features.c
154.59s: Clang :: Driver/arm-cortex-cpus-1.c
148.65s: LLVM :: CodeGen/AMDGPU/memintrinsic-unroll.ll
132.73s: Clang :: CodeGen/X86/sse2-builtins.c
132.23s: Clang :: Analysis/a_flaky_crash.cpp
132.15s: Clang :: Preprocessor/predefined-arch-macros.c
131.06s: Clang :: CodeGen/X86/avx-builtins.c
Step 14 (stage2/msan check) failure: stage2/msan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/llvm/utils/lit/lit/main.py:74: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 92569 tests, 64 workers --
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70
FAIL: Clang :: SemaOpenCL/address-spaces.cl (12006 of 92569)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-x86_64-linux-fast/build/llvm_build_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-x86_64-linux-fast/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
232.21s: LLVM :: CodeGen/AMDGPU/memintrinsic-unroll.ll
230.90s: LLVM :: CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
105.64s: LLVM :: CodeGen/AMDGPU/sched-group-barrier-pipeline-solver.mir
73.30s: Clang :: CodeGen/X86/avx-builtins.c
71.47s: Clang :: CodeGen/X86/sse2-builtins.c
66.63s: Clang :: CodeGen/X86/avx512ifmavl-builtins.c
58.07s: Clang :: CodeGen/X86/sse-builtins-constrained.c
57.28s: Clang :: CodeGen/X86/tbm-builtins.c
53.41s: LLVM :: CodeGen/AMDGPU/a-v-global-atomicrmw.ll
52.13s: Clang :: CodeGen/AArch64/sve2p1-intrinsics/acle_sve2p1_get4_bool.c
51.20s: Clang :: CodeGen/X86/avx2-builtins.c
51.02s: Clang :: CodeGen/X86/avx512bitalg-builtins.c
51.02s: LLVM :: CodeGen/AMDGPU/shufflevector.v3i32.v4i32.ll
50.81s: Clang :: CodeGen/X86/x86-builtins.c
50.53s: Clang :: CodeGen/AArch64/sve-intrinsics/acle_sve_reinterpret.c

@llvm-ci
Copy link
Collaborator

llvm-ci commented Oct 10, 2025

LLVM Buildbot has detected a new failure on builder sanitizer-aarch64-linux-bootstrap-msan running on sanitizer-buildbot10 while building clang at step 2 "annotate".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/94/builds/11625

Here is the relevant piece of the build log for the reference
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
-- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Success
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG
-- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
-- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
-- Performing Test C_SUPPORTS_NO_PASS_FAILED_FLAG
-- Performing Test C_SUPPORTS_NO_PASS_FAILED_FLAG - Success
-- Performing Test CXX_SUPPORTS_NO_PASS_FAILED_FLAG
-- Performing Test CXX_SUPPORTS_NO_PASS_FAILED_FLAG - Success
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS - Success
-- Looking for os_signpost_interval_begin
-- Looking for os_signpost_interval_begin - not found
-- Looking for flock
-- Looking for flock - found
-- Found Python3: /usr/bin/python3 (found version "3.13.3") found components: Interpreter
-- LLVM host triple: aarch64-unknown-linux-gnu
-- LLVM default target triple: aarch64-unknown-linux-gnu
-- Using libc++abi testing configuration: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/libcxxabi/test/configs/llvm-libc++abi-shared.cfg.in
-- Looking for fopen in c
-- Looking for fopen in c - found
-- Looking for __gcc_personality_v0 in gcc_s
-- Looking for __gcc_personality_v0 in gcc_s - found
-- Looking for __aeabi_uldivmod in gcc
-- Looking for __aeabi_uldivmod in gcc - not found
-- Performing Test C_SUPPORTS_COMMENT_LIB_PRAGMA
-- Performing Test C_SUPPORTS_COMMENT_LIB_PRAGMA - Success
-- Looking for dladdr in dl
-- Looking for dladdr in dl - found
-- Looking for pthread_once in pthread
-- Looking for pthread_once in pthread - found
-- Looking for __cxa_thread_atexit_impl in c
-- Looking for __cxa_thread_atexit_impl in c - found
-- Performing Test CXX_SUPPORTS_FNO_OMIT_FRAME_POINTER_FLAG
-- Performing Test CXX_SUPPORTS_FNO_OMIT_FRAME_POINTER_FLAG - Success
-- Performing Test CXX_SUPPORTS_GLINE_TABLES_ONLY_FLAG
-- Performing Test CXX_SUPPORTS_GLINE_TABLES_ONLY_FLAG - Success
-- Performing Test CXX_SUPPORTS_FSTRICT_ALIASING_FLAG
-- Performing Test CXX_SUPPORTS_FSTRICT_ALIASING_FLAG - Success
-- Performing Test CXX_SUPPORTS_EHSC_FLAG
-- Performing Test CXX_SUPPORTS_EHSC_FLAG - Failed
-- Performing Test C_SUPPORTS_FUNWIND_TABLES_FLAG
-- Performing Test C_SUPPORTS_FUNWIND_TABLES_FLAG - Success
-- Performing Test CXX_SUPPORTS_WALL_FLAG
Step 11 (stage2/msan check) failure: stage2/msan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:74: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 91221 tests, 72 workers --
Testing:  0.. 10.. 20
FAIL: Clang :: SemaOpenCL/address-spaces.cl (21801 of 91221)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
112.38s: LLVM :: CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
93.53s: LLVM :: CodeGen/AMDGPU/memintrinsic-unroll.ll
71.34s: Clang :: CodeGen/X86/sse2-builtins.c
70.43s: Clang :: CodeGen/X86/avx-builtins.c
66.22s: LLVM :: CodeGen/AMDGPU/sched-group-barrier-pipeline-solver.mir
57.82s: Clang :: CodeGen/X86/avx2-builtins.c
56.40s: Clang :: CodeGen/X86/rot-intrinsics.c
53.14s: Clang :: CodeGen/AArch64/sve-intrinsics/acle_sve_reinterpret.c
53.04s: Clang :: Driver/fsanitize.c
52.19s: Clang :: CodeGen/X86/xop-builtins.c
51.97s: Clang :: CodeGen/X86/avx512vlbw-reduceIntrin.c
51.90s: Clang :: CodeGen/X86/avx512f-builtins.c
51.16s: Clang :: CodeGen/X86/mmx-builtins.c
51.13s: Clang :: CodeGen/X86/avx512vlbw-builtins.c
49.80s: Clang :: CodeGen/X86/sse41-builtins.c
Step 14 (stage3/msan check) failure: stage3/msan check (failure)
...
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using lld-link: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/lld-link
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using ld64.lld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:530: note: using wasm-ld: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/llvm/utils/lit/lit/main.py:74: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 87866 tests, 72 workers --
Testing:  0.. 10.. 20
FAIL: Clang :: SemaOpenCL/address-spaces.cl (21800 of 87866)
******************** TEST 'Clang :: SemaOpenCL/address-spaces.cl' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only # RUN: at line 1
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only # RUN: at line 2
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL2.0 -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only # RUN: at line 3
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=CL3.0 -cl-ext=+__opencl_c_generic_address_space -verify=expected -pedantic -fsyntax-only
/home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only # RUN: at line 4
+ /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/bin/clang -cc1 -internal-isystem /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm_build2_msan/lib/clang/22/include -nostdsysteminc /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl -cl-std=clc++1.0 -verify -pedantic -fsyntax-only
error: 'expected-error' diagnostics seen but not expected: 
  File /home/b/sanitizer-aarch64-linux-bootstrap-msan/build/llvm-project/clang/test/SemaOpenCL/address-spaces.cl Line 268: function scope variable cannot be declared in global address space
1 error generated.

--

********************
Testing:  0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90.. 
Slowest Tests:
--------------------------------------------------------------------------
23.64s: LLVM :: tools/llvm-reduce/parallel-workitem-kill.ll
23.62s: LLVM :: CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
23.13s: Clang :: Driver/fsanitize.c
18.16s: Clang :: CodeGen/X86/avx-builtins.c
16.60s: Clang :: CodeGen/X86/sse2-builtins.c
16.06s: Clang :: CodeGen/AArch64/sve-intrinsics/acle_sve_reinterpret.c
15.16s: Clang :: Preprocessor/riscv-target-features.c
14.50s: Clang :: OpenMP/target_defaultmap_codegen_01.cpp
14.32s: Clang :: OpenMP/target_update_codegen.cpp
13.95s: Clang :: CodeGen/X86/avx2-builtins.c
13.91s: LLVM :: CodeGen/AMDGPU/memintrinsic-unroll.ll
13.62s: Clang :: CodeGen/X86/avx512f-builtins.c
12.90s: Clang :: Driver/arm-cortex-cpus-2.c
12.55s: Clang :: CodeGen/X86/rot-intrinsics.c
12.46s: Clang :: CodeGen/X86/mmx-builtins.c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang:frontend Language frontend issues, e.g. anything involving "Sema" clang Clang issues not falling into any other category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants