Dechenjm / crack-language

Automatically exported from code.google.com/p/crack-language
Other
0 stars 0 forks source link

llvm/Analysis/DebugInfo.h should be replaced llvm/DebugInfo.h #122

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
trunk fails with llvm 3.2
builder/llvm/BTypeDef.h:14:37: fatal error: llvm/Analysis/DebugInfo.h: No such 
file or directory

Original issue reported on code.google.com by wbr...@gmail.com on 25 Feb 2013 at 3:10

GoogleCodeExporter commented 9 years ago
Crack is still on LLVM 3.1, and will remain there for the foreseeable future.

Original comment by mind...@gmail.com on 25 Feb 2013 at 3:15

GoogleCodeExporter commented 9 years ago
I should point out that the only reason we're staying on 3.1 right now is 
because no-one currently has the bandwidth to do the upgrade.  If you're 
interested in doing it, please feel free to post a patch on this bug!

Original comment by mind...@gmail.com on 25 Feb 2013 at 3:19

GoogleCodeExporter commented 9 years ago
what bandwidth is needed to do the upgrade?

Original comment by wbr...@gmail.com on 25 Feb 2013 at 3:22

GoogleCodeExporter commented 9 years ago

Original comment by wbr...@gmail.com on 25 Feb 2013 at 3:51

Attachments:

GoogleCodeExporter commented 9 years ago
it seems many patches will be needed

Original comment by wbr...@gmail.com on 25 Feb 2013 at 3:53

GoogleCodeExporter commented 9 years ago
patches 2,3,4 have to applied in correct order

build still fails
builder/llvm/LLVMJitBuilder.cc: In member function 'virtual void 
builder::mvll::LLVMJitBuilder::engineFinishModule(model::Context&, 
builder::mvll::BModuleDef*)':
builder/llvm/LLVMJitBuilder.cc:103:25: error: expected type-specifier
builder/llvm/LLVMJitBuilder.cc:103:25: error: expected ')'
builder/llvm/LLVMJitBuilder.cc:103:68: error: no matching function for call to 
'llvm::PassManager::add(int*)'
builder/llvm/LLVMJitBuilder.cc:103:68: note: candidate is:
In file included from builder/llvm/LLVMJitBuilder.cc:24:0:
/usr/include/llvm/PassManager.h:55:8: note: virtual void 
llvm::PassManager::add(llvm::Pass*)
/usr/include/llvm/PassManager.h:55:8: note:   no known conversion for argument 
1 from 'int*' to 'llvm::Pass*'
make[1]: *** [libCrackLang_la-LLVMJitBuilder.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
builder/llvm/LLVMBuilder.cc: In member function 'virtual model::ResultExprPtr 
builder::mvll::LLVMBuilder::emitStrConst(model::Context&, model::StrConst*)':
builder/llvm/LLVMBuilder.cc:855:56: error: no matching function for call to 
'llvm::GlobalVariable::GlobalVariable(llvm::Module&, llvm::Type*, bool, 
llvm::GlobalValue::LinkageTypes, llvm::Constant*&, std::basic_string<char>, 
int, bool)'
builder/llvm/LLVMBuilder.cc:855:56: note: candidates are:
In file included from /usr/include/llvm/Module.h:19:0,
                 from builder/llvm/LLVMBuilder.cc:44:
/usr/include/llvm/GlobalVariable.h:68:3: note: 
llvm::GlobalVariable::GlobalVariable(llvm::Module&, llvm::Type*, bool, 
llvm::GlobalValue::LinkageTypes, llvm::Constant*, const llvm::Twine&, 
llvm::GlobalVariable*, llvm::GlobalVariable::ThreadLocalMode, unsigned int)
/usr/include/llvm/GlobalVariable.h:68:3: note:   no known conversion for 
argument 8 from 'bool' to 'llvm::GlobalVariable::ThreadLocalMode'
/usr/include/llvm/GlobalVariable.h:63:3: note: 
llvm::GlobalVariable::GlobalVariable(llvm::Type*, bool, 
llvm::GlobalValue::LinkageTypes, llvm::Constant*, const llvm::Twine&, 
llvm::GlobalVariable::ThreadLocalMode, unsigned int)
/usr/include/llvm/GlobalVariable.h:63:3: note:   candidate expects 7 arguments, 
8 provided
/usr/include/llvm/GlobalVariable.h:39:3: note: 
llvm::GlobalVariable::GlobalVariable(const llvm::GlobalVariable&)
/usr/include/llvm/GlobalVariable.h:39:3: note:   candidate expects 1 argument, 
8 provided
make[1]: *** [libCrackLang_la-LLVMBuilder.lo] Error 1

Original comment by wbr...@gmail.com on 25 Feb 2013 at 4:06

Attachments:

GoogleCodeExporter commented 9 years ago
current trunk won't build on distro releases like Ubuntu 13.04, which has llvm 
3.2

Original comment by wbr...@gmail.com on 25 Feb 2013 at 4:11

GoogleCodeExporter commented 9 years ago
According this misleading page, Crack already supports llvm 3.2
http://llvm.org/releases/3.2/docs/ReleaseNotes.html

Original comment by wbr...@gmail.com on 25 Feb 2013 at 6:09