I’d like to compile root with open54 5.0 due to the bulldozer optimisations coming along. For this, I downloaded 5.32.03 and issued the following configure command:
Upon compiling (which produces a lot of warnings), I keep being stuck with the following error message.
$ make
...
bin/rmkdepend -R -fcint/cint/src/dict/libstrm.d -Y -w 1000 -- -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__STD_EXCEPTION -DG__64BIT -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -I/fastfs/steinba/root53203/cint/cint/inc -I/fastfs/steinba/root53203/cint/cint/src -I/fastfs/steinba/root53203/cint/cint/src/dict -pthread -Icint/cint/lib/libstrm -Icint/cint/lib/stream -I. -D__cplusplus -- cint/cint/src/dict/libstrm.cxx
openCC -O3 -fno-math-errno -ffast-math -march=bdver1 -OPT:Ofast -g -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__STD_EXCEPTION -DG__64BIT -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -I/fastfs/steinba/root53203/cint/cint/inc -I/fastfs/steinba/root53203/cint/cint/src -I/fastfs/steinba/root53203/cint/cint/src/dict -pthread -Icint/cint/lib/libstrm -Icint/cint/lib/stream -I. -o cint/cint/src/dict/libstrm.o -c cint/cint/src/dict/libstrm.cxx
In file included from /sw/global/compilers/open64/5.0/open64-gcc-4.2.0/bin/../lib/gcc/x86_64-redhat-linux/4.2.0/../../../../include/c++/4.2.0/backward/iostream.h:31,
from cint/cint/lib/stream/iostrm.h:24,
from cint/cint/src/dict/libstrm.h:37,
from cint/cint/src/dict/libstrm.cxx:14:
/sw/global/compilers/open64/5.0/open64-gcc-4.2.0/bin/../lib/gcc/x86_64-redhat-linux/4.2.0/../../../../include/c++/4.2.0/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
In file included from cint/cint/src/dict/libstrm.h:39,
from cint/cint/src/dict/libstrm.cxx:14:
cint/cint/lib/stream/stdiostr.h:27:25: error: stdiostream.h: No such file or directory
In file included from cint/cint/src/dict/libstrm.h:41,
from cint/cint/src/dict/libstrm.cxx:14:
cint/cint/lib/stream/strstrm.h:25:23: error: strstream.h: No such file or directory
make: *** [cint/cint/src/dict/libstrm.o] Error 1
This seems to be caused by include statements of STL string/stream handling libs in CINT. Any help would be appreciated.
I went into the same error as psteinb, but I tried to turn around by changing stdiostream into iostream in cint/cint/lib/stream/stdiostr.h and cint/cint/lib/stream/strstrm.h
Then I get the following errors:
bin/rmkdepend -R -fcint/cint/src/dict/libstrm.d -Y -w 1000 -- -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__STD_EXCEPTION -DG__64BIT -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -I/home/gjegou/programs/root/root_v5.34.02_open64/cint/cint/inc -I/home/gjegou/programs/root/root_v5.34.02_open64/cint/cint/src -I/home/gjegou/programs/root/root_v5.34.02_open64/cint/cint/src/dict -pthread -Icint/cint/lib/libstrm -Icint/cint/lib/stream -I. -D__cplusplus -- cint/cint/src/dict/libstrm.cxx
openCC -O2 -pipe -m64 -Wall -W -Woverloaded-virtual -fPIC -Iinclude -DR__HAVE_CONFIG -DG__REGEXP -DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO -DG__STD_EXCEPTION -DG__64BIT -DG__HAVE_CONFIG -DG__NOMAKEINFO -DG__CINTBODY -I/home/gjegou/programs/root/root_v5.34.02_open64/cint/cint/inc -I/home/gjegou/programs/root/root_v5.34.02_open64/cint/cint/src -I/home/gjegou/programs/root/root_v5.34.02_open64/cint/cint/src/dict -pthread -Icint/cint/lib/libstrm -Icint/cint/lib/stream -I. -o cint/cint/src/dict/libstrm.o -c cint/cint/src/dict/libstrm.cxx
In file included from /opt/open64/open64-gcc-4.2.0/lib/gcc/x86_64-redhat-linux/4.2.0/../../../../include/c++/4.2.0/backward/iostream.h:31,
from cint/cint/lib/stream/iostrm.h:24,
from cint/cint/src/dict/libstrm.h:37,
from cint/cint/src/dict/libstrm.cxx:14:
/opt/open64/open64-gcc-4.2.0/lib/gcc/x86_64-redhat-linux/4.2.0/../../../../include/c++/4.2.0/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
/opt/open64/open64-gcc-4.2.0/lib/gcc/x86_64-redhat-linux/4.2.0/../../../../include/c++/4.2.0/streambuf: In function 'int G__G__stream_0_1_0(G__value*, const char*, G__param*, int)':
/opt/open64/open64-gcc-4.2.0/lib/gcc/x86_64-redhat-linux/4.2.0/../../../../include/c++/4.2.0/streambuf:763: error: 'typename _Traits::int_type std::basic_streambuf<_CharT, _Traits>::overflow(typename _Traits::int_type) [with _CharT = char, _Traits = std::char_traits<char>]' is protected
cint/cint/src/dict/libstrm.cxx:42: error: within this context
/opt/open64/open64-gcc-4.2.0/lib/gcc/x86_64-redhat-linux/4.2.0/../../../../include/c++/4.2.0/streambuf:763: error: 'typename _Traits::int_type std::basic_streambuf<_CharT, _Traits>::overflow(typename _Traits::int_type) [with _CharT = char, _Traits = std::char_traits<char>]' is protected
cint/cint/src/dict/libstrm.cxx:45: error: within this context
/opt/open64/open64-gcc-4.2.0/lib/gcc/x86_64-redhat-linux/4.2.0/../../../../include/c++/4.2.0/streambuf: In function 'int G__G__stream_0_2_0(G__value*, const char*, G__param*, int)':
/opt/open64/open64-gcc-4.2.0/lib/gcc/x86_64-redhat-linux/4.2.0/../../../../include/c++/4.2.0/streambuf:683: error: 'typename _Traits::int_type std::basic_streambuf<_CharT, _Traits>::underflow() [with _CharT = char, _Traits = std::char_traits<char>]' is protected
cint/cint/src/dict/libstrm.cxx:53: error: within this context
...
...
make: *** [cint/cint/src/dict/libstrm.o] Error 1
This kind of errors continue
So my modifications don’t seem to be a good idea.
Do you have any suggestions ? I am not running root interpreter on this machine, I only need TH3 and TFile libs to link in my geant4 code.