Problems compiling on os x 10.9

[quote=“giakov”]What I say is that I have also the 10.8 build issues with 10.9
[/quote]

Ok, can you, please, show step by step what you did exactly? (with a configuration log, etc).
I’m asking because I had similar problems with 5-34 two weeks ago but they gone after the head of 5-34 was updated.

I run ./configure macosx64 --all
and I get:

[code]Checking for source directory … /Users/gio/root
Configuring for macosx64
Checking for Fink/MacPorts directory … /cern
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 … gfortran
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/local/bin/freetype-config
Checking for libfreetype version >= 9.3.0 … ok
Checking whether to build included libfreetype6 … no
Checking for pcre-config … /opt/local/bin/pcre-config
Checking for libpcre version >= 3.9 … ok
Checking whether to build included libpcre … no
Checking for zlib.h … no
Checking for libz … /usr/lib
Checking whether to build included zlib … yes
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 … /opt/local/bin/pkg-config
Checking for libftgl … no
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 … no
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 Qt/qglobal.h … no
Checking for moc or moc.exe … no
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 … /cern/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 … no
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 ruby.h … no
Checking for ruby/config.h … no
Checking for libruby.2.0.0.dylib … /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/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 … no
Checking for t_server.h … no
Checking for libsrp … no
Checking for libgmp … no
Checking for libmisc … no
Checking for pwauth.h … no
Checking for krb5.h … no
Checking for shadow passwords … no
Checking for gsl/gsl_version.h … /usr/local/include
Checking for GSL version >= 1.8 … ok
Checking for libgsl, gslML, or gsl … /usr/local/lib
Checking for libgslcblas, gslcblasML, gslcblas, or cblas … /usr/local/lib
Checking whether /usr/local/lib/libgsl.a is compiled with -fPIC … yes
Checking whether /usr/local/lib/libgslcblas.a is compiled with -fPIC … yes
Checking whether to build libMathMore … yes
Checking whether to build libGenVector … yes
Checking whether to build libCintex … yes
Checking whether to build libReflex … yes
Checking whether to build libRooFit … yes
Checking whether to build libMinuit2 … yes
Checking whether to build libUnuran … yes
Checking whether to build libGdml … yes
Checking whether to build libTable … yes
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_zlib, builtin_lzma, cintex, explicitlink, fink, gdml, genvector, mathmore, memstat, minuit2, opengl, python, reflex, roofit, rpath, shared, table, tmva, unuran, x11, xft, xml.

To build ROOT type:

make [/code]

so then make and I get the error I sent before.

Thanks a lot !

[quote=“giakov”]I run ./configure macosx64 --all

Enabled support for asimage, astiff, bonjour, builtin_afterimage, builtin_ftgl, builtin_glew, builtin_zlib, builtin_lzma, cintex, explicitlink, fink, gdml, genvector, mathmore, memstat, minuit2, opengl, python, reflex, roofit, rpath, shared, table, tmva, unuran, x11, xft, xml.

To build ROOT type:

make [/code]

so then make and I get the error I sent before.

Thanks a lot ![/quote]

Can you, please, also show git commands you are using? Just to be sure :slight_smile:
And if I understand correctly, you installed the latest command line tools?

I don’t give any git commands… just a web download and untar the file.

The command line are the latest. I am pretty sure there is a conflict of the transition from libstdc++ to libc++.

Thanks again !

[quote=“giakov”]I don’t give any git commands… just a web download and untar the file.

The command line are the latest. I am pretty sure there is a conflict of the transition from libstdc++ to libc++.

Thanks again ![/quote]

Wait, what did you download exactly, can you, please, give me a link?

ftp://root.cern.ch/root/root_v5.34.10.source.tar.gz

I’m afraid this is not what you need to compile (this is not the branch I’ve mentioned in this topic).

Do:
git clone root.cern.ch/git/root.git any-name-you-want
cd any-name-you-want
git checkout -t origin/v5-34-00-patches
./configure
make

Worked like charm ! Thanks a lot again !

I’m afraid this is not what you need to compile (this is not the branch I’ve mentioned in this topic).

Do:
git clone root.cern.ch/git/root.git any-name-you-want
cd any-name-you-want
git checkout -t origin/v5-34-00-patches
./configure
make[/quote]

Thanks a lot for the very clear and to point instructions!!

Cheers,
Stefanos

