<html><body><div>Hello,</div><div><br data-mce-bogus="1"></div><div>For the last couple of days I've been trying to build a Release version of swift-llvm on windows using Visual Studio 2015 and CMake - however I'm getting some symbol, and include errors with weird paths that I've been struggling with - Google alas has been no help. </div><div><br data-mce-bogus="1"></div><div>I'm passing this through to VS2015 Dev Cmd prompt: </div><div>cmake -G "Visual Studio 14 2015 Win64" -Thost=x64 ..\swift-llvm</div><div><br data-mce-bogus="1"></div><div>I'm then building through VS2015 and seeing the following errors - has anyone else seen this before, Debug builds fine on windows - Release builds work fine on Linux/macOS?</div><div><span style="color: #000000; font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', Monaco, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', Monaco, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;">1>------ Build started: Project: llvm-tblgen, Configuration: Release x64 </span><span style="color: #000000; font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', Monaco, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', Monaco, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;">------ </span></div><div><span style="color: #000000; font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', Monaco, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', Monaco, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;">1>SubtargetFeatureInfo.obj : error LNK2019: unresolved external symbol "public: void __cdecl llvm::Record::dump(void)const " (?dump@Record@llvm@@QEBAXXZ) referenced in function "public: void __cdecl llvm::SubtargetFeatureInfo::dump(void)const " (?dump@SubtargetFeatureInfo@llvm@@QEBAXXZ) 1>LLVMTableGen.lib(TGParser.obj) : error LNK2019: unresolved external symbol "public: void __cdecl llvm::Init::dump(void)const " (?dump@Init@llvm@@QEBAXXZ) referenced in function "public: void __cdecl llvm::SubMultiClassReference::dump(void)const " (?dump@SubMultiClassReference@llvm@@QEBAXXZ) 1>LLVMTableGen.lib(TGParser.obj) : error LNK2019: unresolved external symbol "public: void __cdecl llvm::MultiClass::dump(void)const " (?dump@MultiClass@llvm@@QEBAXXZ) referenced in function "public: void __cdecl llvm::SubMultiClassReference::dump(void)const " (?dump@SubMultiClassReference@llvm@@QEBAXXZ) 1>C:\Users\enguser\Desktop\swift-llvm-build\Release\bin\llvm-tblgen.exe : fatal error LNK1120: 3 unresolved externals</span></div><div><span style="color: #000000; font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', Monaco, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', Monaco, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;"><br data-mce-bogus="1"></span></div><div><span style="color: #000000; font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', Monaco, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', Monaco, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;">And the import error (repeated hundreds of times - notice the odd /\ in path): </span></div><div><span style="color: #000000; font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', Monaco, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', Monaco, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;">>C:\Users\user\Desktop\swift-llvm\include\llvm/IR/Attributes.h(71): fatal error C1083: Cannot open include file: 'llvm/IR/Attributes.gen': No such file or directory (compiling source file C:\Users\user\Desktop\swift-llvm\lib\CodeGen\MachineBlockPlacement.cpp) <br></span></div><div><span style="color: #000000; font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', Monaco, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', Monaco, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;"><br data-mce-bogus="1"></span></div><div><span style="color: #000000; font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', Monaco, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', Monaco, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;">Thanks - I'm probably just doing something stupidly wrong.</span></div><div><span style="color: #000000; font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', Monaco, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', Monaco, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;"><br data-mce-bogus="1"></span></div><div><span style="color: #000000; font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', Monaco, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;" data-mce-style="color: #000000; font-family: Consolas, 'Lucida Console', 'DejaVu Sans Mono', Monaco, monospace; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #ffffff; display: inline !important; float: none;">Thomas.</span></div></body></html>