Skip to content

Instantly share code, notes, and snippets.

@Gankra
Created August 9, 2014 19:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gankra/f8790968cc3bf0393409 to your computer and use it in GitHub Desktop.
Save Gankra/f8790968cc3bf0393409 to your computer and use it in GitHub Desktop.
compile: x86_64-unknown-linux-gnu/rustllvm/RustWrapper.o
/home2bak/abeinges/rust2/src/rustllvm/RustWrapper.cpp: In function ‘LLVMOpaqueValue* LLVMDIBuilderCreateSubroutineType(DIBuilderRef, LLVMValueRef, LLVMValueRef)’:
/home2bak/abeinges/rust2/src/rustllvm/RustWrapper.cpp:285:18: error: ‘DITypeArray’ was not declared in this scope
unwrapDI<DITypeArray>(ParameterTypes)));
^
/home2bak/abeinges/rust2/src/rustllvm/RustWrapper.cpp:285:45: error: no matching function for call to ‘unwrapDI(LLVMOpaqueValue*&)’
unwrapDI<DITypeArray>(ParameterTypes)));
^
/home2bak/abeinges/rust2/src/rustllvm/RustWrapper.cpp:285:45: note: candidate is:
/home2bak/abeinges/rust2/src/rustllvm/RustWrapper.cpp:230:5: note: template<class DIT> DIT unwrapDI(LLVMValueRef)
DIT unwrapDI(LLVMValueRef ref) {
^
/home2bak/abeinges/rust2/src/rustllvm/RustWrapper.cpp:230:5: note: template argument deduction/substitution failed:
/home2bak/abeinges/rust2/src/rustllvm/RustWrapper.cpp:285:45: error: template argument 1 is invalid
unwrapDI<DITypeArray>(ParameterTypes)));
^
/home2bak/abeinges/rust2/src/rustllvm/RustWrapper.cpp: In function ‘void LLVMDICompositeTypeSetTypeArray(LLVMValueRef, LLVMValueRef)’:
/home2bak/abeinges/rust2/src/rustllvm/RustWrapper.cpp:637:46: error: ‘class llvm::DICompositeType’ has no member named ‘setArrays’
unwrapDI<DICompositeType>(CompositeType).setArrays(unwrapDI<DIArray>(TypeArray));
^
/home2bak/abeinges/rust2/src/rustllvm/RustWrapper.cpp: In function ‘LLVMOpaqueValue* LLVMDIBuilderCreateSubroutineType(DIBuilderRef, LLVMValueRef, LLVMValueRef)’:
/home2bak/abeinges/rust2/src/rustllvm/RustWrapper.cpp:286:1: error: control reaches end of non-void function [-Werror=return-type]
}
^
cc1plus: all warnings being treated as errors
make: *** [x86_64-unknown-linux-gnu/rustllvm/RustWrapper.o] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment