Hello:
I recently bought a Cubieboard (A10 Allwinner ARM chip) on which I installed Fedora 18 Beta. Trying to compile ROOT (latest source I downloaded on Sunday) I received this error using the default llvm and clang and gcc 4.7.2-8
core/utils/src/rootcling_tmp.cxx:4685:84: note: candidates are:
core/utils/src/rootcling_tmp.cxx:1901:8: note: std::string GetNonConstMemberName(Cint::G__DataMemberInfo&, const string&)
core/utils/src/rootcling_tmp.cxx:1901:8: note: no known conversion for argument 1 from ‘clang::DeclContext::specific_decl_iterator<clang::FieldDecl>::reference {aka clang::FieldDecl*}’ to ‘Cint::G__DataMemberInfo&’
core/utils/src/rootcling_tmp.cxx:1920:8: note: std::string GetNonConstMemberName(const clang::FieldDecl&, const string&)
core/utils/src/rootcling_tmp.cxx:1920:8: note: no known conversion for argument 1 from ‘clang::DeclContext::specific_decl_iterator<clang::FieldDecl>::reference {aka clang::FieldDecl*}’ to ‘const clang::FieldDecl&’
core/utils/src/rootcling_tmp.cxx: In function ‘void WritePointersSTL(const RScanner::AnnotatedRecordDecl&)’:
core/utils/src/rootcling_tmp.cxx:4800:56: error: invalid initialization of reference of type ‘const clang::Decl&’ from expression of type ‘clang::DeclContext::specific_decl_iterator<clang::FieldDecl>::reference {aka clang::FieldDecl*}’
core/utils/src/rootcling_tmp.cxx:509:13: error: in passing argument 1 of ‘const char* R__GetComment(const clang::Decl&)’
core/utils/src/rootcling_tmp.cxx:4833:42: error: invalid initialization of reference of type ‘const clang::FieldDecl&’ from expression of type ‘clang::DeclContext::specific_decl_iterator<clang::FieldDecl>::reference {aka clang::FieldDecl*}’
core/utils/src/rootcling_tmp.cxx:2517:6: error: in passing argument 1 of ‘bool IsStreamableObject(const clang::FieldDecl&)’
core/utils/src/rootcling_tmp.cxx:4835:43: error: no matching function for call to ‘IsSTLContainer(clang::DeclContext::specific_decl_iterator<clang::FieldDecl>::reference)’
core/utils/src/rootcling_tmp.cxx:4835:43: note: candidates are:
core/utils/src/rootcling_tmp.cxx:2456:5: note: int IsSTLContainer(Cint::G__DataMemberInfo&)
core/utils/src/rootcling_tmp.cxx:2456:5: note: no known conversion for argument 1 from ‘clang::DeclContext::specific_decl_iterator<clang::FieldDecl>::reference {aka clang::FieldDecl*}’ to ‘Cint::G__DataMemberInfo&’
core/utils/src/rootcling_tmp.cxx:2472:5: note: int IsSTLContainer(const clang::FieldDecl&)
core/utils/src/rootcling_tmp.cxx:2472:5: note: no known conversion for argument 1 from ‘clang::DeclContext::specific_decl_iterator<clang::FieldDecl>::reference {aka clang::FieldDecl*}’ to ‘const clang::FieldDecl&’
core/utils/src/rootcling_tmp.cxx:2488:5: note: int IsSTLContainer(Cint::G__BaseClassInfo&)
core/utils/src/rootcling_tmp.cxx:2488:5: note: no known conversion for argument 1 from ‘clang::DeclContext::specific_decl_iterator<clang::FieldDecl>::reference {aka clang::FieldDecl*}’ to ‘Cint::G__BaseClassInfo&’
core/utils/src/rootcling_tmp.cxx:2502:5: note: int IsSTLContainer(const clang::CXXBaseSpecifier&)
core/utils/src/rootcling_tmp.cxx:2502:5: note: no known conversion for argument 1 from ‘clang::DeclContext::specific_decl_iterator<clang::FieldDecl>::reference {aka clang::FieldDecl*}’ to ‘const clang::CXXBaseSpecifier&’
core/utils/src/rootcling_tmp.cxx: In function ‘int GenerateModule(const char*, const std::vector<std::basic_string<char> >&)’:
core/utils/src/rootcling_tmp.cxx:5687:47: warning: ignoring return value of ‘char* getcwd(char*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
make: *** [core/utils/src/rootcling_tmp.o] Error 1
rm core/utils/src/rootcling_tmp.cxx
Is it not possbile to compile cling on ARM? Do I need to compile llvm and clang with the cling source in /llvm/tools?
Thank you.