I am trying to compile LLVM with LLD (I really just want LLD but it requires the rest of LLVM iirc). When I try to run CMake (
cmake ..) in my
build folder (inside the source folder), I get the following error:
CMake Error at cmake/modules/LLVM-Config.cmake:203 (message): Library `Demangle' not found in list of llvm libraries. Call Stack (most recent call first): cmake/modules/AddLLVM.cmake:484 (llvm_map_components_to_libnames) tools/lld/cmake/modules/AddLLD.cmake:10 (llvm_add_library) tools/lld/lib/ReaderWriter/MachO/CMakeLists.txt:1 (add_lld_library)
No results on Google on for this error. Here is the full output on pastebin: http://pastebin.com/6DDTScEf
Any ideas as to the cause of this error? The message is very unhelpful. Is something missing from a list somewhere? Do I need to get some demangling library? If so, where from and in what form?
I'm on Arch Linux, and I'm using the most recent source for LLVM and LLD.