Building LLVM+clang on Windows

I'm following the instructions here:

  http://clasg.llvm.org/get_started.html

and, while running cmake, I get:

CMake Error at cmake/modules/LLVM-Config.cmake:141 (message):
  Library `vectorize' not found in list of llvm libraries.
Call Stack (most recent call first):
  cmake/modules/LLVM-Config.cmake:54 (explicit_map_components_to_libraries)
  cmake/modules/LLVM-Config.cmake:47 (explicit_llvm_config)
  tools/clang/CMakeLists.txt:192 (llvm_config)
  tools/clang/lib/CodeGen/CMakeLists.txt:13 (add_clang_library)

I tried Googl'ing for the error, but nothing. A little help?

Note that I did successfully build LLVM without clang initially, but now I want to build it with clang.

- Paul

"Paul J. Lucas" <paul@lucasmail.org> writes:

[snip]

CMake Error at cmake/modules/LLVM-Config.cmake:141 (message):
  Library `vectorize' not found in list of llvm libraries.

[snip]

Note that I did successfully build LLVM without clang initially, but
now I want to build it with clang.

`Vectorize' was introduced in February. Is your LLVM checkout so old? Do
a `svn update' on your LLVM and Clang checkouts and run cmake again.

"Paul J. Lucas" <paul@lucasmail.org> writes:

I am using LLVM 3.0 because I want a stable version. There doesn't
seem to be an equivalent clang 3.0 -- is there?

Is you use a Clang source tree that is more than a few days (or hours!)
off from LLVM, chances are that it won't work.

Clang sources for release 3.0 is right there along with LLVM:

http://llvm.org/releases/download.html#3.0

I tried building from svn and get lots of errors using Visual Studio
2008.

AFAIK VS 2008 is expected to work. Please file a bug report with those
errors. Or, better, fix them and send a patch :slight_smile: