RootTalk


ROOT Discussion Forums

cling on Fedora 18 Beta ARM

Discuss installing and running Cling here. Please post bug reports here.

Moderator: cintdev

cling on Fedora 18 Beta ARM

Unread postby hamletmonkey » Tue Feb 12, 2013 0:41

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.
hamletmonkey
 
Posts: 52
Joined: Thu Nov 15, 2007 20:50
Location: USA

Re: cling on Fedora 18 Beta ARM

Unread postby vvassilev » Tue Feb 12, 2013 9:31

Hi,
AFAIK we haven't tried to compile ROOT/cling on ARM. We are waiting for an ARM build machine for quite some time. Maybe Philippe can give you a hint how to fix that issue.
Cheers,
Vassil
vvassilev
 
Posts: 50
Joined: Mon Dec 20, 2010 17:56

Re: cling on Fedora 18 Beta ARM

Unread postby pcanal » Tue Feb 12, 2013 23:20

Hi,

What are the first errors or messages?

Philippe.
pcanal
 
Posts: 6147
Joined: Wed Aug 27, 2003 14:22
Location: Fermilab

I will try again and copy all of the errors

Unread postby hamletmonkey » Wed Feb 13, 2013 1:48

I was using the default llvm and clang install, Axel says I need to use a specific number (last known good build) but I do not know how to get that from SVN.

I downloaded llvm clang and cling from SVN at work but now something is wrong and it says the folder is 6.4 Gb. I know it cannot be, as it downloaded in a few minutes.

So I think I need the correct versions of llvm, clang, and cling and apparently gcc-4.7.2-8 is missing a header. I am downloaded the upgrades now.

Does cling work on iOS ARM?
hamletmonkey
 
Posts: 52
Joined: Thu Nov 15, 2007 20:50
Location: USA

Re: cling on Fedora 18 Beta ARM

Unread postby rdm » Wed Feb 13, 2013 16:41

Hi,

cling can be compiled largely on iOS ARM (except that the build stops on an illegal iOS API being used by LLVM). I will be trying to get it all compiled asap.

Cheers, Fons.
User avatar
rdm
Site Admin
 
Posts: 858
Joined: Tue Aug 26, 2003 12:10
Location: CERN


Return to Cling Support

Who is online

Users browsing this forum: No registered users and 1 guest