Greetings,
Is everything OK after compilation for all? I get lots of abnormalities like
1)
Warning: /usr/bin/atos is moving and will be removed from a future OS X release.

Error in TGNumberEntry::TGNumberEntry: arrow_up.xpm not found
Error in TGNumberEntry::TGNumberEntry: arrow_down.xpm not found

This is patches compilation as described earlier.

[quote=“unelg”]Greetings,
Is everything OK after compilation for all? I get lots of abnormalities like
1)
Warning: /usr/bin/atos is moving and will be removed from a future OS X release.

Error in TGNumberEntry::TGNumberEntry: arrow_up.xpm not found
Error in TGNumberEntry::TGNumberEntry: arrow_down.xpm not found

This is patches compilation as described earlier.[/quote]

How can I reproduce this?
xpm files mentioned are (AFAIK) for “arrow buttons” in a scrollbar. I do not see this message, usually this problem has nothing to do with Mac OS/not Mac OS - people also has it on linuxes or when they have some mess with ROOT’s installation (I think, ROOT is not able to find ‘icons’ directory with xpms).

Simple: launch a TBrowser after compilation and installation (I always do a make install)
I have:
ROOT 5.34/10 (heads/v5-34-00-patches@v5-34-10-200-g9ad1eea, Oct 24 2013, 11:28:26 on macosx64)

root [0] TBrowser a
Error in TGVScrollBar::TGVScrollBar: arrow_*.xpm not found

*** Break *** segmentation violation
Generating stack trace…

Warning: /usr/bin/atos is moving and will be removed from a future OS X release.
It is now available in the Xcode developer tools to be invoked via: xcrun atos
To silence this warning, pass the ‘-d’ command-line flag to this tool.

0x00000001047ac1a9 in TGFrame::Resize(unsigned int, unsigned int) (in libGui.so) + 105

Warning: /usr/bin/atos is moving and will be removed from a future OS X release.
It is now available in the Xcode developer tools to be invoked via: xcrun atos
To silence this warning, pass the ‘-d’ command-line flag to this tool.

0x00000001047d1e82 in TGListBox::Resize(unsigned int, unsigned int) (in libGui.so) + 66

[quote=“unelg”]Simple: launch a TBrowser after compilation and installation (I always do a make install)
I have:
ROOT 5.34/10 (heads/v5-34-00-patches@v5-34-10-200-g9ad1eea, Oct 24 2013, 11:28:26 on macosx64)

root [0] TBrowser a
Error in TGVScrollBar::TGVScrollBar: arrow_*.xpm not found

*** Break *** segmentation violation
Generating stack trace…

Warning: /usr/bin/atos is moving and will be removed from a future OS X release.
It is now available in the Xcode developer tools to be invoked via: xcrun atos
To silence this warning, pass the ‘-d’ command-line flag to this tool.

0x00000001047ac1a9 in TGFrame::Resize(unsigned int, unsigned int) (in libGui.so) + 105

Warning: /usr/bin/atos is moving and will be removed from a future OS X release.
It is now available in the Xcode developer tools to be invoked via: xcrun atos
To silence this warning, pass the ‘-d’ command-line flag to this tool.

0x00000001047d1e82 in TGListBox::Resize(unsigned int, unsigned int) (in libGui.so) + 66[/quote]

Yes, so you can search on this forum - people have this problem from time to time on different platforms with different reasons. I do not have it on my mac with 10.9.
P.S. Also, I do not think it’s a good idea to do ‘make install’, just ‘make’ (with some options like -jN probably). It’s very possible (I’m only guessing) that make install copies ROOT’s binaries/libraries (I do not know where) but ‘icons’ directory is still not there and … you have this crash.

Hello again.
I do these: ./configure; make -j2; make install. (that worked in the last 10+ years) I don’t see why it should fail now. make install does a working copy of all needed libs,bin and shared items like icons. In fact, this is how we can have “binary only” distributions. Moreover I searched as given below.
My previous root installation:
/cern/root-5.34-03/icons/arrow.xpm
My current installation:
/cern/root-current/icons/arrow.xpm

The ROOTSYS, PATH, LD and DYLD paths are what they were before. I can’t imagine what has changed other than the operating system and root sources.

[quote=“unelg”]Hello again.
I do these: ./configure; make -j2; make install. (that worked in the last 10+ years) I don’t see why it should fail now. [/quote]

