Re: (no subject)

From: Dmitry Naumov <naumov_at_nusun.jinr.ru>
Date: Thu, 10 Nov 2005 22:58:34 +0300


sorry with some delay in my asnwer.

This is the output of my gcc -v:

naumov_at_naumov-laptop(22:45)> gcc -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v

--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr 
--enable-shared --with-system-zlib --libexecdir=/usr/lib 
--without-included-gettext --enable-threads=posix --enable-nls 
--program-suffix=-4.0 --enable-__cxa_atexit 
--enable-libstdcxx-allocator=mt --enable-clocale=gnu 
--enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk 
--enable-gtk-cairo 
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre 
--enable-mpfr --disable-werror --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.3 20051023 (prerelease) (Debian 4.0.2-3)

I downloaded the current cvs version of root as suggested by Philippe Canal. This gave me even more error on reflex. Sorry for a long output but perhaps it can help you to debug the problem. Any previousversion of root I complied without any problem:

g++ -O -pipe -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -o reflex/src/Any.o -c reflex/src/Any.cxx
g++ -O -pipe -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -o reflex/src/Array.o -c reflex/src/Array.cxx g++ -O -pipe -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -o reflex/src/Base.o -c reflex/src/Base.cxx g++ -O -pipe -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -o reflex/src/Callback.o -c reflex/src/Callback.cxx g++ -O -pipe -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -o reflex/src/ClassBuilder.o -c reflex/src/ClassBuilder.cxx g++ -O -pipe -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -o reflex/src/Class.o -c reflex/src/Class.cxx

g++ -O  -pipe -Wall -W -Woverloaded-virtual -fPIC -Iinclude  -pthread -o 
reflex/src/ClassTemplateInstance.o -c reflex/src/ClassTemplateInstance.cxx
g++ -O  -pipe -Wall -W -Woverloaded-virtual -fPIC -Iinclude  -pthread -o 
reflex/src/DataMember.o -c reflex/src/DataMember.cxx g++ -O -pipe -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -o reflex/src/EnumBuilder.o -c reflex/src/EnumBuilder.cxx g++ -O -pipe -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -o reflex/src/Enum.o -c reflex/src/Enum.cxx g++ -O -pipe -Wall -W -Woverloaded-virtual -fPIC -Iinclude -pthread -o reflex/src/FuncHandler.o -c reflex/src/FuncHandler.cxx reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunRetType(R (C::*)())': reflex/src/FuncHandler.cxx:23: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunRetType(R (C::*)(T0))': reflex/src/FuncHandler.cxx:31: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunRetType(R (C::*)(T0, T1))':
reflex/src/FuncHandler.cxx:39: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunRetType(R (C::*)(T0, T1, T2))':
reflex/src/FuncHandler.cxx:47: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunRetType(R (C::*)(T0, T1, T2, T3))':
reflex/src/FuncHandler.cxx:55: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunRetType(R (C::*)(T0, T1, T2, T3, T4))':
reflex/src/FuncHandler.cxx:63: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunParTypes(R (C::*)(T0))': reflex/src/FuncHandler.cxx:79: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunParTypes(R (C::*)(T0, T1))':
reflex/src/FuncHandler.cxx:88: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx:89: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunParTypes(R (C::*)(T0, T1, T2))':
reflex/src/FuncHandler.cxx:99: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx:100: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx:101: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunParTypes(R (C::*)(T0, T1, T2, T3))':
reflex/src/FuncHandler.cxx:111: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx:112: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx:113: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx:114: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunParTypes(R (C::*)(T0, T1, T2, T3, T4))':
reflex/src/FuncHandler.cxx:124: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx:125: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx:126: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx:127: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx:128: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunRetType(R (*)())': reflex/src/FuncHandler.cxx:137: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunRetType(R (*)(T0))': reflex/src/FuncHandler.cxx:145: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunRetType(R (*)(T0, T1))': reflex/src/FuncHandler.cxx:153: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunRetType(R (*)(T0, T1, T2))':
reflex/src/FuncHandler.cxx:161: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunRetType(R (*)(T0, T1, T2, T3))':
reflex/src/FuncHandler.cxx:169: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunRetType(R (*)(T0, T1, T2, T3, T4))':
reflex/src/FuncHandler.cxx:177: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunParTypes(R (*)(T0))': reflex/src/FuncHandler.cxx:193: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunParTypes(R (*)(T0, T1))': reflex/src/FuncHandler.cxx:202: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx:203: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunParTypes(R (*)(T0, T1, T2))':
reflex/src/FuncHandler.cxx:213: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx:214: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx:215: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunParTypes(R (*)(T0, T1, T2, T3))':
reflex/src/FuncHandler.cxx:225: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx:226: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx:227: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx:228: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx: In static member function 'static const std::string ROOT::Reflex::FuncHandler::demangleFunParTypes(R (*)(T0, T1, T2, T3, T4))':
reflex/src/FuncHandler.cxx:238: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx:239: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx:240: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx:241: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' reflex/src/FuncHandler.cxx:242: error: invalid initialization of reference of type 'const std::type_info&' from expression of type 'const char*'
include/Reflex/Tools.h:36: error: in passing argument 1 of 'std::string ROOT::Reflex::Tools::Demangle(const std::type_info&)' make: *** [reflex/src/FuncHandler.o] 1

Rene Brun wrote:

> On which compiler/OS versions ?
>
> Rene Brun
>
>
> On Thu, 10 Nov 2005, Dmitry Naumov wrote:
>
>> Hello,
>> I experience problem root 5.06 compilation:
>>
>> include/Reflex/Object.h: In member function 'void
>> ROOT::Reflex::Object::SetT(const std::string&, const T&) const':
>> include/Reflex/Object.h:270: error: no matching function for call to
>> 'ROOT::Reflex::Type::ByTypeInfo(const char*&)'
>> include/Reflex/Type.h:141: note: candidates are: static
>> ROOT::Reflex::Type ROOT::Reflex::Type::ByTypeInfo(const std::type_info&)
>> include/Reflex/Object.h:270: error: no matching function for call to
>> 'ROOT::Reflex::Object::Set(const std::basic_string<char,
>> std::char_traits<char>, std::allocator<char> >&,
>> ROOT::Reflex::Object&) const'
>> include/Reflex/Object.h:154: note: candidates are: void
>> ROOT::Reflex::Object::Set(const std::string&, const void*) const
>> make: *** [reflex/src/Array.o]
>>
>> Thanks, Dmitry
>>
Received on Thu Nov 10 2005 - 19:58:51 MET

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:13 MET