<div dir="ltr">Hi,<div><br></div><div>I successfully built the LLVM.sln using CMake, after help from this mailing list (Kim Gräsman). However, building the LLVM in Visual Studio 2012 on Windows 7 32-bit gives me 1 compiler error (about memcpy) and many linker errors (about LLVMR600CodeGen.lib):</div>
<div><br></div><div><div style>Build Output with Errors<br></div><div style>-----------------------------------------------------------------</div><div><br></div><div>44>C:/llvm_clang/llvm/include\llvm/ADT/SmallVector.h(353): error C2872: 'memcpy' : ambiguous symbol</div>
<div>44>          could be 'C:\Program Files\Microsoft Visual Studio 11.0\VC\include\string.h(54) : void *memcpy(void *,const void *,size_t)'</div><div>44>          or       'C:/llvm_clang/build/include\llvm/IR/Intrinsics.gen(1050) : llvm::Intrinsic::ID memcpy'</div>
<div><br></div><div>59>LINK : fatal error LNK1181: cannot open input file '..\..\..\..\lib\Release\LLVMR600CodeGen.lib'<br></div><div>61>LINK : fatal error LNK1181: cannot open input file '..\..\..\..\lib\Release\LLVMR600CodeGen.lib'</div>
<div>62>------ Build started: Project: FrontendTests, Configuration: Release Win32 ------</div><div>60>LINK : fatal error LNK1181: cannot open input file '..\..\..\..\lib\Release\LLVMR600CodeGen.lib'</div><div>
63>------ Build started: Project: DynamicASTMatchersTests, Configuration: Release Win32 ------</div><div>64>------ Build started: Project: libclang, Configuration: Release Win32 ------</div><div>62>LINK : fatal error LNK1181: cannot open input file '..\..\..\..\lib\Release\LLVMR600CodeGen.lib'</div>
<div>65>------ Build started: Project: BugpointPasses, Configuration: Release Win32 ------</div><div>63>LINK : fatal error LNK1181: cannot open input file '..\..\..\..\..\lib\Release\LLVMR600CodeGen.lib'</div>
<div>64>LINK : fatal error LNK1181: cannot open input file '..\..\..\..\lib\Release\LLVMR600CodeGen.lib'</div><div>66>------ Build started: Project: ClangUnitTests, Configuration: Release Win32 ------</div><div>
67>------ Build started: Project: macho-dump, Configuration: Release Win32 ------</div><div>68>------ Build started: Project: UnitTests, Configuration: Release Win32 ------</div><div>69>------ Build started: Project: arcmt-test, Configuration: Release Win32 ------</div>
<div>70>------ Build started: Project: c-arcmt-test, Configuration: Release Win32 ------</div><div>67>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\LLVMR600CodeGen.lib'</div><div>71>------ Build started: Project: c-index-test, Configuration: Release Win32 ------</div>
<div>69>LINK : fatal error LNK1181: cannot open input file '..\..\..\..\lib\Release\LLVMR600CodeGen.lib'</div><div>70>LINK : fatal error LNK1181: cannot open input file '..\..\..\..\lib\Release\libclang.lib'</div>
<div>72>------ Build started: Project: opt, Configuration: Release Win32 ------</div><div>73>------ Build started: Project: clang, Configuration: Release Win32 ------</div><div>74>------ Build started: Project: clang-check, Configuration: Release Win32 ------</div>
<div>74>LINK : fatal error LNK1181: cannot open input file '..\..\..\..\lib\Release\LLVMR600CodeGen.lib'</div><div>71>LINK : fatal error LNK1181: cannot open input file '..\..\..\..\lib\Release\libclang.lib'</div>
<div>75>------ Build started: Project: clang-format, Configuration: Release Win32 ------</div><div>75>LINK : fatal error LNK1181: cannot open input file '..\..\..\..\lib\Release\LLVMR600CodeGen.lib'</div><div>
72>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\LLVMR600CodeGen.lib'</div><div>76>------ Build started: Project: diagtool, Configuration: Release Win32 ------</div><div>77>------ Build started: Project: llc, Configuration: Release Win32 ------</div>
<div>73>LINK : fatal error LNK1181: cannot open input file '..\..\..\..\lib\Release\LLVMR600CodeGen.lib'</div><div>76>LINK : fatal error LNK1181: cannot open input file '..\..\..\..\lib\Release\LLVMR600CodeGen.lib'</div>
<div>77>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\LLVMR600CodeGen.lib'</div><div>78>------ Build started: Project: llvm-mc, Configuration: Release Win32 ------</div><div>79>------ Build started: Project: llvm-objdump, Configuration: Release Win32 ------</div>
<div>80>------ Build started: Project: llvm-readobj, Configuration: Release Win32 ------</div><div>81>------ Build started: Project: llvm-rtdyld, Configuration: Release Win32 ------</div><div>78>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\LLVMR600CodeGen.lib'</div>
<div>79>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\LLVMR600CodeGen.lib'</div><div>80>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\LLVMR600CodeGen.lib'</div>
<div>81>LINK : fatal error LNK1181: cannot open input file '..\..\lib\Release\LLVMR600CodeGen.lib'</div><div>82>------ Build started: Project: check-clang, Configuration: Release Win32 ------</div><div>82>  Building Custom Rule C:/llvm_clang/llvm/tools/clang/test/CMakeLists.txt</div>
<div>83>------ Build started: Project: check-llvm, Configuration: Release Win32 ------</div><div>82>  CMake does not need to re-run because C:\llvm_clang\build\tools\clang\test\CMakeFiles\generate.stamp is up-to-date.</div>
<div>82>  Running the Clang regression tests</div><div>84>------ Build started: Project: ALL_BUILD, Configuration: Release Win32 ------</div><div>85>------ Skipped Build: Project: check-all, Configuration: Release Win32 ------</div>
<div>85>Project not selected to build for this solution configuration </div><div>82>  lit.py: LitConfig.py:103: note: Unable to find 'bash.exe'.</div><div>82>  lit.py: lit.cfg:177: fatal: couldn't find 'clang' program, try setting CLANG in your environment</div>
<div>82>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(172,5): error MSB6006: "cmd.exe" exited with code 2.</div><div>86>------ Skipped Build: Project: clang-test, Configuration: Release Win32 ------</div>
<div>86>Project not selected to build for this solution configuration </div><div>83>  Building Custom Rule C:/llvm_clang/llvm/test/CMakeLists.txt</div><div>83>  CMake does not need to re-run because C:\llvm_clang\build\test\CMakeFiles\generate.stamp is up-to-date.</div>
<div>83>  Running the LLVM regression tests</div><div>83>  Could not find llc in C:/llvm_clang/build/bin/Release</div><div>83>  lit.py: LitConfig.py:103: note: Unable to find 'bash.exe'.</div><div>83>C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(172,5): error MSB6006: "cmd.exe" exited with code 42.</div>
<div>84>  Build all projects</div><div>87>------ Skipped Build: Project: check, Configuration: Release Win32 ------</div><div>87>Project not selected to build for this solution configuration </div><div>88>------ Skipped Build: Project: PACKAGE, Configuration: Release Win32 ------</div>
<div>88>Project not selected to build for this solution configuration </div><div>89>------ Skipped Build: Project: INSTALL, Configuration: Release Win32 ------</div><div>89>Project not selected to build for this solution configuration </div>
<div>========== Build: 60 succeeded, 24 failed, 178 up-to-date, 5 skipped ==========</div></div><div><br></div><div><br></div><div style>Can you help me resolve these errors?</div><div style><br></div><div style>Best regards,</div>
<div style>-Asif</div><div style><br></div></div>