Neither do I.

ROOT looks for icons:

# ifdef ROOTICONPATH

   icon_path = TString::Format("%s/icons:%s:.:", gSystem->HomeDirectory(),
                               ROOTICONPATH);
#  ifdef EXTRAICONPATH
   icon_path += gEnv->GetValue("Gui.IconPath", EXTRAICONPATH);
#  else
   icon_path += gEnv->GetValue("Gui.IconPath", "");
#  endif
# else
   icon_path = TString::Format("%s/icons:%s/icons:.:", gSystem->HomeDirectory(),
                                                       gSystem->Getenv("ROOTSYS"));
   icon_path += gEnv->GetValue("Gui.IconPath", "");
# endif

ROOTICONPATH is defined if you had some special options for a configure script (== $ROOTSYS/icons).
The path is a sum of $HOME/icons, $ROOTSYS/icons, Gui.IconPath (which is defined in the etc/system.rootrc) + probably EXTRAICONPATH.
So it looks like you DO NOT HAVE ‘icons’ in any of these places. If you do, please, provide here exact locations/path - what is ROOTSYS, where you place icons, output of gSystem->Getenv(“ROOTSYS”) etc.

I’ve tried make install on ubuntu - it does nothing actually, how does it work for you???

[quote]make install
Everything already installed…[/quote]

ROOT 5.34/10 (heads/v5-34-00-patches@v5-34-10-200-g9ad1eea, Oct 24 2013, 11:47:00 on macosx64)

CINT/ROOT C/C++ Interpreter version 5.18.00, July 2, 2010
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] gSystem->Getenv(“ROOTSYS”)
(const char* 0x7ffaa8c080a8)"/cern/root-current"
root [1] system(“ls $ROOTSYS/icons”)
GoBack.gif bld_grab.xpm bld_vseparator.xpm eve_viewer.xpm geotube_s.xpm mb_exclamation_s.xpm record_t.xpm
GoForward.gif bld_grab_d.xpm bld_vslider.xpm expression_t.xpm geotube_t.xpm mb_question_s.xpm recursor.png
GoHome.gif bld_grid.png branch-cl_t.xpm f1_s.xpm geotubeseg_s.xpm mb_stop_s.xpm refresh.png
ReloadPage.gif bld_grid.xpm branch-ob_t.xpm f1_t.xpm
(I didn’t give the full icons list.)

[quote=“unelg”]ROOT 5.34/10 (heads/v5-34-00-patches@v5-34-10-200-g9ad1eea, Oct 24 2013, 11:47:00 on macosx64)

GoBack.gif bld_grab.xpm bld_vseparator.xpm eve_viewer.xpm geotube_s.xpm mb_exclamation_s.xpm record_t.xpm
GoForward.gif bld_grab_d.xpm bld_vslider.xpm expression_t.xpm geotube_t.xpm mb_question_s.xpm recursor.png
GoHome.gif bld_grid.png branch-cl_t.xpm f1_s.xpm geotubeseg_s.xpm mb_stop_s.xpm refresh.png
ReloadPage.gif bld_grid.xpm branch-ob_t.xpm f1_t.xpm
(I didn’t give the full icons list.)[/quote]

Ok, can you modify the code to print this icon_path? It’s in the ROOT’s source tree, in gui/gui/src/TGResourcePool.cxx, ~line 126 - insert something like
std::cout<<icon_path.Data()<<std::endl; (and include ) or use printf if you want.
And you’ll have to re-compile.
Also, in this list you do not have arrow.xpm actually, but I guess you’ve simply omitted it.

