Problems compiling on os x 10.9

Errors compiling on OS X 10.9

I had no problems compiling on OS X previous to installing 10.9. But after running ./configure it returns this:

[code]Checking for Fink/MacPorts directory …
Checking for GNU Make version >= 3.80 … ok
Checking for C compiler … clang
Checking for C++ compiler … clang++
Checking for linker (LD) … clang++
Checking for F77 compiler … no F77 compiler gfortran found
Checking for libX11 … /usr/X11R6/lib
Checking for X11/Xlib.h … /usr/X11R6/include
Checking for X11/xpm.h … /usr/X11R6/include
Checking for X11/Xft/Xft.h … /usr/X11R6/include
Checking for X11/extensions/shape.h … /usr/X11R6/include
Checking for libXpm … /usr/X11R6/lib
Checking for libXft … /usr/X11R6/lib
Checking for libXext … /usr/X11R6/lib
Checking for freetype-config … /opt/X11/bin/freetype-config
Checking for libfreetype version >= 9.3.0 … ok
Checking whether to build included libfreetype6 … no
Checking for pcre-config … not found
Checking whether to build included libpcre … yes
Checking for zlib.h … /usr/include
Checking for libz … /usr/lib
Checking whether to build included zlib … no
Checking for lzma.h … no
Checking for liblzma … /usr/lib
Checking whether to build included lzma … yes
Checking for GL/gl.h, or gl.h … /usr/X11/include
Checking for libGL, or libMesaGL … /usr/X11R6/lib
Checking for libGLU, or libMesaGLU … /usr/X11R6/lib
Checking for GL/glew.h … no
Checking for libGLEW … no
Checking whether to build included GLEW … yes
Checking for pkg-config … not found
Checking whether to build included libftgl … yes
Checking for mysql_config … not found
Checking for mysql.h … no
Checking for libmysqlclient_r, libmysqlclient, or mysqlclient … no
Checking for occi.h … no
Checking for libclntsh, or oci … no
Checking for libocci, or oraocci10 … no
Checking for libpq-fe.h … no
Checking for libpq … /usr/lib
Checking for sqlite3.h … /usr/include
Checking for libsqlite3 … /usr/lib
Checking for sql.h … no
Checking for libsqlod … no
Checking for sqlext.h … no
Checking for libiodbc, libodbc, or odbc32 … /usr/lib
Checking for rfio_api.h … no
Checking for librfio, libdpm, libcastorrfio, libshift, shiftmd, or shift … no
Checking for rfio_api.h … no
Checking for stager_api.h … no
Checking for libcastorrfio, libshift, shiftmd, or shift … no
Checking for gfal_api.h … no
Checking for libgfal … no
Checking for gfal_srm_ifce_types.h … no
Checking for ApMon.h … no
Checking for libapmoncpp … no
Checking for fftw3.h … no
Checking for libfftw3, or libfftw3-3 … no
Checking for fitsio.h … no
Checking for libcfitsio, or cfitsio … no
Checking for gvc.h … no
Checking for libgvc, or gvc … no
Checking for libgraph, graph, libcgraph, or cgraph … no
Checking for libcdt, or cdt … no
Checking for libpathplan, or pathplan … no
Checking for libexpat, or expat … /usr/lib
Checking for libgvplugin_dot_layout, or gvplugin_dot_layout … no
Checking for libPythia6 … no
Checking for Pythia.h … no
Checking for libpythia8 … no
Checking for dcap.h … no
Checking for libdcap … no
Checking for chirp_reli.h … no
Checking for libchirp_client … no
Checking for hdfs.h … no
Unable to find any JVMs matching version “(null)”.
No Java runtime present, try --request to install.
Checking for jni.h … no
Checking for libhdfs … no
Checking for libjvm … no
Checking for libglite-api-wrapper … no
Checking for gapiUI.h … no
Checking for libgapiUI … no
Checking for jpeglib.h … no
Checking for png.h … /usr/X11/include
Checking for tiffio.h … no
Checking for libjpeg … no
Checking for libtiff … no
Checking for libz … /usr/lib
Checking for libpng … /usr/X11/lib
Checking whether to build included libAfterImage … yes
Checking for ldap.h … /usr/include
Checking for libldap … /usr/lib
Checking for liblber … /usr/lib
Checking for Python.h … /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
Checking for python2.7, libpython2.7, libpython, python, or Python … /System/Library/Frameworks/Python.framework/Versions/2.7/lib
Checking for xml2-config … /usr/bin/xml2-config
Checking for libxml2 version >= 2.4.x … ok
Checking for XrdVersion.hh … no
Checking for libssl … /usr/lib
Checking for libcrypto … /usr/lib
Checking for openssl/bio.h … /usr/include
Checking for openssl/blowfish.h … /usr/include
Checking for openssl/err.h … /usr/include
Checking for openssl/pem.h … /usr/include
Checking for openssl/rand.h … /usr/include
Checking for openssl/rsa.h … /usr/include
Checking for t_server.h … no
Checking for libsrp … no
Checking for libgmp … /usr/local/lib
Checking for libmisc … no
Checking for pwauth.h … no
Checking for krb5.h … /usr/include
Checking for krb5.h redirect … /usr/include/krb5/krb5.h
Checking for krb5_c_valid_cksumtype in krb5.h … yes
Checking for valid_cksumtype in krb5.h … no
Checking for libk5crypto … /usr/lib
Checking whether we’re using MIT Kerberos … yes
Checking for krb5_c_valid_cksumtype in /usr/lib/libk5crypto.dylib … ok
Checking for valid_cksumtype in /usr/lib/libk5crypto.dylib … ok
Checking for libkrb5 … /usr/lib
Checking for kinit … /usr/bin/kinit
Checking for libcom_err … /usr/lib
Checking for shadow passwords … no
Checking for gsl/gsl_version.h … no
Checking for gsl-config … not found
Checking whether to build libMathMore … no
Checking whether to build libGenVector … yes
Checking whether to build libCintex … yes
Checking whether to build libReflex … yes
Checking whether to build libRooFit … no
Checking whether to build libMinuit2 … no
Checking whether to build libUnuran … no
Checking whether to build libGdml … no
Checking whether to build libTable … no
Checking whether to build libTMVA … yes
Checking whether to build libMemStat … yes
Checking whether to build afdsmgrd … no
Checking whether to integrate experimental cling … no
Checking what type of dictionaries to build … cint
Writing config/Makefile.config … done
Writing config/Makefile.comp … done
Writing include/RConfigure.h … done
Writing include/RConfigOptions.h … done
Writing bin/root-config … done
Writing etc/system.rootrc … done
Writing etc/system.rootauthrc … done
Writing etc/system.rootdaemonrc … done
Writing etc/root.mimes … done
Writing etc/daemons/rootd.rc.d … done
Writing etc/daemons/rootd.xinetd … done
Writing etc/daemons/proofd.rc.d … done
Writing etc/daemons/proofd.xinetd … done
Writing main/src/proofserv.sh … done
Writing main/src/roots.sh … done
Writing bin/memprobe … done
Writing build/misc/root-help.el … done
Writing macros/html.C … done
Writing bin/thisroot.sh … done
Writing bin/thisroot.csh … done
Writing bin/setxrd.sh … done
Writing bin/setxrd.csh … done
Writing bin/genreflex … done
Writing bin/genreflex-rootcint … done
Writing config.status … done

