Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- clang++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags --libs core` -o toy | wgetpaste
- -L/usr/local/lib -lrt -ldl -lpthread
- -lLLVMCore -lLLVMSupport -o toyIn file included from toy.cpp:5:
- In file included from /usr/include/llvm/IRBuilder.h:18:
- In file included from /usr/include/llvm/Instructions.h:23:
- In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
- In file included from /usr/local/include/llvm/IR/Constants.h:27:
- In file included from /usr/local/include/llvm/IR/Constant.h:17:
- In file included from /usr/local/include/llvm/IR/User.h:22:
- In file included from /usr/local/include/llvm/IR/Value.h:17:
- /usr/local/include/llvm/IR/Use.h:43:7: error: redefinition of 'llvm::PointerLikeTypeTraits<llvm::Use **>'
- class PointerLikeTypeTraits<Use**> {
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- /usr/include/llvm/Use.h:43:7: note: previous definition is here
- class PointerLikeTypeTraits<Use**> {
- ^
- In file included from toy.cpp:5:
- In file included from /usr/include/llvm/IRBuilder.h:18:
- In file included from /usr/include/llvm/Instructions.h:23:
- In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
- In file included from /usr/local/include/llvm/IR/Constants.h:27:
- In file included from /usr/local/include/llvm/IR/Constant.h:17:
- In file included from /usr/local/include/llvm/IR/User.h:22:
- In file included from /usr/local/include/llvm/IR/Value.h:17:
- /usr/local/include/llvm/IR/Use.h:58:7: error: redefinition of 'Use'
- class Use {
- ^
- /usr/include/llvm/Use.h:58:7: note: previous definition is here
- class Use {
- ^
- In file included from toy.cpp:5:
- In file included from /usr/include/llvm/IRBuilder.h:18:
- In file included from /usr/include/llvm/Instructions.h:23:
- In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
- In file included from /usr/local/include/llvm/IR/Constants.h:27:
- In file included from /usr/local/include/llvm/IR/Constant.h:17:
- In file included from /usr/local/include/llvm/IR/User.h:22:
- In file included from /usr/local/include/llvm/IR/Value.h:17:
- /usr/local/include/llvm/IR/Use.h:151:19: error: redefinition of 'llvm::simplify_type<llvm::Use>'
- template<> struct simplify_type<Use> {
- ^~~~~~~~~~~~~~~~~~
- /usr/include/llvm/Use.h:151:19: note: previous definition is here
- template<> struct simplify_type<Use> {
- ^
- In file included from toy.cpp:5:
- In file included from /usr/include/llvm/IRBuilder.h:18:
- In file included from /usr/include/llvm/Instructions.h:23:
- In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
- In file included from /usr/local/include/llvm/IR/Constants.h:27:
- In file included from /usr/local/include/llvm/IR/Constant.h:17:
- In file included from /usr/local/include/llvm/IR/User.h:22:
- In file included from /usr/local/include/llvm/IR/Value.h:17:
- /usr/local/include/llvm/IR/Use.h:157:19: error: redefinition of 'llvm::simplify_type<const llvm::Use>'
- template<> struct simplify_type<const Use> {
- ^~~~~~~~~~~~~~~~~~~~~~~~
- /usr/include/llvm/Use.h:157:19: note: previous definition is here
- template<> struct simplify_type<const Use> {
- ^
- In file included from toy.cpp:5:
- In file included from /usr/include/llvm/IRBuilder.h:18:
- In file included from /usr/include/llvm/Instructions.h:23:
- In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
- In file included from /usr/local/include/llvm/IR/Constants.h:27:
- In file included from /usr/local/include/llvm/IR/Constant.h:17:
- In file included from /usr/local/include/llvm/IR/User.h:22:
- In file included from /usr/local/include/llvm/IR/Value.h:17:
- /usr/local/include/llvm/IR/Use.h:167:7: error: redefinition of 'value_use_iterator'
- class value_use_iterator : public std::iterator<std::forward_iterator_tag,
- ^
- /usr/include/llvm/Use.h:167:7: note: previous definition is here
- class value_use_iterator : public std::iterator<std::forward_iterator_tag,
- ^
- In file included from toy.cpp:5:
- In file included from /usr/include/llvm/IRBuilder.h:18:
- In file included from /usr/include/llvm/Instructions.h:23:
- In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
- In file included from /usr/local/include/llvm/IR/Constants.h:27:
- In file included from /usr/local/include/llvm/IR/Constant.h:17:
- In file included from /usr/local/include/llvm/IR/User.h:22:
- /usr/local/include/llvm/IR/Value.h:61:7: error: redefinition of 'Value'
- class Value {
- ^
- /usr/include/llvm/Value.h:61:7: note: previous definition is here
- class Value {
- ^
- In file included from toy.cpp:5:
- In file included from /usr/include/llvm/IRBuilder.h:18:
- In file included from /usr/include/llvm/Instructions.h:23:
- In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
- In file included from /usr/local/include/llvm/IR/Constants.h:27:
- In file included from /usr/local/include/llvm/IR/Constant.h:17:
- In file included from /usr/local/include/llvm/IR/User.h:22:
- /usr/local/include/llvm/IR/Value.h:320:21: error: redefinition of 'operator<<'
- inline raw_ostream &operator<<(raw_ostream &OS, const Value &V) {
- ^
- /usr/include/llvm/Value.h:320:21: note: previous definition is here
- inline raw_ostream &operator<<(raw_ostream &OS, const Value &V) {
- ^
- In file included from toy.cpp:5:
- In file included from /usr/include/llvm/IRBuilder.h:18:
- In file included from /usr/include/llvm/Instructions.h:23:
- In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
- In file included from /usr/local/include/llvm/IR/Constants.h:27:
- In file included from /usr/local/include/llvm/IR/Constant.h:17:
- In file included from /usr/local/include/llvm/IR/User.h:22:
- /usr/local/include/llvm/IR/Value.h:325:11: error: redefinition of 'set'
- void Use::set(Value *V) {
- ^
- /usr/include/llvm/Value.h:325:11: note: previous definition is here
- void Use::set(Value *V) {
- ^
- In file included from toy.cpp:5:
- In file included from /usr/include/llvm/IRBuilder.h:18:
- In file included from /usr/include/llvm/Instructions.h:23:
- In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
- In file included from /usr/local/include/llvm/IR/Constants.h:27:
- In file included from /usr/local/include/llvm/IR/Constant.h:17:
- In file included from /usr/local/include/llvm/IR/User.h:22:
- /usr/local/include/llvm/IR/Value.h:335:20: error: redefinition of 'llvm::isa_impl<llvm::Constant, llvm::Value>'
- template <> struct isa_impl<Constant, Value> {
- ^~~~~~~~~~~~~~~~~~~~~~~~~
- /usr/include/llvm/Value.h:335:20: note: previous definition is here
- template <> struct isa_impl<Constant, Value> {
- ^
- In file included from toy.cpp:5:
- In file included from /usr/include/llvm/IRBuilder.h:18:
- In file included from /usr/include/llvm/Instructions.h:23:
- In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
- In file included from /usr/local/include/llvm/IR/Constants.h:27:
- In file included from /usr/local/include/llvm/IR/Constant.h:17:
- In file included from /usr/local/include/llvm/IR/User.h:22:
- /usr/local/include/llvm/IR/Value.h:342:20: error: redefinition of 'llvm::isa_impl<llvm::Argument, llvm::Value>'
- template <> struct isa_impl<Argument, Value> {
- ^~~~~~~~~~~~~~~~~~~~~~~~~
- /usr/include/llvm/Value.h:342:20: note: previous definition is here
- template <> struct isa_impl<Argument, Value> {
- ^
- In file included from toy.cpp:5:
- In file included from /usr/include/llvm/IRBuilder.h:18:
- In file included from /usr/include/llvm/Instructions.h:23:
- In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
- In file included from /usr/local/include/llvm/IR/Constants.h:27:
- In file included from /usr/local/include/llvm/IR/Constant.h:17:
- In file included from /usr/local/include/llvm/IR/User.h:22:
- /usr/local/include/llvm/IR/Value.h:348:20: error: redefinition of 'llvm::isa_impl<llvm::InlineAsm, llvm::Value>'
- template <> struct isa_impl<InlineAsm, Value> {
- ^~~~~~~~~~~~~~~~~~~~~~~~~~
- /usr/include/llvm/Value.h:348:20: note: previous definition is here
- template <> struct isa_impl<InlineAsm, Value> {
- ^
- In file included from toy.cpp:5:
- In file included from /usr/include/llvm/IRBuilder.h:18:
- In file included from /usr/include/llvm/Instructions.h:23:
- In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
- In file included from /usr/local/include/llvm/IR/Constants.h:27:
- In file included from /usr/local/include/llvm/IR/Constant.h:17:
- In file included from /usr/local/include/llvm/IR/User.h:22:
- /usr/local/include/llvm/IR/Value.h:354:20: error: redefinition of 'llvm::isa_impl<llvm::Instruction, llvm::Value>'
- template <> struct isa_impl<Instruction, Value> {
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- /usr/include/llvm/Value.h:354:20: note: previous definition is here
- template <> struct isa_impl<Instruction, Value> {
- ^
- In file included from toy.cpp:5:
- In file included from /usr/include/llvm/IRBuilder.h:18:
- In file included from /usr/include/llvm/Instructions.h:23:
- In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
- In file included from /usr/local/include/llvm/IR/Constants.h:27:
- In file included from /usr/local/include/llvm/IR/Constant.h:17:
- In file included from /usr/local/include/llvm/IR/User.h:22:
- /usr/local/include/llvm/IR/Value.h:360:20: error: redefinition of 'llvm::isa_impl<llvm::BasicBlock, llvm::Value>'
- template <> struct isa_impl<BasicBlock, Value> {
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~
- /usr/include/llvm/Value.h:360:20: note: previous definition is here
- template <> struct isa_impl<BasicBlock, Value> {
- ^
- In file included from toy.cpp:5:
- In file included from /usr/include/llvm/IRBuilder.h:18:
- In file included from /usr/include/llvm/Instructions.h:23:
- In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
- In file included from /usr/local/include/llvm/IR/Constants.h:27:
- In file included from /usr/local/include/llvm/IR/Constant.h:17:
- In file included from /usr/local/include/llvm/IR/User.h:22:
- /usr/local/include/llvm/IR/Value.h:366:20: error: redefinition of 'llvm::isa_impl<llvm::Function, llvm::Value>'
- template <> struct isa_impl<Function, Value> {
- ^~~~~~~~~~~~~~~~~~~~~~~~~
- /usr/include/llvm/Value.h:366:20: note: previous definition is here
- template <> struct isa_impl<Function, Value> {
- ^
- In file included from toy.cpp:5:
- In file included from /usr/include/llvm/IRBuilder.h:18:
- In file included from /usr/include/llvm/Instructions.h:23:
- In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
- In file included from /usr/local/include/llvm/IR/Constants.h:27:
- In file included from /usr/local/include/llvm/IR/Constant.h:17:
- In file included from /usr/local/include/llvm/IR/User.h:22:
- /usr/local/include/llvm/IR/Value.h:372:20: error: redefinition of 'llvm::isa_impl<llvm::GlobalVariable, llvm::Value>'
- template <> struct isa_impl<GlobalVariable, Value> {
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- /usr/include/llvm/Value.h:372:20: note: previous definition is here
- template <> struct isa_impl<GlobalVariable, Value> {
- ^
- In file included from toy.cpp:5:
- In file included from /usr/include/llvm/IRBuilder.h:18:
- In file included from /usr/include/llvm/Instructions.h:23:
- In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
- In file included from /usr/local/include/llvm/IR/Constants.h:27:
- In file included from /usr/local/include/llvm/IR/Constant.h:17:
- In file included from /usr/local/include/llvm/IR/User.h:22:
- /usr/local/include/llvm/IR/Value.h:378:20: error: redefinition of 'llvm::isa_impl<llvm::GlobalAlias, llvm::Value>'
- template <> struct isa_impl<GlobalAlias, Value> {
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- /usr/include/llvm/Value.h:378:20: note: previous definition is here
- template <> struct isa_impl<GlobalAlias, Value> {
- ^
- In file included from toy.cpp:5:
- In file included from /usr/include/llvm/IRBuilder.h:18:
- In file included from /usr/include/llvm/Instructions.h:23:
- In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
- In file included from /usr/local/include/llvm/IR/Constants.h:27:
- In file included from /usr/local/include/llvm/IR/Constant.h:17:
- In file included from /usr/local/include/llvm/IR/User.h:22:
- /usr/local/include/llvm/IR/Value.h:384:20: error: redefinition of 'llvm::isa_impl<llvm::GlobalValue, llvm::Value>'
- template <> struct isa_impl<GlobalValue, Value> {
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
- /usr/include/llvm/Value.h:384:20: note: previous definition is here
- template <> struct isa_impl<GlobalValue, Value> {
- ^
- In file included from toy.cpp:5:
- In file included from /usr/include/llvm/IRBuilder.h:18:
- In file included from /usr/include/llvm/Instructions.h:23:
- In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
- In file included from /usr/local/include/llvm/IR/Constants.h:27:
- In file included from /usr/local/include/llvm/IR/Constant.h:17:
- In file included from /usr/local/include/llvm/IR/User.h:22:
- /usr/local/include/llvm/IR/Value.h:391:20: error: redefinition of 'llvm::isa_impl<llvm::MDNode, llvm::Value>'
- template <> struct isa_impl<MDNode, Value> {
- ^~~~~~~~~~~~~~~~~~~~~~~
- /usr/include/llvm/Value.h:391:20: note: previous definition is here
- template <> struct isa_impl<MDNode, Value> {
- ^
- In file included from toy.cpp:5:
- In file included from /usr/include/llvm/IRBuilder.h:18:
- In file included from /usr/include/llvm/Instructions.h:23:
- In file included from /usr/local/include/llvm/Support/IntegersSubset.h:21:
- In file included from /usr/local/include/llvm/IR/Constants.h:27:
- In file included from /usr/local/include/llvm/IR/Constant.h:17:
- In file included from /usr/local/include/llvm/IR/User.h:22:
- /usr/local/include/llvm/IR/Value.h:399:7: error: redefinition of 'llvm::PointerLikeTypeTraits<llvm::Value *>'
- class PointerLikeTypeTraits<Value*> {
- ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- /usr/include/llvm/Value.h:399:7: note: previous definition is here
- class PointerLikeTypeTraits<Value*> {
- ^
- fatal error: too many errors emitted, stopping now [-ferror-limit=]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement