avr-llvm / clang

[MERGED UPSTREAM] Clang frontend supporting AVR
Other
11 stars 1 forks source link

Compilation Fails with createMCInstPrinter Error #3

Closed seanmkauffman closed 9 years ago

seanmkauffman commented 9 years ago
llvm[4]: Compiling ParseStmtAsm.cpp for Debug+Asserts build
/home/seanmk/workspace/llvm/tools/clang/lib/Parse/ParseStmtAsm.cpp:533:38: error: 
      reference to type 'const llvm::Triple' could not bind to an rvalue of type
      'int'
      TheTarget->createMCInstPrinter(1, *MAI, *MII, *MRI, *STI));
                                     ^
/home/seanmk/workspace/llvm/include/llvm/Support/TargetRegistry.h:411:54: note: 
      passing argument to parameter 'T' here
    MCInstPrinter *createMCInstPrinter(const Triple &T, unsigned SyntaxVariant,
                                                     ^
1 error generated.
dylanmckay commented 9 years ago

I have llvm and clang at master (llvm: 7e8c7af2, clang: 00a0b3863a), and compilation is successful - I am not getting this error.

dylanmckay commented 9 years ago

Note that Target::createMCInstPrinter is declared at TargetRegistry.h:414 (see the file here).

It seems like you have the incorrect version of TargetRegistry. One which has a different signature and defined on a different line.