0

I have installed LLVM and Clang on Ubutnu 14.04 machine following this tutorial. I can successfully compile and run the example given at the tutorial. Now when I try to build the simple Hello Pass given here, where it says to just run gmake in the directory, so I run make and get this:

../../../Makefile.common:60: ../../../Makefile.config: No such file or directory
../../../Makefile.common:68: /Makefile.rules: No such file or directory
make: *** No rule to make target `/Makefile.rules'.  Stop.

Why is that? Is there a way I can build this Hello Pass?

user1343318
  • 2,093
  • 6
  • 32
  • 59
  • See https://github.com/eliben/llvm-clang-samples for up-to-date working samples of building LLVM passes and other LLVM-and-Clang-using utilities. – Eli Bendersky Mar 23 '15 at 12:05

1 Answers1

1

The autotools version of the build are being deprecated.

Use cmake to generate Unix makefiles in LLVM build directory do: cmake [llvm.src] -G"Unix Makefiles"

Colin LeMahieu
  • 610
  • 5
  • 7