Also, before re-building, can you, please, without setting any env. variables (that’s important) do: . thisroot.sh from /cern/root-current/bin and try to start ROOT’s command line session and create TCanvas/TBrowser whatever?

  1. arrow icons were at the lower part of the list, hence my omission.

  2. you asked" Also, before re-building, can you, please, without setting any env. variables (that’s important) do: . thisroot.sh from /cern/root-current/bin and try to start ROOT’s command line session and create TCanvas/TBrowser whatever?"
    I did this. I can as before have a TCanvas, no problem but icon problem in TBrowser.

  3. I also added the cout and recompiled.
    root [0] TCanvas a
    Icon Path:/Users/ngu/icons:/Users/ngu/jroot/abc/icons:.:/Users/ngu/icons:/Users/ngu/jroot/abc/icons:.
    root [1] system (“ls -l /Users/ngu/jroot/abc/icons/arr*xpm”)
    -rw-r–r-- 1 ngu staff 424 Oct 24 05:48 /Users/ngu/jroot/abc/icons/arrow.xpm
    -rw-r–r-- 1 ngu staff 185 Oct 24 05:48 /Users/ngu/jroot/abc/icons/arrow_down.xpm
    -rw-r–r-- 1 ngu staff 282 Oct 24 05:48 /Users/ngu/jroot/abc/icons/arrow_left.xpm
    -rw-r–r-- 1 ngu staff 283 Oct 24 05:48 /Users/ngu/jroot/abc/icons/arrow_right.xpm
    -rw-r–r-- 1 ngu staff 273 Oct 24 05:48 /Users/ngu/jroot/abc/icons/arrow_right2.xpm
    -rw-r–r-- 1 ngu staff 183 Oct 24 05:48 /Users/ngu/jroot/abc/icons/arrow_up.xpm

root [4] gSystem->Getenv(“ROOTSYS”)
(const char* 0x7f9810505f68)"/Users/ngu/jroot/abc"

root [5] TBrowser aa
Error in TGComboBox::TGComboBox: arrow_down.xpm not found
Error in TGVScrollBar::TGVScrollBar: arrow_*.xpm not found

*** Break *** segmentation violation
Generating stack trace…

Warning: /usr/bin/atos is moving and will be removed from a future OS X release.
It is now available in the Xcode developer tools to be invoked via: xcrun atos

[quote=“unelg”]0) arrow icons were at the lower part of the list, hence my omission.

  1. you asked" Also, before re-building, can you, please, without setting any env. variables (that’s important) do: . thisroot.sh from /cern/root-current/bin and try to start ROOT’s command line session and create TCanvas/TBrowser whatever?"
    I did this. I can as before have a TCanvas, no problem but icon problem in TBrowser.

  2. I also added the cout and recompiled.
    root [0] TCanvas a
    Icon Path:/Users/ngu/icons:/Users/ngu/jroot/abc/icons:.:/Users/ngu/icons:/Users/ngu/jroot/abc/icons:.
    root [1] system (“ls -l /Users/ngu/jroot/abc/icons/arr*xpm”)
    -rw-r–r-- 1 ngu staff 424 Oct 24 05:48 /Users/ngu/jroot/abc/icons/arrow.xpm
    -rw-r–r-- 1 ngu staff 185 Oct 24 05:48 /Users/ngu/jroot/abc/icons/arrow_down.xpm
    -rw-r–r-- 1 ngu staff 282 Oct 24 05:48 /Users/ngu/jroot/abc/icons/arrow_left.xpm
    -rw-r–r-- 1 ngu staff 283 Oct 24 05:48 /Users/ngu/jroot/abc/icons/arrow_right.xpm
    -rw-r–r-- 1 ngu staff 273 Oct 24 05:48 /Users/ngu/jroot/abc/icons/arrow_right2.xpm
    -rw-r–r-- 1 ngu staff 183 Oct 24 05:48 /Users/ngu/jroot/abc/icons/arrow_up.xpm

root [4] gSystem->Getenv(“ROOTSYS”)
(const char* 0x7f9810505f68)"/Users/ngu/jroot/abc"

root [5] TBrowser aa
Error in TGComboBox::TGComboBox: arrow_down.xpm not found
Error in TGVScrollBar::TGVScrollBar: arrow_*.xpm not found

*** Break *** segmentation violation
Generating stack trace…

Warning: /usr/bin/atos is moving and will be removed from a future OS X release.
It is now available in the Xcode developer tools to be invoked via: xcrun atos[/quote]

Ok, now with the same setup try

gSystem->Which(first_parameter, “arrow_down.xpm”)

first_parameter is “/Users/ngu/icons:/Users/ngu/jroot/abc/icons:.:/Users/ngu/icons:/Users/ngu/jroot/abc/icons:.”.

root [2] TString first_parameter="/Users/ngu/icons:/Users/ngu/jroot/abc/icons:.:/Users/ngu/icons:/Users/ngu/jroot/abc/icons:.“
root [3] gSystem->Which(first_parameter, “arrow_down.xpm”)
(char* 0x7f98540c3030)”/Users/ngu/jroot/abc/icons/arrow_down.xpm"