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

GCC 7: Setting "SetRangeUser" of TAxis fails with TClingCallFunc errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.09/02
    • Fix Version/s: 6.10/00, 6.12/00
    • Component/s: Cling
    • Labels:
      None
    • Environment:

      Arch Linux x86_64
      GCC 7.1.1

      Description

      I'm facing a new problem after compiling ROOT master (commit a71d862dda5ddbf532635c0e49ed04e58dc1f306) with the new GCC 7 which is the new default compiler in Arch Linux:

      $ gcc --version
       
      gcc (GCC) 7.1.1 20170516
      Copyright (C) 2017 Free Software Foundation, Inc.
      This is free software; see the source for copying conditions.  There is NO
      warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

      The same problem also happens with ROOT 6.09.02 compiled with the same compiler.

      This macro helps illustrate the problem:

      $ cat bug.C
       
      {
        double x[] = {1,2,3,4,5};
        double y[] = {1,2,3,4,5};
        TGraph* g = new TGraph(5, x, y);
        g->Draw("AP");
      }

      run with "root -n -l bug.C". After the canvas opens, right click the y-axis and select 'SetRangeUser'. Enter the values '2' as minimum and '4' as maximum. Press OK.

      Result: The axis is not zoomed and this output is printed:

      $ root -n -l bug.C
       
      root [0] 
      Processing bug.C...
      Info in <TCanvas::MakeDefCanvas>:  created default TCanvas with name c1
      root [1] Error in <TClingCallFunc::IFacePtr(kind)>: Attempt to get interface while invalid.
      Error in <TClingCallFunc::Exec(address, interpVal)>: Called with no wrapper, not implemented!

      This problem did not exist when I used ROOT 6.09.02 compiled with GCC 6.3.1. It also doesn't exist when using ROOT 6.09.02 compiled with Intel Compiler 17 Update 4.

        Attachments

          Activity

            People

            • Assignee:
              axel Axel Naumann
              Reporter:
              bbeische Bastian Beischer
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: