<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hello,<br>
    <br>
    I successfully installed Gate9 at Centos8.<br>
    What you need is to compile both root and Geant4 using c++17 flag
    (you can do this throw the ccmake  in the advance mode). My
    configuration is the following <br>
    <br>
    gate9<br>
    <br>
    geant4.10.06<br>
    cflags: -DG4INTY_USE_XT -DG4VIS_USE_OPENGL -DG4UI_USE_TCSH
    -DG4INTY_USE_QT -DG4UI_USE_QT -DG4VIS_USE_OPENGLQT
    -I/usr/include/qt5/ -I/usr/include/qt5/QtCore
    -I/usr/lib64/qt5//mkspecs/linux-g++ -I/usr/include/qt5/QtGui
    -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtOpenGL
    -I/usr/include/qt5/QtPrintSupport -DG4VIS_USE_OPENGLX -W -Wall
    -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings
    -Wpointer-arith -Woverloaded-virtual -Wno-variadic-macros -Wshadow
    -pipe<b> -std=c++1z</b> <br>
    <br>
    root-6.22.06<br>
    cflags: -pthread <b>-std=c++1z</b> -m64 <br>
    <br>
    Hope this will help.<br>
    <br>
    Viatcheslav<br>
    <br>
    <div class="moz-cite-prefix">On 27/01/2021 21:35, Nils Krah wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:aac62277-fae5-4fcf-8172-5392a0b9f1ab@edison.tech">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <font style="font-size:14px;font-family:sans-serif">
        <div><font style="font-family:sans-serif;font-size:14px"><font
              style="font-family:sans-serif">I am not a developer, so
              take everything I write with a grain of salt. Looking at
              the output from your compilation it seems that the
              compiler cannot figure out certain types that are used in
              the ROOT header files. Sorry for writing obvious things:
              Gate depends on ROOT for certain data handling operations
              and therefore refers to ROOT's header files. I guess these
              headers were installed when you installed ROOT with yum.
              Or you installed a root-dev package additionally via yum?
              In any case, these headers use e.g. std::string_view in
              several declarations which seems to cause errors.</font></font></div>
        <div><font style="font-family:sans-serif">​</font></div>
        <div><font style="font-family:sans-serif">​I see this line:</font></div>
        <div><font style="font-family:sans-serif">​/usr/include/root/ROOT/RStringView.hxx:48:28:
            error: ‘string_view’ is not a member of ‘std’</font></div>
        <br>
        <div><font style="font-family:sans-serif">... which makes me
            think that the compiler does not understand the type, i.e.,
            for it there is no string_view in C++'s standard library.</font></div>
        <div><font style="font-family:sans-serif">​​Several other errors
            are consequences of this, e.g.</font></div>
        <div><font style="font-family:sans-serif">​/usr/include/root/ROOT/RStringView.hxx:48:53:
            error: ‘pos’ was not declared in this scope</font></div>
        <br>
        <div><font style="font-family:sans-serif">​This line is also
            insightful:</font></div>
        <div><font style="font-family:sans-serif">​/usr/include/root/ROOT/RStringView.hxx:48:28:
            warning: inline variables are only available with -std=c++17
            or -std=gnu++17</font></div>
        <div><font style="font-family:sans-serif">together with this
            line towards the end:</font></div>
        <div><font style="font-family:sans-serif">​/usr/include/root/TFile.h:325:36:
            note: ‘std::string_view’ is only available from C++17
            onwards</font></div>
        <br>
        <div><font style="font-family:sans-serif">​So probably your
            compiler is fine but you might need to tell it to consider a
            sufficiently new version of C++, i.e. at least C++17. Maybe
            this can/needs to be passed as flag when compiling Gate? Are
            you using cmake/ccmake?</font></div>
        <div><font style="font-family:sans-serif">​More experienced
            developers than myself can probably answer this better.</font></div>
        <div><font style="font-family:sans-serif">​</font></div>
        <div><font style="font-family:sans-serif">​You might want to get
            more verbose output using</font></div>
        <div><font style="font-family:sans-serif">​make V=1</font></div>
        <div><font style="font-family:sans-serif">​or</font></div>
        <div><font style="font-family:sans-serif">​make -n</font></div>
        <div><font style="font-family:sans-serif">​So you see the
            compilation commands that are invoked.</font></div>
        <div><font style="font-family:sans-serif">​</font></div>
        <div><font style="font-family:sans-serif">​Hope that helps.</font></div>
        <div><font style="font-family:sans-serif">​Nils</font></div>
        <div><font style="font-family:sans-serif">​</font></div>
        <br>
        <div class="gmail_quote_attribution"><font
            style="font-family:sans-serif">On Jan 27 2021, at 7:59 pm,
            PRESOTTO LUCA <a class="moz-txt-link-rfc2396E" href="mailto:presotto.luca@hsr.it"><presotto.luca@hsr.it></a> wrote:</font></div>
        <blockquote class="gmail_quote">
          <div class="WordSection1">
            <div class="MsoNormal"><font style="font-family:sans-serif"><font
                  style="font-size:11pt"><font
                    style="font-family:Calibri, sans-serif">Actually I
                    didn’t compile root, I just did a yum install.</font></font></font></div>
            <div class="MsoNormal"><font style="font-family:sans-serif"><font
                  style="font-size:11pt"><font
                    style="font-family:Calibri, sans-serif">Is the
                    problem that my compiler is outdated? It’s the one
                    that comes with the latest Centos kernel, updated
                    days ago. Actually I’ve been told that I should use
                    gcc 6.3 for that Gate version instead of gcc8</font></font></font></div>
            <div class="MsoNormal"><font style="font-family:sans-serif"><font
                  style="font-size:11pt"><font
                    style="font-family:Calibri, sans-serif"> </font></font></font></div>
            <div class="MsoNormal"><font style="font-family:sans-serif"><font
                  style="font-size:11pt"><font
                    style="font-family:Calibri, sans-serif">Luca</font></font></font></div>
            <div class="MsoNormal"><font style="font-family:sans-serif"><font
                  style="font-size:11pt"><font
                    style="font-family:Calibri, sans-serif"> </font></font></font></div>
            <br>
            <div>
              <div>
                <div class="MsoNormal">
                  <div><font style="font-family:sans-serif"><font
                        style="font-size:11pt"><font
                          style="font-family:Calibri, sans-serif"><strong>From:</strong></font></font></font><font
                      style="font-family:sans-serif"><font
                        style="font-size:11pt"><font
                          style="font-family:Calibri, sans-serif"> Nils
                          Krah <a class="moz-txt-link-rfc2396E" href="mailto:nils.krah@creatis.insa-lyon.fr"><nils.krah@creatis.insa-lyon.fr></a></font></font></font></div>
                  <div><font style="font-family:sans-serif"><font
                        style="font-size:11pt"><font
                          style="font-family:Calibri, sans-serif"><strong>Sent:</strong></font></font></font><font
                      style="font-family:sans-serif"><font
                        style="font-size:11pt"><font
                          style="font-family:Calibri, sans-serif"> 27
                          January 2021 19:51</font></font></font></div>
                  <div><font style="font-family:sans-serif"><font
                        style="font-size:11pt"><font
                          style="font-family:Calibri, sans-serif"><strong>To:</strong></font></font></font><font
                      style="font-family:sans-serif"><font
                        style="font-size:11pt"><font
                          style="font-family:Calibri, sans-serif">
                          PRESOTTO LUCA <a class="moz-txt-link-rfc2396E" href="mailto:presotto.luca@hsr.it"><presotto.luca@hsr.it></a></font></font></font></div>
                  <div><font style="font-family:sans-serif"><font
                        style="font-size:11pt"><font
                          style="font-family:Calibri, sans-serif"><strong>Cc:</strong></font></font></font><font
                      style="font-family:sans-serif"><font
                        style="font-size:11pt"><font
                          style="font-family:Calibri, sans-serif">
                          Gate-Users
                          <a class="moz-txt-link-rfc2396E" href="mailto:gate-users@lists.opengatecollaboration.org"><gate-users@lists.opengatecollaboration.org></a></font></font></font></div>
                  <div><font style="font-family:sans-serif"><font
                        style="font-size:11pt"><font
                          style="font-family:Calibri, sans-serif"><strong>Subject:</strong></font></font></font><font
                      style="font-family:sans-serif"><font
                        style="font-size:11pt"><font
                          style="font-family:Calibri, sans-serif"> Re:
                          [Gate-users] R: Centos 8 compilation issues</font></font></font></div>
                </div>
              </div>
            </div>
            <div class="MsoNormal"><font style="font-family:sans-serif"><font
                  style="font-size:11pt"><font
                    style="font-family:Calibri, sans-serif"> </font></font></font></div>
            <br>
            <div>
              <div class="MsoNormal"><font
                  style="font-family:sans-serif"><font
                    style="font-size:11pt"><font
                      style="font-family:Calibri, sans-serif">Only just
                      had a quick look. It also seems to me like an
                      issue with ROOT as well. The note at the end of
                      the output makes me think that your compiler is
                      too outdated to understand certain C++17 features.
                      You could check that. Were you able to compile
                      ROOT without issues? I am wondering if there are
                      any parameters/flags in the gate compilation
                      regarding the supported C++ version. </font></font></font></div>
            </div>
            <div>
              <div class="MsoNormal"><font
                  style="font-family:sans-serif"><font
                    style="font-size:11pt"><font
                      style="font-family:Calibri, sans-serif">Just some
                      thoughts.</font></font></font></div>
            </div>
            <div>
              <div class="MsoNormal"><font
                  style="font-family:sans-serif"><font
                    style="font-size:11pt"><font
                      style="font-family:Calibri, sans-serif">Coraggio </font></font></font></div>
            </div>
            <div>
              <div class="MsoNormal"><font
                  style="font-family:sans-serif"><font
                    style="font-size:11pt"><font
                      style="font-family:Calibri, sans-serif">Nils</font></font></font></div>
            </div>
            <div>
              <div>
                <div class="MsoNormal"><font
                    style="font-family:sans-serif"><font
                      style="font-size:11pt"><font
                        style="font-family:Calibri, sans-serif"><font
                          style="font-family:Arial, sans-serif"> </font></font></font></font></div>
              </div>
            </div>
            <div>
              <div>
                <div class="MsoNormal"><br>
                  <br>
                  <br>
                </div>
                <br>
                <blockquote class="">
                  <div>
                    <div class="MsoNormal"><font
                        style="font-family:sans-serif"><font
                          style="font-size:11pt"><font
                            style="font-family:Calibri, sans-serif">On
                            Jan 27, 2021 at 3:42 PM, <</font></font></font><font
                        style="font-family:sans-serif"><font
                          style="font-size:11pt"><font
                            style="font-family:Calibri, sans-serif"><a
                              href="mailto:presotto.luca@hsr.it"
                              title="mailto:presotto.luca@hsr.it"
                              moz-do-not-send="true">PRESOTTO LUCA</a></font></font></font><font
                        style="font-family:sans-serif"><font
                          style="font-size:11pt"><font
                            style="font-family:Calibri, sans-serif">>
                            wrote:</font></font></font></div>
                  </div>
                  <div><font style="font-family:sans-serif"><font
                        style="font-size:10pt"><font
                          style="font-family:"Courier New"">Please
                          find attached the compiler output that another
                          user asked me privately.I've been suggested it
                          might be a ROOT version issue. I'm using ROOT
6.22/06 Luca ________________________________________Da: PRESOTTO
                          LUCAInviato: mercoledì 27 gennaio 2021 15:10A:
                        </font></font></font><font
                      style="font-family:sans-serif"><font
                        style="font-size:10pt"><font
                          style="font-family:"Courier New""><a
href="mailto:gate-users@lists.opengatecollaboration.org"
                            title="mailto:gate-users@lists.opengatecollaboration.org"
                            moz-do-not-send="true">gate-users@lists.opengatecollaboration.org</a></font></font></font><font
                      style="font-family:sans-serif"><font
                        style="font-size:10pt"><font
                          style="font-family:"Courier New"">Oggetto:
                          Centos 8 compilation issues Dear experts,I’m
                          trying to install Geant and GATE on my
                          personal PC. I converted my PC to Centos 8
                          that I understand it’s what CERN is using as
                          they’ll not be making SLC8. I’ve successfully
                          installed Geant v4.10.05.p01 , and examples B1
                          and B2 run. I’ve also tried to install Gate
                          8.2 and as soon as I type make I get a huge
                          number of disparate errors that I’m told to be
                          dependent on my gcc/g++ version, which is
                          8.3.1 I’ve been told that I should install gcc
                          6.3, but I can’t find any way to do this on
                          centos 8, while it appears to be simple in
                          centos 7. What do you recommend me to do? Is
                          there a simple fix to make the compilation run
                          in centos 8? My student managed to compile it
                          on ubuntu with gcc 9! Or is there a way to
                          install gcc 6.3 in centos 8? Thanks in
                          advance! Luca  Rispetta l’ambiente: non
                          stampare questa mail se non è
                          necessario.Respect the environment: print this
                          email only if
                          necessary. _______________________________________________Gate-users
                          mailing list</font></font></font><font
                      style="font-family:sans-serif"><font
                        style="font-size:10pt"><font
                          style="font-family:"Courier New""><a
href="mailto:Gate-users@lists.opengatecollaboration.org"
                            title="mailto:Gate-users@lists.opengatecollaboration.org"
                            moz-do-not-send="true">Gate-users@lists.opengatecollaboration.org</a></font></font></font><font
                      style="font-family:sans-serif"><font
                        style="font-size:10pt"><font
                          style="font-family:"Courier New""><a
href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users"
title="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users"
                            moz-do-not-send="true">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></font></font></font></div>
                </blockquote>
              </div>
            </div>
          </div>
        </blockquote>
      </font>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Gate-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Viatcheslav Sharyy

--------------------------------------
Ph.D., HDR

Département de Physique des Particules, IRFU, CEA
BioMaps, Service Hospitalier Frédéric Joliot, CEA, CNRS, Inserm
Université Paris-Saclay

e-mail: <a class="moz-txt-link-abbreviated" href="mailto:Viatcheslav.Sharyy@cea.fr">Viatcheslav.Sharyy@cea.fr</a>
tel.:   +33 1 69 08 61 29
-------------------------------------- 
</pre>
  </body>
</html>