Skip to content

Instantly share code, notes, and snippets.

@Poetastrophe
Created July 21, 2019 19:04
Show Gist options
  • Save Poetastrophe/10a6bb88072ee05dddccdde7dce5511c to your computer and use it in GitHub Desktop.
Save Poetastrophe/10a6bb88072ee05dddccdde7dce5511c to your computer and use it in GitHub Desktop.

Hello guys I am just getting into Zig and I need to build LLVM from source. I followed the instructions on the Zig wiki, under POSIX: https://github.com/ziglang/zig/wiki/How-to-build-LLVM%2C-libclang%2C-and-liblld-from-source

Where I try to compile llvm-8.0.0.src But all I am getting is that the cmake cannot find LLVMs headers:

$ make install fatal error: llvm/Demangle/Demangle.h: No such file or directory
#include "llvm/Demangle/Demangle.h" ^~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make[2]: *** [lib/Demangle/CMakeFiles/LLVMDemangle.dir/build.make:63: lib/Demangle/CMakeFiles/LLVMDemangle.dir/ItaniumDemangle.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:876: lib/Demangle/CMakeFiles/LLVMDemangle.dir/all] Error 2 make: *** [Makefile:152: all] Error 2

Can anyone help me out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment