From 6yearold at gmail.com Tue Apr 19 05:42:58 2011 From: 6yearold at gmail.com (arrowdodger) Date: Tue, 19 Apr 2011 13:42:58 +0400 Subject: [rphp-devel] IR verify failed Message-ID: Hello. I understand that project isn't actively developed anymore, but still hope there is someone who can help me with rphp. I've checked out rphp trunk and build it against LLVM trunk. After some hacks i've made rphp -dump-ir almost working. The problem is when i run `rphp -dump-ir` on simple php script, i get it's code printed into stdout, but right after that LLVM IR verifier gives me a wall of errors: *** IR verify failed: Global is external, but doesn't have external or > dllimport or weak linkage! > void ()* @__cxx_global_var_init > invalid linkage type for function declaration > void ()* @__cxx_global_var_init > Global is external, but doesn't have external or dllimport or weak linkage! > void (%"class.__gnu_cxx::new_allocator"*)* @_ZN5boost3argILi1EEC1Ev > invalid linkage type for function declaration > void (%"class.__gnu_cxx::new_allocator"*)* @_ZN5boost3argILi1EEC1Ev > Global is external, but doesn't have external or dllimport or weak linkage! > I don't have a lot of experience with LLVM, but it seems like it's trivial to fix. I've checked LLVM 2.7 and 2.6 sources and found, that VMCore/Verifier.cpp have not changed, so it's likely not related to LLVM version. Any inputs would be appreciated. -------------- next part -------------- An HTML attachment was scrubbed... URL: