[LLVMdev] Errors when running Kaleidoscope Examples

Brent Gracey brentgracey at gmail.com
Mon Mar 3 09:32:49 PST 2014


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/<souce code is
here>~/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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140303/84c284f6/attachment.html>


More information about the llvm-dev mailing list