[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 22:59:31 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `flang-aarch64-latest-gcc` running on `linaro-flang-aarch64-latest-gcc` while building `llvm` at step 5 "build-unified-tree".

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

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

```
Step 5 (build-unified-tree) failure: build (failure)
...
15.859 [6279/133/1060] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/JMCInstrumenter.cpp.o
15.859 [6279/132/1061] Creating library symlink lib/libLLVMTableGenCommon.so
15.860 [6279/131/1062] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LowLevelTypeUtils.cpp.o
15.864 [6279/130/1063] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/MachineModuleInfoImpls.cpp.o
15.998 [6279/129/1064] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/MultiHazardRecognizer.cpp.o
15.999 [6279/128/1065] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/NonRelocatableStringpool.cpp.o
19.850 [6279/127/1066] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LoopTraversal.cpp.o
20.196 [6279/126/1067] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/AllocationOrder.cpp.o
20.222 [6279/125/1068] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/EdgeBundles.cpp.o
20.389 [6279/124/1069] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CommandFlags.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CommandFlags.cpp.o 
/usr/local/bin/c++ -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/lib/CodeGen -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/llvm/lib/CodeGen -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/build/include -I/home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/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 -O3 -DNDEBUG -std=c++17 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CommandFlags.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CommandFlags.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/CommandFlags.cpp.o -c /home/tcwg-buildbot/worker/flang-aarch64-latest-gcc/llvm-project/llvm/lib/CodeGen/CommandFlags.cpp
In file included from ../llvm-project/llvm/include/llvm/ADT/bit.h:17,
                 from ../llvm-project/llvm/include/llvm/Support/MathExtras.h:16,
                 from ../llvm-project/llvm/include/llvm/ADT/BitmaskEnum.h:17,
                 from ../llvm-project/llvm/include/llvm/ADT/FloatingPointMode.h:18,
                 from ../llvm-project/llvm/include/llvm/CodeGen/CommandFlags.h:18,
                 from ../llvm-project/llvm/lib/CodeGen/CommandFlags.cpp:15:
../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")]]
      |                                           ^
../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
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../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;
      |        ^~~~~~~~
../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")]]
      |                                           ^
../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
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../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;
      |        ^~~~~~~~
../llvm-project/llvm/include/llvm/Support/Compiler.h:120:43: warning: attribute ignored [-Wattributes]
  120 | #define LLVM_ATTRIBUTE_VISIBILITY_DEFAULT [[gnu::visibility("default")]]
      |                                           ^
../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
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../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;
      |        ^~~~~~~~
../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")]]
      |                                           ^
../llvm-project/llvm/include/llvm/Support/Compiler.h:213:18: note: in expansion of macro ‘LLVM_ATTRIBUTE_VISIBILITY_DEFAULT’

```

</details>

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


More information about the llvm-commits mailing list