[llvm] [llvm] annotate interfaces in llvm/Target for DLL export (PR #143615)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 17 18:52:08 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `flang-runtime-cuda-clang` running on `as-builder-7` while building `llvm` at step 6 "build-default".

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

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (build-default) failure: cmake (failure)
...
17.058 [4685/130/2221] Building X86GenGlobalISel.inc...
17.094 [4684/130/2222] Building CXX object tools/clang/lib/Edit/CMakeFiles/obj.clangEdit.dir/RewriteObjCFoundationAPI.cpp.o
17.133 [4683/130/2223] Building CXX object tools/clang/lib/Analysis/CMakeFiles/obj.clangAnalysis.dir/CFGReachabilityAnalysis.cpp.o
17.166 [4682/130/2224] Building CXX object tools/clang/lib/Analysis/CMakeFiles/obj.clangAnalysis.dir/CFGStmtMap.cpp.o
17.208 [4681/130/2225] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ExpandReductions.cpp.o
17.244 [4680/130/2226] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/ExpandVectorPredication.cpp.o
17.400 [4679/130/2227] Building CXX object tools/clang/lib/Analysis/CMakeFiles/obj.clangAnalysis.dir/IssueHash.cpp.o
17.676 [4678/130/2228] Building CXX object tools/clang/lib/Analysis/CMakeFiles/obj.clangAnalysis.dir/BodyFarm.cpp.o
17.696 [4677/130/2229] Building CXX object tools/clang/lib/Analysis/CMakeFiles/obj.clangAnalysis.dir/PostOrderCFGView.cpp.o
17.744 [4676/130/2230] Building CXX object tools/mlir/lib/ExecutionEngine/CMakeFiles/obj.MLIRExecutionEngineUtils.dir/OptUtils.cpp.o
FAILED: tools/mlir/lib/ExecutionEngine/CMakeFiles/obj.MLIRExecutionEngineUtils.dir/OptUtils.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/build/tools/mlir/lib/ExecutionEngine -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/mlir/lib/ExecutionEngine -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/build/tools/mlir/include -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/mlir/include -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/build/include -I/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/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-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wundef -Wno-unused-but-set-parameter -O3 -DNDEBUG -std=c++17  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/mlir/lib/ExecutionEngine/CMakeFiles/obj.MLIRExecutionEngineUtils.dir/OptUtils.cpp.o -MF tools/mlir/lib/ExecutionEngine/CMakeFiles/obj.MLIRExecutionEngineUtils.dir/OptUtils.cpp.o.d -o tools/mlir/lib/ExecutionEngine/CMakeFiles/obj.MLIRExecutionEngineUtils.dir/OptUtils.cpp.o -c /home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/mlir/lib/ExecutionEngine/OptUtils.cpp
In file included from /home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/ADT/APInt.h:18,
                 from /home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/Analysis/TargetTransformInfo.h:24,
                 from /home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/mlir/lib/ExecutionEngine/OptUtils.cpp:16:
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/Support/Compiler.h:120:43: error: standard attributes in middle of decl-specifiers
  120 | #define LLVM_ATTRIBUTE_VISIBILITY_DEFAULT [[gnu::visibility("default")]]
      |                                           ^
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/Support/Compiler.h:213:18: note: in expansion of macro ‘LLVM_ATTRIBUTE_VISIBILITY_DEFAULT’
  213 | #define LLVM_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/Target/TargetMachine.h:32:8: note: in expansion of macro ‘LLVM_ABI’
   32 | extern LLVM_ABI llvm::cl::opt<bool> NoKernelInfoEndLTO;
      |        ^~~~~~~~
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/Support/Compiler.h:120:43: note: standard attributes must precede the decl-specifiers to apply to the declaration, or follow them to apply to the type
  120 | #define LLVM_ATTRIBUTE_VISIBILITY_DEFAULT [[gnu::visibility("default")]]
      |                                           ^
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/Support/Compiler.h:213:18: note: in expansion of macro ‘LLVM_ATTRIBUTE_VISIBILITY_DEFAULT’
  213 | #define LLVM_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/Target/TargetMachine.h:32:8: note: in expansion of macro ‘LLVM_ABI’
   32 | extern LLVM_ABI llvm::cl::opt<bool> NoKernelInfoEndLTO;
      |        ^~~~~~~~
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/Support/Compiler.h:120:43: warning: attribute ignored [-Wattributes]
  120 | #define LLVM_ATTRIBUTE_VISIBILITY_DEFAULT [[gnu::visibility("default")]]
      |                                           ^
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/Support/Compiler.h:213:18: note: in expansion of macro ‘LLVM_ATTRIBUTE_VISIBILITY_DEFAULT’
  213 | #define LLVM_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/Target/TargetMachine.h:32:8: note: in expansion of macro ‘LLVM_ABI’
   32 | extern LLVM_ABI llvm::cl::opt<bool> NoKernelInfoEndLTO;
      |        ^~~~~~~~
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/Support/Compiler.h:120:43: note: an attribute that appertains to a type-specifier is ignored
  120 | #define LLVM_ATTRIBUTE_VISIBILITY_DEFAULT [[gnu::visibility("default")]]
      |                                           ^
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/Support/Compiler.h:213:18: note: in expansion of macro ‘LLVM_ATTRIBUTE_VISIBILITY_DEFAULT’
  213 | #define LLVM_ABI LLVM_ATTRIBUTE_VISIBILITY_DEFAULT
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/buildbot/worker/as-builder-7/flang-runtime-cuda-clang/llvm-project/llvm/include/llvm/Target/TargetMachine.h:32:8: note: in expansion of macro ‘LLVM_ABI’

```

</details>

https://github.com/llvm/llvm-project/pull/143615


More information about the llvm-commits mailing list