Errors when running Kaleidoscope Examples

Hi


|

  • |

I followed the steps at http://llvm.org/docs/GettingStarted.html - which completed successfully. I performed the svn checkouts into my home directory, so my structure looks like~/llvmHome/llvm/~/llvmHome/build/Debug+Asserts/bin/<clang++ executables etc are here>
I’m attempting to follow the steps on http://llvm.org/docs/tutorial/LangImpl3.html to build the example.
cd ~/llvmHom/llvm/examples/Kaleidoscope/Chapter3 //so I’m where I checked out the source code
clang++ -g -O3 toy.cpp llvm-config --cppflags --ldflags --libs core -stdlib=libc++ -o toy
Which gives errors (up to first one)
In file included from toy.cpp:2:In file included from /usr/local/include/llvm/IR/DerivedTypes.h:21:In file included from /usr/local/include/llvm/IR/Type.h:19:In file included from /usr/local/include/llvm/ADT/APFloat.h:20:In file included from /usr/local/include/llvm/ADT/APInt.h:19:In file included from /usr/local/include/llvm/ADT/ArrayRef.h:14:/usr/local/include/llvm/ADT/SmallVector.h:187:15: error: no member named ‘move’ in namespace ‘std’; did you mean simply ‘move’? *Dest = ::std::move(*I); ^~~~~~~I’m not sure how how to debug this further, any ideas on what I’m getting incorrect?
I also posted the question on stackoverflow: http://stackoverflow.com/questions/22149118/building-llvm-examples
And I hope this is an Ok use of the mailing list, please let me know if it is not the sort of query to raise here!
ThanksBrent Gracey