Enabled support for asimage, astiff, bonjour, builtin_afterimage, builtin_ftgl, builtin_glew, builtin_pcre, builtin_lzma, cintex, explicitlink, fink, genvector, krb5, ldap, memstat, opengl, python, reflex, shared, sqlite, ssl, tmva, x11, xft, xml.
[/code]

I tried compiling but 20 errors were generated:

cint/cint/lib/gcc4strm/iostrm.h:85:17: error: no type named '__streambuf_type' in 'std::__1::basic_ostream<char>' 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<char>' 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<char>' 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<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:771:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:781:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:791:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:791:190: error: no member named '__streambuf_type' in 'std::__1::basic_istream<char>' ...G__getstructoffset())->get(*(basic_istream<char,char_traits<char> >::__s... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:791:207: error: expected expression ...>::__streambuf_type*) libp->para[0].ref, (basic_istream<char,char_traits... ^ cint/cint/src/dict/gcc4strm.cxx:801:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:801:190: error: no member named '__streambuf_type' in 'std::__1::basic_istream<char>' ...G__getstructoffset())->get(*(basic_istream<char,char_traits<char> >::__s... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:801:207: error: expected expression ...>::__streambuf_type*) libp->para[0].ref); ^ cint/cint/src/dict/gcc4strm.cxx:811:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:822:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:832:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:844:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:851:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:863:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:891:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [cint/cint/src/dict/gcc4strm.o] Error 1

If anyone can tell me what I’m missing or need, it will be greatly appreciated. Thanks

Is it 5.34-patches?
Have you installed the command line tools?

I’ve just tried and it compiled/linked ok. My .configure log looks almost the same except I have:

“Checking whether libc++ is supported … yes” and you don’t.

I did install the command line tools using

and it said finished installing.

I don’t actually have a developer account, I was just given the installer by someone who does. I see the binaries in /usr/bin/ for gcc and g++ so I’m assuming the command line tools were installed.

I downloaded the 5.34 listed under the download page, recommended next to it.

Thanks for the help.

[quote=“lpf”]I did install the command line tools using

and it said finished installing.

I don’t actually have a developer account, I was just given the installer by someone who does. I see the binaries in /usr/bin/ for gcc and g++ so I’m assuming the command line tools were installed.

I downloaded the 5.34 listed under the download page, recommended next to it.

Thanks for the help.[/quote]

I’m not quite sure if ‘xcode-select’ did a real work, since in my case the command line tools were installed “official way” - first downloading dmg from a Apple’s “member centre” and later running installer.

And you need 5-34-patches or trunk for OS 10.9 (they were updated recently to build on OS 10.9).
So, can you try 5-34-patches?

Hi all,

I’ve just upgraded to 10.9 and installed xcode5.0.1 with command line tools. I see exactly the same error messages when I try to compile root.

Best regards,
Kun

[quote=“lpf”]Errors compiling on OS X 10.9

I had no problems compiling on OS X previous to installing 10.9. But after running ./configure it returns this:

[code]Checking for Fink/MacPorts directory …
Checking for GNU Make version >= 3.80 … ok
Checking for C compiler … clang
Checking for C++ compiler … clang++
Checking for linker (LD) … clang++
Checking for F77 compiler … no F77 compiler gfortran found
Checking for libX11 … /usr/X11R6/lib
Checking for X11/Xlib.h … /usr/X11R6/include
Checking for X11/xpm.h … /usr/X11R6/include
Checking for X11/Xft/Xft.h … /usr/X11R6/include
Checking for X11/extensions/shape.h … /usr/X11R6/include
Checking for libXpm … /usr/X11R6/lib
Checking for libXft … /usr/X11R6/lib
Checking for libXext … /usr/X11R6/lib
Checking for freetype-config … /opt/X11/bin/freetype-config
Checking for libfreetype version >= 9.3.0 … ok
Checking whether to build included libfreetype6 … no
Checking for pcre-config … not found
Checking whether to build included libpcre … yes
Checking for zlib.h … /usr/include
Checking for libz … /usr/lib
Checking whether to build included zlib … no
Checking for lzma.h … no
Checking for liblzma … /usr/lib
Checking whether to build included lzma … yes
Checking for GL/gl.h, or gl.h … /usr/X11/include
Checking for libGL, or libMesaGL … /usr/X11R6/lib
Checking for libGLU, or libMesaGLU … /usr/X11R6/lib
Checking for GL/glew.h … no
Checking for libGLEW … no
Checking whether to build included GLEW … yes
Checking for pkg-config … not found
Checking whether to build included libftgl … yes
Checking for mysql_config … not found
Checking for mysql.h … no
Checking for libmysqlclient_r, libmysqlclient, or mysqlclient … no
Checking for occi.h … no
Checking for libclntsh, or oci … no
Checking for libocci, or oraocci10 … no
Checking for libpq-fe.h … no
Checking for libpq … /usr/lib
Checking for sqlite3.h … /usr/include
Checking for libsqlite3 … /usr/lib
Checking for sql.h … no
Checking for libsqlod … no
Checking for sqlext.h … no
Checking for libiodbc, libodbc, or odbc32 … /usr/lib
Checking for rfio_api.h … no
Checking for librfio, libdpm, libcastorrfio, libshift, shiftmd, or shift … no
Checking for rfio_api.h … no
Checking for stager_api.h … no
Checking for libcastorrfio, libshift, shiftmd, or shift … no
Checking for gfal_api.h … no
Checking for libgfal … no
Checking for gfal_srm_ifce_types.h … no
Checking for ApMon.h … no
Checking for libapmoncpp … no
Checking for fftw3.h … no
Checking for libfftw3, or libfftw3-3 … no
Checking for fitsio.h … no
Checking for libcfitsio, or cfitsio … no
Checking for gvc.h … no
Checking for libgvc, or gvc … no
Checking for libgraph, graph, libcgraph, or cgraph … no
Checking for libcdt, or cdt … no
Checking for libpathplan, or pathplan … no
Checking for libexpat, or expat … /usr/lib
Checking for libgvplugin_dot_layout, or gvplugin_dot_layout … no
Checking for libPythia6 … no
Checking for Pythia.h … no
Checking for libpythia8 … no
Checking for dcap.h … no
Checking for libdcap … no
Checking for chirp_reli.h … no
Checking for libchirp_client … no
Checking for hdfs.h … no
Unable to find any JVMs matching version “(null)”.
No Java runtime present, try --request to install.
Checking for jni.h … no
Checking for libhdfs … no
Checking for libjvm … no
Checking for libglite-api-wrapper … no
Checking for gapiUI.h … no
Checking for libgapiUI … no
Checking for jpeglib.h … no
Checking for png.h … /usr/X11/include
Checking for tiffio.h … no
Checking for libjpeg … no
Checking for libtiff … no
Checking for libz … /usr/lib
Checking for libpng … /usr/X11/lib
Checking whether to build included libAfterImage … yes
Checking for ldap.h … /usr/include
Checking for libldap … /usr/lib
Checking for liblber … /usr/lib
Checking for Python.h … /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
Checking for python2.7, libpython2.7, libpython, python, or Python … /System/Library/Frameworks/Python.framework/Versions/2.7/lib
Checking for xml2-config … /usr/bin/xml2-config
Checking for libxml2 version >= 2.4.x … ok
Checking for XrdVersion.hh … no
Checking for libssl … /usr/lib
Checking for libcrypto … /usr/lib
Checking for openssl/bio.h … /usr/include
Checking for openssl/blowfish.h … /usr/include
Checking for openssl/err.h … /usr/include
Checking for openssl/pem.h … /usr/include
Checking for openssl/rand.h … /usr/include
Checking for openssl/rsa.h … /usr/include
Checking for t_server.h … no
Checking for libsrp … no
Checking for libgmp … /usr/local/lib
Checking for libmisc … no
Checking for pwauth.h … no
Checking for krb5.h … /usr/include
Checking for krb5.h redirect … /usr/include/krb5/krb5.h
Checking for krb5_c_valid_cksumtype in krb5.h … yes
Checking for valid_cksumtype in krb5.h … no
Checking for libk5crypto … /usr/lib
Checking whether we’re using MIT Kerberos … yes
Checking for krb5_c_valid_cksumtype in /usr/lib/libk5crypto.dylib … ok
Checking for valid_cksumtype in /usr/lib/libk5crypto.dylib … ok
Checking for libkrb5 … /usr/lib
Checking for kinit … /usr/bin/kinit
Checking for libcom_err … /usr/lib
Checking for shadow passwords … no
Checking for gsl/gsl_version.h … no
Checking for gsl-config … not found
Checking whether to build libMathMore … no
Checking whether to build libGenVector … yes
Checking whether to build libCintex … yes
Checking whether to build libReflex … yes
Checking whether to build libRooFit … no
Checking whether to build libMinuit2 … no
Checking whether to build libUnuran … no
Checking whether to build libGdml … no
Checking whether to build libTable … no
Checking whether to build libTMVA … yes
Checking whether to build libMemStat … yes
Checking whether to build afdsmgrd … no
Checking whether to integrate experimental cling … no
Checking what type of dictionaries to build … cint
Writing config/Makefile.config … done
Writing config/Makefile.comp … done
Writing include/RConfigure.h … done
Writing include/RConfigOptions.h … done
Writing bin/root-config … done
Writing etc/system.rootrc … done
Writing etc/system.rootauthrc … done
Writing etc/system.rootdaemonrc … done
Writing etc/root.mimes … done
Writing etc/daemons/rootd.rc.d … done
Writing etc/daemons/rootd.xinetd … done
Writing etc/daemons/proofd.rc.d … done
Writing etc/daemons/proofd.xinetd … done
Writing main/src/proofserv.sh … done
Writing main/src/roots.sh … done
Writing bin/memprobe … done
Writing build/misc/root-help.el … done
Writing macros/html.C … done
Writing bin/thisroot.sh … done
Writing bin/thisroot.csh … done
Writing bin/setxrd.sh … done
Writing bin/setxrd.csh … done
Writing bin/genreflex … done
Writing bin/genreflex-rootcint … done
Writing config.status … done

Enabled support for asimage, astiff, bonjour, builtin_afterimage, builtin_ftgl, builtin_glew, builtin_pcre, builtin_lzma, cintex, explicitlink, fink, genvector, krb5, ldap, memstat, opengl, python, reflex, shared, sqlite, ssl, tmva, x11, xft, xml.
[/code]

I tried compiling but 20 errors were generated:

cint/cint/lib/gcc4strm/iostrm.h:85:17: error: no type named '__streambuf_type' in 'std::__1::basic_ostream<char>' 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<char>' 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<char>' 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<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:771:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:781:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:791:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:791:190: error: no member named '__streambuf_type' in 'std::__1::basic_istream<char>' ...G__getstructoffset())->get(*(basic_istream<char,char_traits<char> >::__s... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:791:207: error: expected expression ...>::__streambuf_type*) libp->para[0].ref, (basic_istream<char,char_traits... ^ cint/cint/src/dict/gcc4strm.cxx:801:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:801:190: error: no member named '__streambuf_type' in 'std::__1::basic_istream<char>' ...G__getstructoffset())->get(*(basic_istream<char,char_traits<char> >::__s... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:801:207: error: expected expression ...>::__streambuf_type*) libp->para[0].ref); ^ cint/cint/src/dict/gcc4strm.cxx:811:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:822:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:832:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:844:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:851:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:863:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:891:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& o... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *** [cint/cint/src/dict/gcc4strm.o] Error 1

If anyone can tell me what I’m missing or need, it will be greatly appreciated. Thanks[/quote]

Hi tpochep,

Can you please be more specific about the 5-34-patches? I downloaded the source code with tag 5-34-10 and the compilation failed. What’s the patch version are you use? How can I access the code? Thank you very much!

Best regards,
Kun

[quote=“tpochep”][quote=“lpf”]I did install the command line tools using

and it said finished installing.

I don’t actually have a developer account, I was just given the installer by someone who does. I see the binaries in /usr/bin/ for gcc and g++ so I’m assuming the command line tools were installed.

I downloaded the 5.34 listed under the download page, recommended next to it.

Thanks for the help.[/quote]

I’m not quite sure if ‘xcode-select’ did a real work, since in my case the command line tools were installed “official way” - first downloading dmg from a Apple’s “member centre” and later running installer.

And you need 5-34-patches or trunk for OS 10.9 (they were updated recently to build on OS 10.9).
So, can you try 5-34-patches?[/quote]

[quote=“liuk”]Hi tpochep,

Can you please be more specific about the 5-34-patches? I downloaded the source code with tag 5-34-10 and the compilation failed. What’s the patch version are you use? How can I access the code? Thank you very much!

Best regards,
Kun

[/quote]

Hi. You need the v5-34-00-patches.
Otherwise, I’m afraid, you can not build previous/old 5-34 releases, since they do not have modifications required for 10.9.

Hello!

I also downloaded the latest recommended version of root, as well as the command line tools but I cannot seem to compile. Actually there is not an official version of ROOT for 10.9 as I can see in the download page…

Example of error:

Undefined symbols for architecture x86_64:
“std::__1::locale::use_facet(std::__1::locale::id&) const”, referenced from:
std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::operator<<<std::__1::char_traits >(std::__1::basic_ostream<char, std::__1::char_traits >&, char const*) in ClosureTest_C_ACLiC_dict.o
"std::__1::ios_base::getloc() const", referenced from:
std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::operator<<<std::__1::char_traits >(std::__1::basic_ostream<char, std::__1::char_traits >&, char const*) in ClosureTest_C_ACLiC_dict.o
"std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::__init(unsigned long, char)", referenced from:
std::__1::ostreambuf_iterator<char, std::__1::char_traits > std::__1::__pad_and_output<char, std::__1::char_traits >(std::__1::ostreambuf_iterator<char, std::__1::char_traits >, char const*, char const*, char const*, std::__1::ios_base&, char) in ClosureTest_C_ACLiC_dict.o
"std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator >::~basic_string()", referenced from:
std::__1::ostreambuf_iterator<char, std::__1::char_traits > std::__1::__pad_and_output<char, std::__1::char_traits >(std::__1::ostreambuf_iterator<char, std::__1::char_traits >, char const*, char const*, char const*, std::__1::ios_base&, char) in ClosureTest_C_ACLiC_dict.o
"std::__1::basic_ostream<char, std::__1::char_traits >::sentry::sentry(std::__1::basic_ostream<char, std::__1::char_traits >&)", referenced from:
std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::operator<<<std::__1::char_traits >(std::__1::basic_ostream<char, std::__1::char_traits >&, char const*) in ClosureTest_C_ACLiC_dict.o
"std::__1::basic_ostream<char, std::__1::char_traits >::sentry::~sentry()", referenced from:
std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::operator<<<std::__1::char_traits >(std::__1::basic_ostream<char, std::__1::char_traits >&, char const*) in ClosureTest_C_ACLiC_dict.o
"std::__1::cout", referenced from:
run() in ClosureTest_C_ACLiC_dict.o
"std::__1::ctype::id", referenced from:
std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::operator<<<std::__1::char_traits >(std::__1::basic_ostream<char, std::__1::char_traits >&, char const*) in ClosureTest_C_ACLiC_dict.o
"std::__1::locale::~locale()", referenced from:
std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::operator<<<std::__1::char_traits >(std::__1::basic_ostream<char, std::__1::char_traits >&, char const*) in ClosureTest_C_ACLiC_dict.o
"std::__1::ios_base::__set_badbit_and_consider_rethrow()", referenced from:
std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::operator<<<std::__1::char_traits >(std::__1::basic_ostream<char, std::__1::char_traits >&, char const*) in ClosureTest_C_ACLiC_dict.o
"std::__1::ios_base::clear(unsigned int)", referenced from:
std::__1::basic_ostream<char, std::__1::char_traits >& std::__1::operator<<<std::__1::char_traits >(std::__1::basic_ostream<char, std::__1::char_traits >&, char const*) in ClosureTest_C_ACLiC_dict.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error in : Compilation failed!

Any ideas?

Many thanks…

Even if you can make that work (which you can if you set compiler flags correctly or just use homebrew), you’re still going to be screwed because the default OS X compiler (clang) uses libc++ instead of libstdc++ now, which breaks a lot of things in the reflex portion of ROOT since it heavily tied to libstdc++. You can try this from the homebrew-science tap with ‘brew install -v root 2>&1’.

Apparently you can still get libstdc++ on 10.9 if you need it, and I tried setting the CXXFLAGS for Clang to do this, but they are either overridden or ignored by ROOT’s build system. I’m considering modifying the homebrew formula to use the CMake build method instead, but I don’t know how much that will fix. Might be better off just waiting til the ROOT developers fix this. Could be a while though, looks like there’s a lot of libstdc++ internals being used that might not be available on 10.9.

I agree this should be fixed by the developers because either you override the default std::lib choice and specifically choose the older gcc-4.2 based libstdc++ which is the easier path. But if this path is chosen, you are ultimately simply delaying the work…

Actually, on second thought, your errors are probably a result of the same issue. I think that setting CXXFLAGS to include -stdlib=libstdc++ will allow you to get past this a bit, but it still dies on reflex stuff.

Perhaps to avoid this in the future, one should follow the advice of the C and C++ standards and reserve usage of double underscore names for the compiler implementation.

[quote=“Stefanos21”]Hello!

I also downloaded the latest recommended version of root, as well as the command line tools but I cannot seem to compile. Actually there is not an official version of ROOT for 10.9 as I can see in the download page…

Any ideas?

Many thanks…[/quote]

Have you tried v5-34-00-patches I’ve recommended in my reply above? The latest official release was LONG before 10.9, so it does not have modifications required. And I do not think it’s possible to “re-release” it.
I’ve built 5-34-patches and trunk today to be sure - it works.
My colleague installed 5.34 today and also had no problems.

Hello!

Thanks for the reply!

What I was doing in the past is to go to

root.cern.ch/drupal/content/prod … ersion-534

then Mac OS X then Mac OS X 10.8 x86-64 with clang v4.1, version 5.34.05

This is not working… Do you mean get the source and compile it??

Thanks again!

Stefanos

[quote=“Stefanos21”]Hello!

Thanks for the reply!

What I was doing in the past is to go to

root.cern.ch/drupal/content/prod … ersion-534

then Mac OS X then Mac OS X 10.8 x86-64 with clang v4.1, version 5.34.05

This is not working… Do you mean get the source and compile it??

Thanks again!

Stefanos[/quote]

Hm, yes, I was quite sure you were trying to compile it :slight_smile: (you said you can not compile, but I see now you have something else). I’ve tried binaries for 10.8 and it still works for me, though, of course, I’ve just tried a couple of standard ROOT’s tutorials. ACLiC does not work with old binaries.

[quote=“tpochep”][quote=“Stefanos21”]Hello!

Thanks for the reply!

What I was doing in the past is to go to

root.cern.ch/drupal/content/prod … ersion-534

then Mac OS X then Mac OS X 10.8 x86-64 with clang v4.1, version 5.34.05

This is not working… Do you mean get the source and compile it??

Thanks again!

Stefanos[/quote]

Hm, yes, I was quite sure you were trying to compile it :slight_smile: (but you said you can not compile) I’m afraid, binaries for 10.8 are not good on 10.9[/quote]

Maybe I’ve messed things up… I’m not trying to compile root. I’m trying to compile a simple program and I can’t… ROOT works fine with no problem in compiling very simple programs, but if for example I insert a “cout” inside the code the compilation crashes…

[quote=“Stefanos21”]
Maybe I’ve messed things up… I’m not trying to compile root. I’m trying to compile a simple program and I can’t… ROOT works fine with no problem in compiling very simple programs, but if for example I insert a “cout” inside the code the compilation crashes…[/quote]

Ok, I see. The OP was not able to compile ROOT from the source and at first this topic was about compiling ROOT, and later other problems appeared.
Since I work with my own build, I’ve never tried to use pre-built binaries.

Hi all

I also downloaded the 5.34 patches and the compilation fails under 10.9

How you manage to compile it ?

I have also the same problem as Stefanos when try to compile a script using a pre-build for Mac.

Thanks,
George

[quote=“giakov”]Hi all

I also downloaded the 5.34 patches and the compilation fails under 10.9

How you manage to compile it ?

I have also the same problem as Stefanos when try to compile a script using a pre-build for Mac.

Thanks,
George[/quote]

Wait, Stefanos is using 5-34 built for 10.8 and it has problems. I was talking about compiling ROOT itself.
Are you working with binaries?

P.S. ACLiC seems to be broken even if I compile v5-34 from the source - I’m not able to compile the simplest “Hallo world”.
P.P.S. I do not know what was wrong, but now ACLiC works ok for me with 5.34 patches built from the source.

What I say is that I have also the 10.8 build issues with 10.9

Then I downloaded the v5-34-10 from 5-34-00 patches and tried to compile it under 10.9 and it fails with

error: no type named '__streambuf_type' in 'std::__1::basic_ostream<char>' 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<char>' 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<char>' 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<char>' const basic_istream<char,char_traits<char> >::__istream_type& obj = ((basic_istream<char,char_traits<char> >*) G__getstructoffset())-... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:771:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& obj = ((basic_istream<char,char_traits<char> >*) G__getstructoffset())-... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:781:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& obj = ((basic_istream<char,char_traits<char> >*) G__getstructoffset())-... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:791:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& obj = ((basic_istream<char,char_traits<char> >*) G__getstructoffset())-... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:791:190: error: no member named '__streambuf_type' in 'std::__1::basic_istream<char>' ...obj = ((basic_istream<char,char_traits<char> >*) G__getstructoffset())->get(*(basic_istream<char,char_traits<char> >::__streambuf_type*) libp-... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:791:207: error: expected expression ...obj = ((basic_istream<char,char_traits<char> >*) G__getstructoffset())->get(*(basic_istream<char,char_traits<char> >::__streambuf_type*) libp-... ^ cint/cint/src/dict/gcc4strm.cxx:801:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& obj = ((basic_istream<char,char_traits<char> >*) G__getstructoffset())-... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:801:190: error: no member named '__streambuf_type' in 'std::__1::basic_istream<char>' ...obj = ((basic_istream<char,char_traits<char> >*) G__getstructoffset())->get(*(basic_istream<char,char_traits<char> >::__streambuf_type*) libp-... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:801:207: error: expected expression ...obj = ((basic_istream<char,char_traits<char> >*) G__getstructoffset())->get(*(basic_istream<char,char_traits<char> >::__streambuf_type*) libp-... ^ cint/cint/src/dict/gcc4strm.cxx:811:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& obj = ((basic_istream<char,char_traits<char> >*) G__getstructoffset())-... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:822:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& obj = ((basic_istream<char,char_traits<char> >*) G__getstructoffset())-... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:832:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& obj = ((basic_istream<char,char_traits<char> >*) G__getstructoffset())-... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:844:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& obj = ((basic_istream<char,char_traits<char> >*) G__getstructoffset())-... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:851:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& obj = ((basic_istream<char,char_traits<char> >*) G__getstructoffset())-... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:863:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& obj = ((basic_istream<char,char_traits<char> >*) G__getstructoffset())-... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ cint/cint/src/dict/gcc4strm.cxx:891:56: error: no type named '__istream_type' in 'std::__1::basic_istream<char>' const basic_istream<char,char_traits<char> >::__istream_type& obj = ((basic_istream<char,char_traits<char> >*) G__getstructoffset())-... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ fatal error: too many errors emitted, stopping now [-ferror-limit=]