Error on root compilation on os-x-10.12.5

Hello Experts;

I had installed ROOT 5.34/36 about 1 year ago.
Now I need to enable “minuit2”.
So I did
./configure --enable-minuit2
then while doing “make” it give the following error [1]
I have checked my gcc version. [2]
also my “xcode-select -v” outout is “xcode-select version 2347.”

Any help will be useful for me.
Thanks for your suggestion.

Gouranga

[1]
cint/cint/lib/gcc4strm/iostrm.h:85:17: error: no type named ‘__streambuf_type’ in ‘std::__1::basic_ostream’
static ostream::__streambuf_type G__store_cout;
~~~~~~~~~^
cint/cint/lib/gcc4strm/iostrm.h:86:17: error: no type named ‘__streambuf_type’ in 'std::__1::basic_ostream’
static ostream::__streambuf_type G__store_cerr;
~~~~~~~~~^
cint/cint/lib/gcc4strm/iostrm.h:87:17: error: no type named ‘__streambuf_type’ in 'std::__1::basic_istream’
static istream::__streambuf_type G__store_cin;
~~~~~~~~~^
cint/cint/src/dict/gcc4strm.cxx:760:56: error: no type named ‘__istream_type’ in 'std::__1::basic_istream’
const basic_istream<char,char_traits >::__istream_type& obj = ((basic_istream<char,char_tra…
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
cint/cint/src/dict/gcc4strm.cxx:771:56: error: no type named ‘__istream_type’ in 'std::__1::basic_istream’
const basic_istream<char,char_traits >::__istream_type& obj = ((basic_istream<char,char_tra…
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
cint/cint/src/dict/gcc4strm.cxx:781:56: error: no type named ‘__istream_type’ in 'std::__1::basic_istream’
const basic_istream<char,char_traits >::__istream_type& obj = ((basic_istream<char,char_tra…
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
cint/cint/src/dict/gcc4strm.cxx:791:56: error: no type named ‘__istream_type’ in 'std::__1::basic_istream’
const basic_istream<char,char_traits >::__istream_type& obj = ((basic_istream<char,char_tra…
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
cint/cint/src/dict/gcc4strm.cxx:791:207: error: expected expression
…>
) G__getstructoffset())->get(
(basic_istream<char,char_traits >::__streambuf_type
) libp->para[0]…
^
cint/cint/src/dict/gcc4strm.cxx:791:190: error: no member named ‘__streambuf_type’ in
’std::__1::basic_istream’
…>) G__getstructoffset())->get((basic_istream<char,char_traits >::__streambuf_type*) libp->para[0]…
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
cint/cint/src/dict/gcc4strm.cxx:801:56: error: no type named ‘__istream_type’ in ‘std::__1::basic_istream’
const basic_istream<char,char_traits >::__istream_type& obj = ((basic_istream<char,char_tra…
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
cint/cint/src/dict/gcc4strm.cxx:801:207: error: expected expression
…>) G__getstructoffset())->get((basic_istream<char,char_traits >::__streambuf_type*) libp->para[0]…
^
cint/cint/src/dict/gcc4strm.cxx:801:190: error: no member named ‘__streambuf_type’ in
’std::__1::basic_istream’
…>) G__getstructoffset())->get((basic_istream<char,char_traits >::__streambuf_type*) libp->para[0]…
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
cint/cint/src/dict/gcc4strm.cxx:811:56: error: no type named ‘__istream_type’ in 'std::__1::basic_istream’
const basic_istream<char,char_traits >::__istream_type& obj = ((basic_istream<char,char_tra…
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
cint/cint/src/dict/gcc4strm.cxx:822:56: error: no type named ‘__istream_type’ in 'std::__1::basic_istream’
const basic_istream<char,char_traits >::__istream_type& obj = ((basic_istream<char,char_tra…
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
cint/cint/src/dict/gcc4strm.cxx:832:56: error: no type named ‘__istream_type’ in 'std::__1::basic_istream’
const basic_istream<char,char_traits >::__istream_type& obj = ((basic_istream<char,char_tra…
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
cint/cint/src/dict/gcc4strm.cxx:844:56: error: no type named ‘__istream_type’ in 'std::__1::basic_istream’
const basic_istream<char,char_traits >::__istream_type& obj = ((basic_istream<char,char_tra…
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
cint/cint/src/dict/gcc4strm.cxx:851:56: error: no type named ‘__istream_type’ in 'std::__1::basic_istream’
const basic_istream<char,char_traits >::__istream_type& obj = ((basic_istream<char,char_tra…
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
cint/cint/src/dict/gcc4strm.cxx:863:56: error: no type named ‘__istream_type’ in 'std::__1::basic_istream’
const basic_istream<char,char_traits >::__istream_type& obj = ((basic_istream<char,char_tra…
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
cint/cint/src/dict/gcc4strm.cxx:891:56: error: no type named ‘__istream_type’ in 'std::__1::basic_istream’
const basic_istream<char,char_traits >::__istream_type& obj = ((basic_istream<char,char_tra…
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [cint/cint/src/dict/gcc4strm.o] Error 1

[2]
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

Apple disguises clang as gcc in recent versions of Mac OS X. It could be that this breaks compatibility with ROOT (it certainly breaks compatibility with other software too). Is there any chance you could try with a real gcc compiler rather than clang? That may solve your problem. Alternatively, you could try with clang directly, without the gcc interface disguise.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.