LLVM 3.3 works on OSX. Be sure LLVM_33 tag is defined so that the following can compile:
#if defined(LLVM_33) #include <llvm/IR/Module.h> #else #include <llvm/Module.h> #endif Stéphane Le 14 oct. 2013 à 17:56, Steven Yi <steve...@gmail.com> a écrit : > Hi All, > > I was trying to compile the faust2 branch today and ran into issues, > probably because I am trying to use LLVM 3.3. A couple things: > > 1. I modified faust/compiler/CMakeLists.txt to use VERSION_LESS rather > than STREQUAL: > > diff --git a/compiler/CMakeLists.txt b/compiler/CMakeLists.txt > index c2c8a21..397b700 100644 > --- a/compiler/CMakeLists.txt > +++ b/compiler/CMakeLists.txt > @@ -12,10 +12,10 @@ exec_program(llvm-config ARGS --libs > OUTPUT_VARIABLE LLVM_LIBS) > exec_program(llvm-config ARGS --version OUTPUT_VARIABLE LLVM_VERSION) > exec_program(llvm-config ARGS --ldflags OUTPUT_VARIABLE LLVM_LDFLAGS) > > -if (${LLVM_VERSION} STREQUAL 3.0) > - set(LLVM_VERSION LLVM_30) > -elseif(${LLVM_VERSION} STREQUAL 2.9) > +if (${LLVM_VERSION} VERSION_LESS 3.0) > set(LLVM_VERSION LLVM_29) > +else() > + set(LLVM_VERSION LLVM_30) > endif() > > include_directories(${LLVM_DIR}) > > After that, I can start compiling and I get: > > /Users/stevenyi/work/study/faust/compiler/./global.hh:39:10: fatal > error: 'llvm/Module.h' file not found > #include <llvm/Module.h> > ^ > > This seems appropriate as the llvm folder does not have a Module.h. > It does appear in llvm 3.2. > > Will LLVM 3.2 work for compiling Faust2? Are there plans to move to 3.3? > > Thanks! > steven > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk > _______________________________________________ > Faudiostream-devel mailing list > Faudiostream-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/faudiostream-devel ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk _______________________________________________ Faudiostream-devel mailing list Faudiostream-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/faudiostream-devel