Here is the error message
[3,466 / 5,762] 1 / 149 tests; [Sched] Compiling
llvm/lib/Support/BinaryStreamError.cpp ... (456 actions, 2 running)
ERROR: C:/t/g5cdusdm/external/llvm-project/llvm/BUILD.bazel:253:11:
Compiling llvm/lib/Support/ExtensibleRTTI.cpp [for tool] failed: (Exit
1): clang-cl.exe failed: error executing CppCompile command (from target
@@llvm-project//llvm:Support)
cd /d C:/t/g5cdusdm/execroot/org_tensorflow
SET INCLUDE=C:\Program Files\Microsoft Visual
Studio\2022\Community\VC\Tools\MSVC\14.42.34433\include;C:\Program
Files\Microsoft Visual
Studio\2022\Community\VC\Auxiliary\VS\include;C:\Program Files
(x86)\Windows Kits\10\include\10.0.22621.0\ucrt;C:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\um;C:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\shared;C:\Program Files
(x86)\Windows Kits\10\\include\10.0.22621.0\\winrt;C:\Program Files
(x86)\Windows
Kits\10\\include\10.0.22621.0\\cppwinrt;C:\tools\LLVM\lib\clang\18\include
SET PATH=C:\Program Files\Microsoft Visual
Studio\2022\Community\VC\Tools\MSVC\14.42.34433\bin\HostX64\x64;C:\Program
Files\Microsoft Visual
Studio\2022\Community\Common7\IDE\VC\VCPackages;C:\Program
Files\Microsoft Visual
Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program
Files\Microsoft Visual
Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team
Explorer;C:\Program Files\Microsoft Visual
Studio\2022\Community\MSBuild\Current\bin\Roslyn;C:\Program Files
(x86)\Windows Kits\10\bin\10.0.22621.0\\x64;C:\Program Files
(x86)\Windows Kits\10\bin\\x64;C:\Program Files\Microsoft Visual
Studio\2022\Community\\MSBuild\Current\Bin\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program
Files\Microsoft Visual Studio\2022\Community\Common7\IDE\;C:\Program
Files\Microsoft Visual
Studio\2022\Community\Common7\Tools\;;C:\Windows\system32;C:\Program
Files\Microsoft Visual
Studio\2022\Community\Common7\IDE\VC\Linux\bin\ConnectionManagerExe
SET PWD=/proc/self/cwd
SET TEMP=C:\TMP
SET TMP=C:\TMP
SET VSLANG=1033
C:\tools\LLVM\bin\clang-cl.exe /nologo /DCOMPILER_MSVC /DNOMINMAX
/D_WIN32_WINNT=0x0601 /D_CRT_SECURE_NO_DEPRECATE
/D_CRT_SECURE_NO_WARNINGS /bigobj /Zm500 /EHsc /wd4351 /wd4291 /wd4250
/wd4996 /Iexternal/llvm-project
/Ibazel-out/x64_windows-opt-exec-ST-766941a09caf/bin/external/llvm-project
/Iexternal/llvm-project/llvm/include
/Ibazel-out/x64_windows-opt-exec-ST-766941a09caf/bin/external/llvm-project/llvm/include
/D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS
/D_CRT_NONSTDC_NO_DEPRECATE /D_CRT_NONSTDC_NO_WARNINGS
/D_SCL_SECURE_NO_DEPRECATE /D_SCL_SECURE_NO_WARNINGS /DUNICODE
/D_UNICODE /DLTDL_SHLIB_EXT=".dll" /DLLVM_PLUGIN_EXT=".dll"
/DLLVM_NATIVE_ARCH="X86"
/DLLVM_NATIVE_ASMPARSER=LLVMInitializeX86AsmParser
/DLLVM_NATIVE_ASMPRINTER=LLVMInitializeX86AsmPrinter
/DLLVM_NATIVE_DISASSEMBLER=LLVMInitializeX86Disassembler
/DLLVM_NATIVE_TARGET=LLVMInitializeX86Target
/DLLVM_NATIVE_TARGETINFO=LLVMInitializeX86TargetInfo
/DLLVM_NATIVE_TARGETMC=LLVMInitializeX86TargetMC
/DLLVM_NATIVE_TARGETMCA=LLVMInitializeX86TargetMCA
/DLLVM_HOST_TRIPLE="x86_64-pc-win32"
/DLLVM_DEFAULT_TARGET_TRIPLE="x86_64-pc-win32" /DLLVM_VERSION_MAJOR=21
/DLLVM_VERSION_MINOR=0 /DLLVM_VERSION_PATCH=0
/DLLVM_VERSION_STRING="21.0.0git" /D__STDC_LIMIT_MACROS
/D__STDC_CONSTANT_MACROS /D__STDC_FORMAT_MACROS
/DLLVM_HAS_AArch64_TARGET=1 /DLLVM_HAS_AMDGPU_TARGET=1
/DLLVM_HAS_ARM_TARGET=1 /DLLVM_HAS_NVPTX_TARGET=1
/DLLVM_HAS_PowerPC_TARGET=1 /DLLVM_HAS_RISCV_TARGET=1
/DLLVM_HAS_SystemZ_TARGET=1 /DLLVM_HAS_X86_TARGET=1 /DBLAKE3_USE_NEON=0
/DBLAKE3_NO_AVX2 /DBLAKE3_NO_AVX512 /DBLAKE3_NO_SSE2 /DBLAKE3_NO_SSE41
/showIncludes /MD /O2 /Oy- /DNDEBUG /wd4117 -D__DATE__="redacted"
-D__TIMESTAMP__="redacted" -D__TIME__="redacted"
-Wno-builtin-macro-redefined /Gy /Gw /W0 /Zc:__cplusplus
/D_USE_MATH_DEFINES /d2ReducedOptimizeHugeFunctions
-D_ENABLE_EXTENDED_ALIGNED_STORAGE -DWIN32_LEAN_AND_MEAN -DNOGDI
/Zc:preprocessor /clang:-Weverything /clang:-Weverything
/d2ReducedOptimizeHugeFunctions /std:c++17
/Fobazel-out/x64_windows-opt-exec-ST-766941a09caf/bin/external/llvm-project/llvm/_objs/Support/ExtensibleRTTI.obj
/c external/llvm-project/llvm/lib/Support/ExtensibleRTTI.cpp
# Configuration:
f85b29406574d83c673497718f542456050c5649ae41eb37a803b7085e15c4ef
# Execution platform:
//tensorflow/tools/toolchains/win2022:windows_ltsc2022_clang
external/llvm-project/llvm/lib/Support/ExtensibleRTTI.cpp(12,22): error:
definition of dllimport static field not allowed
12 | char llvm::RTTIRoot::ID = 0;
| ^
external/llvm-project/llvm/include\llvm/Support/ExtensibleRTTI.h(71,7):
note: attribute is here
71 | class LLVM_ABI RTTIRoot {
| ^
external/llvm-project/llvm/include\llvm/Support/Compiler.h(205,29):
note: expanded from macro 'LLVM_ABI'
205 | #define LLVM_ABI __declspec(dllimport)
| ^
1 error generated.
135 lines
4.7 KiB
C
135 lines
4.7 KiB
C
/*===------- llvm/Config/llvm-config.h - llvm configuration -------*- C -*-===*/
|
|
/* */
|
|
/* Part of the LLVM Project, under the Apache License v2.0 with LLVM */
|
|
/* Exceptions. */
|
|
/* See https://llvm.org/LICENSE.txt for license information. */
|
|
/* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception */
|
|
/* */
|
|
/*===----------------------------------------------------------------------===*/
|
|
|
|
/* This is a manual port of config.h.cmake for the symbols that do not change
|
|
based on platform. Those that do change should not be defined here and
|
|
instead use Bazel cc_library defines. Some attempt has been made to extract
|
|
such symbols that do vary based on platform (for the platforms we care about)
|
|
into Bazel defines, but it is by no means complete, so if you see something
|
|
that looks wrong, it probably is. */
|
|
|
|
|
|
/* This file enumerates variables from the LLVM configuration so that they
|
|
can be in exported headers and won't override package specific directives.
|
|
This is a C header that can be included in the llvm-c headers. */
|
|
|
|
#ifndef LLVM_CONFIG_H
|
|
#define LLVM_CONFIG_H
|
|
|
|
/* Define if LLVM_ENABLE_DUMP is enabled */
|
|
/* #undef LLVM_ENABLE_DUMP */
|
|
|
|
/* Target triple LLVM will generate code for by default */
|
|
/* LLVM_DEFAULT_TARGET_TRIPLE defined in Bazel */
|
|
|
|
/* Define if threads enabled */
|
|
#define LLVM_ENABLE_THREADS 1
|
|
|
|
/* Has gcc/MSVC atomic intrinsics */
|
|
#define LLVM_HAS_ATOMICS 1
|
|
|
|
/* Host triple LLVM will be executed on */
|
|
/* LLVM_HOST_TRIPLE defined in Bazel */
|
|
|
|
/* LLVM architecture name for the native architecture, if available */
|
|
/* LLVM_NATIVE_ARCH defined in Bazel */
|
|
|
|
/* LLVM name for the native AsmParser init function, if available */
|
|
/* LLVM_NATIVE_ASMPARSER defined in Bazel */
|
|
|
|
/* LLVM name for the native AsmPrinter init function, if available */
|
|
/* LLVM_NATIVE_ASMPRINTER defined in Bazel */
|
|
|
|
/* LLVM name for the native Disassembler init function, if available */
|
|
/* LLVM_NATIVE_DISASSEMBLER defined in Bazel */
|
|
|
|
/* LLVM name for the native Target init function, if available */
|
|
/* LLVM_NATIVE_TARGET defined in Bazel */
|
|
|
|
/* LLVM name for the native TargetInfo init function, if available */
|
|
/* LLVM_NATIVE_TARGETINFO defined in Bazel */
|
|
|
|
/* LLVM name for the native target MC init function, if available */
|
|
/* LLVM_NATIVE_TARGETMC defined in Bazel */
|
|
|
|
/* LLVM name for the native target MCA init function, if available */
|
|
/* LLVM_NATIVE_TARGETMCA defined in Bazel */
|
|
|
|
/* Define if this is Unixish platform */
|
|
/* LLVM_ON_UNIX defined in Bazel */
|
|
|
|
/* Define if we have the Intel JIT API runtime support library */
|
|
#define LLVM_USE_INTEL_JITEVENTS 0
|
|
|
|
/* Define if we have the oprofile JIT-support library */
|
|
#define LLVM_USE_OPROFILE 0
|
|
|
|
/* Define if we have the perf JIT-support library */
|
|
#define LLVM_USE_PERF 0
|
|
|
|
/* Major version of the LLVM API */
|
|
/* #undef LLVM_VERSION_MAJOR */
|
|
|
|
/* Minor version of the LLVM API */
|
|
/* #undef LLVM_VERSION_MINOR */
|
|
|
|
/* Patch version of the LLVM API */
|
|
/* #undef LLVM_VERSION_PATCH */
|
|
|
|
/* LLVM version string */
|
|
/* #undef LLVM_VERSION_STRING */
|
|
|
|
/* Whether LLVM records statistics for use with GetStatistics(),
|
|
* PrintStatistics() or PrintStatisticsJSON()
|
|
*/
|
|
#define LLVM_FORCE_ENABLE_STATS 0
|
|
|
|
/* Define if we have z3 and want to build it */
|
|
/* #undef LLVM_WITH_Z3 */
|
|
|
|
/* Define if we have curl and want to use it */
|
|
/* #undef LLVM_ENABLE_CURL */
|
|
|
|
/* Define if we have cpp-httplib and want to use it */
|
|
/* #undef LLVM_ENABLE_HTTPLIB */
|
|
|
|
/* Define if LLVM was built with a dependency to the tensorflow compiler */
|
|
/* #undef LLVM_HAVE_TF_AOT */
|
|
|
|
/* Define to 1 if you have the <sysexits.h> header file. */
|
|
/* HAVE_SYSEXITS_H defined in Bazel */
|
|
|
|
/* Define if the xar_open() function is supported this platform. */
|
|
/* #undef HAVE_LIBXAR */
|
|
|
|
/* Define if building libLLVM shared library */
|
|
/* #undef LLVM_BUILD_LLVM_DYLIB */
|
|
|
|
/* Define if building LLVM with BUILD_SHARED_LIBS */
|
|
/* #undef LLVM_BUILD_SHARED_LIBS */
|
|
|
|
/* Define if building LLVM with LLVM_FORCE_USE_OLD_TOOLCHAIN_LIBS */
|
|
/* #undef LLVM_FORCE_USE_OLD_TOOLCHAIN ${LLVM_FORCE_USE_OLD_TOOLCHAIN} */
|
|
|
|
/* Define if llvm_unreachable should be optimized with undefined behavior
|
|
* in non assert builds */
|
|
#define LLVM_UNREACHABLE_OPTIMIZE 1
|
|
|
|
/* Define to 1 if you have the DIA SDK installed, and to 0 if you don't. */
|
|
#define LLVM_ENABLE_DIA_SDK 0
|
|
|
|
/* Define if building LLVM with LLVM_ENABLE_TELEMETRY */
|
|
#define LLVM_ENABLE_TELEMETRY 1
|
|
|
|
/* Define to 1 to enable expensive checks for debug location coverage checking,
|
|
and to 0 otherwise. */
|
|
#define LLVM_ENABLE_DEBUGLOC_COVERAGE_TRACKING 1
|
|
|
|
#endif
|