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

Issue when building ROOT with Python 3.7

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.16/00
    • Fix Version/s: 6.16/00, 6.14/04
    • Component/s: PyROOT
    • Labels:
      None
    • Environment:

      Platform: macos
      Compiler: mac default

    • Development:

      Description

      As reported in the following forum post:

      https://root-forum.cern.ch/t/bug-when-build-root-with-python3-7/29692

      The following error shows up when building ROOT with Python3.7

      /Users/chenxu/software/ROOT/git/bindings/pyroot/src/PyRootType.cxx:103:22: error:
      ¦ ¦ cannot initialize a variable of type ‘char *’ with an rvalue of type
      ¦ ¦ 'const char ’
      ¦ ¦ ¦ ¦ ¦ ¦ ¦char cppname = PyROOT_PyUnicode_AsString(pycppname);
      ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      1 error generated.
      make[2]: *** [bindings/pyroot/CMakeFiles/PyROOT.dir/src/PyRootType.cxx.o] Error 1/Users/chenxu/software/ROOT/git/bindings/pyroot/src/TPyROOTApplication.cxx:101:16: error:
      ¦ ¦ cannot initialize a variable of type ‘char *’ with an rvalue of type
      ¦ ¦ 'const char ’
      ¦ ¦ ¦ ¦char argi = PyROOT_PyUnicode_AsString( PyList_GET_ITEM( argl, i ) );
      ¦ ¦ ¦ ¦ ¦ ¦ ¦^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      1 error generated.
      /Users/chenxu/software/ROOT/git/bindings/pyroot/src/TPyROOTApplication.cxx:107:22: error:
      ¦ ¦ assigning to ‘char *’ from incompatible type ‘const char *’
      ¦ ¦ ¦ ¦argv[ i ] = argi;
      ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦ ¦^~~~
      1 error generated. 

        Attachments

          Activity

            People

            Assignee:
            etejedor Enric Tejedor Saavedra
            Reporter:
            etejedor Enric Tejedor Saavedra
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Actual End: