<div dir="ltr"><div>Hi!  I'm new to Clang/LLVM and I'm trying to use Clang as a parser/semantic analyzer for a tool I'm trying to write (details on request if you'd like).  I'm having trouble building, having following directions from the Clang site, the book "Getting Started with LLVM Core Libraries", and a couple of other sites mashed together.</div><div><div> </div></div><div>a) Using cmake-gui and selecting "Visual Studio 12 2013" I got a set of VS project files that only had a Win32 configuration, no x64.  So to build x64 it must be necessary to select generator "Visual Studio 12 2013 Win64"?  And therefore 32-bit vs 64-bit determined by the "generator" and not by LLVM_TARGETS_TO_BUILD (which apparently only has X86 and not also X64)?</div><div><div> </div></div><div>b) That set of project files didn't build DEBUG - I got errors from projects RTAsan_dynamic.i386 and RTAsan.i386 that they don't build DEBUG (only RELEASE). (Message from asan_win.cc in both cases.)  Can I just remove the DEBUG builds from those two projects, thereby building them for release even in the debug build?  And, for curiosity, what is the actual limitation there?</div><div><div> </div></div><div>c) That set of project files also had an error building clang_rt.asan-dynamic.i386 with LINK.EXE complaining about a bunch of switches (that look to me like compiler switches).</div><blockquote style="margin-right:0px"><div></div><div><font face="monospace,monospace">18>LINK : warning LNK4044: unrecognized option '/Oy-'; ignored</font><div><font face="monospace,monospace">18>LINK : warning LNK4044: unrecognized option '/GS-'; ignored</font></div><div><font face="monospace,monospace">18>LINK : warning LNK4044: unrecognized option '/Zi'; ignored</font></div><div><font face="monospace,monospace">18>LINK : warning LNK4044: unrecognized option '/wd4146'; ignored</font></div><div><font face="monospace,monospace">18>LINK : warning LNK4044: unrecognized option '/wd4291'; ignored</font></div><div><font face="monospace,monospace">18>LINK : warning LNK4044: unrecognized option '/wd4391'; ignored</font></div><div><font face="monospace,monospace">18>LINK : warning LNK4044: unrecognized option '/wd4722'; ignored</font></div><div><font face="monospace,monospace">18>LINK : warning LNK4044: unrecognized option '/wd4800'; ignored</font></div><div><font face="monospace,monospace">18>LINK : warning LNK4044: unrecognized option '/GR-'; ignored</font></div></div></blockquote><div> </div><div>What's the fix for that?</div><div><br></div><div>d) Finally, I also tried configuring an x64 build using generator "Visual Studio 12 2013 Win64" but cmake-gui complained at the selections I made as follows:</div><div><div> </div></div><div><blockquote style="margin-right:0px"><div><font color="#000000"><font face="monospace,monospace">CMake Error at tools/llvm-shlib/CMakeLists.txt:48 (message):</font></font></div><font color="#000000" face="monospace,monospace"><div>  Auto-generation not implemented for Win32 without GNU utils.  Please</div></font><div><font color="#000000" face="monospace,monospace">  specify LLVM_EXPORTED_SYMBOL_FILE.</font></div></blockquote><span style="color:rgb(255,0,0)"><div> </div></span><div><span style="color:rgb(255,0,0)"><font color="#000000">What's the proper way to fix that?  By which I mean ... is there some kind of more complete documentation of the use of CMake in LLVM than <a href="http://llvm.org/docs/CMake.html" target="_blank">http://llvm.org/docs/CMake.html</a> (the option LLVM_EXPORTED_SYMBOL_FILE doesn't appear on that page and anyway doesn't sound like that's the real problem)?</font></span></div><div><span style="color:rgb(255,0,0)"><font color="#000000"></font><div><font color="#000000"></font><br></div><div><font color="#000000">I hope all of you more experienced LLVM developers will put up with a newbie with newbie questions for awhile.  Thanks in advance! (And let me know if there's a better place to get questions answered, perhaps SO?)</font></div><span><font color="#888888"><div><font color="#000000"></font><br></div><div><font color="#000000">-- David Bakin</font></div></font></span></span></div></div></div>