swiftlang / swift

The Swift Programming Language
https://swift.org
Apache License 2.0
67.6k stars 10.37k forks source link

[SR-14522] [Windows] fatal error C1083: Cannot open include file: 'llvm/Config/llvm-config.h': No such file or directory #56874

Open shahmishal opened 3 years ago

shahmishal commented 3 years ago
Previous ID SR-14522
Radar None
Original Reporter @shahmishal
Type Bug

Attachment: Download

Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | | |Labels | Bug | |Assignee | None | |Priority | Medium | Watchers: @shahmishal md5: 7d83f7657cfa2424f4197b26042604b2

Issue Description:

[541/1114] Building CXX object lib\Sema\CMakeFiles\swiftSema.dir\Constraint.cpp.obj
FAILED: lib/Sema/CMakeFiles/swiftSema.dir/Constraint.cpp.obj 
C:\PROGRA~2\MICROS~1\2019\COMMUN~1\VC\Tools\MSVC\1424~1.283\bin\Hostx64\x64\cl.exe  /nologo /TP -DCMARK_STATIC_DEFINE -DGTEST_HAS_RTTI=0 -DLLVM_ON_WIN32 -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_CRT_USE_WINAPI_FAMILY_DESKTOP_APP -D_DLL -D_ENABLE_ATOMIC_ALIGNMENT_FIX -D_ENABLE_EXTENDED_ALIGNED_STORAGE=1 -D_HAS_EXCEPTIONS=0 -D_HAS_STATIC_RTTI=0 -D_MD -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib\Sema -IS:\jenkins\workspace\swift-PR-windows\swift\lib\Sema -Iinclude -IS:\jenkins\workspace\swift-PR-windows\swift\include -IS:\jenkins\workspace\swift-PR-windows\llvm-project\llvm\include -IT:\llvm\include -IS:\jenkins\workspace\swift-PR-windows\llvm-project\clang\include -IT:\llvm\tools\clang\include -IS:\jenkins\workspace\swift-PR-windows\cmark\src -IT:\cmark\src -IS:\jenkins\workspace\swift-PR-windows\swift-corelibs-libdispatch\src\BlocksRuntime -IS:\jenkins\workspace\swift-PR-windows\swift-corelibs-libdispatch -I"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\\include" -I"C:\Program Files (x86)\Windows Kits\10\\Include\10.0.18362.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\10\\Include\10.0.18362.0\shared" -I"C:\Program Files (x86)\Windows Kits\10\\Include\10.0.18362.0\um" /GS- /Oy /Zc:inline /Zc:strictStrings /Oi /Zc:rvalueCast /W4 -wd4141 -wd4146 -wd4244 -wd4267 -wd4291 -wd4351 -wd4456 -wd4457 -wd4458 -wd4459 -wd4503 -wd4624 -wd4722 -wd4100 -wd4127 -wd4512 -wd4505 -wd4610 -wd4510 -wd4702 -wd4245 -wd4706 -wd4310 -wd4701 -wd4703 -wd4389 -wd4611 -wd4805 -wd4204 -wd4577 -wd4091 -wd4592 -wd4319 -wd4709 -wd4324 -w14062 -we4238 /Gw /we4062 /wd4068 /permissive- -DOBJC_OLD_DISPATCH_PROTOTYPES=0 /MD /O2 /Ob2    /EHs-c- /GR- -UNDEBUG -DSWIFT_LLVM_SUPPORT_IS_AVAILABLE -O2 /GR- -U_DEBUG -std:c++14 /showIncludes /Folib\Sema\CMakeFiles\swiftSema.dir\Constraint.cpp.obj /Fdlib\Sema\CMakeFiles\swiftSema.dir\swiftSema.pdb /FS -c S:\jenkins\workspace\swift-PR-windows\swift\lib\Sema\Constraint.cpp
S:\jenkins\workspace\swift-PR-windows\llvm-project\llvm\include\llvm/ADT/STLExtras.h(22): fatal error C1083: Cannot open include file: 'llvm/Config/abi-breaking.h': No such file or directory
typesanitizer commented 3 years ago

cc @compnerd