Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-7440

Make ROOT 5 working with gcc 5.1 and CMake

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.34/32
    • Fix Version/s: 5.34/34
    • Component/s: None
    • Labels:
      None
    • Environment:

      gcc 5.1, slc6

    • Development:

      Description

      Sorry, I forgot to mention this earlier. I'm on Fedora 22 x86_64, gcc
      (GCC) 5.1.1 20150618 (Red Hat 5.1.1-4).

      To be certain, I started from scratch, no luck. This is what I did:

      $ cd /opt/root
      $ git reset --hard v5-34-32
      $ cd /opt/root-5
      $ rm -rf *
      $ cmake -DCMAKE_BUILD_TYPE=DebugFull -Dbuiltin_afterimage=OFF \
      -Dbuiltin_ftgl=OFF -Dbuiltin_glew=OFF -Dcxx11=ON -Dtmva=ON \
      -Dgsl_shared=ON -Dunuran=ON -Dminuit2=ON -Droofit=ON \
      -Dsoversion=ON -Dpython=ON -Dvdt=ON -Dvc=ON /opt/root/

      This finishes successfully. But running make gives me:

      [ 3%] Building CXX object cint/cint/CMakeFiles/Cint_static.dir/src/dict/libstrm.cxx.o
      In file included from /opt/root/cint/cint/src/dict/libstrm.h:37:0,
      from /opt/root/cint/cint/src/dict/libstrm.cxx:14:
      /opt/root/cint/cint/lib/stream/iostrm.h:24:22: fatal error: iostream.h: No such file or directory
      compilation terminated.
      cint/cint/CMakeFiles/Cint_static.dir/build.make:1779: recipe for target 'cint/cint/CMakeFiles/Cint_static.dir/src/dict/libstrm.cxx.o' failed
      make[2]: *** [cint/cint/CMakeFiles/Cint_static.dir/src/dict/libstrm.cxx.o] Error 1
      CMakeFiles/Makefile2:380: recipe for target 'cint/cint/CMakeFiles/Cint_static.dir/all' failed

      Is it because of GCC 5? I'm not sure, but I think this is the first
      time I'm trying to compile ROOT with it. Fedora ships with 5.34.30, so
      in principle it should be possible.

      Thanks for any help.

      Cheers,


      Suvayu

        Attachments

          Activity

            People

            • Assignee:
              mato Pere Mato Vila
              Reporter:
              sali Suvayu Ali (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: