<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Thank you for your help.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">To begin with, I’m much less of a developer than you. Indeed I’m using cmake to compile, copying line by line the instructions I’m given as I barely understand what cmake does…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">I’ve checked and there’s no root-dev available to download.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Anyway, I’ve parsed the “CMakeLists.txt” file in Gate and I’ve seen this line that, if I get it correctly, forces c++ version to be 11.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Can this be the issue?<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">#=========================================================<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"># We remove the warning option "shadow", because there are tons of<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"># such warning related to clhep/g4 system of units. Additionally,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"># we force the c++11 std. This is mandatory for Geant4 >= 10.2.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-shadow")<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">#=========================================================<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Nils Krah <nils.krah@creatis.insa-lyon.fr>
<br>
<b>Sent:</b> 27 January 2021 21:21<br>
<b>To:</b> PRESOTTO LUCA <presotto.luca@hsr.it><br>
<b>Cc:</b> Gate-Users <gate-users@lists.opengatecollaboration.org><br>
<b>Subject:</b> Re: [Gate-users] R: Centos 8 compilation issues<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",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.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">I see this line:
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">/usr/include/root/ROOT/RStringView.hxx:48:28: error: ‘string_view’ is not a member of ‘std’<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",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.
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">Several other errors are consequences of this, e.g.
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">/usr/include/root/ROOT/RStringView.hxx:48:53: error: ‘pos’ was not declared in this scope<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">This line is also insightful:
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">/usr/include/root/ROOT/RStringView.hxx:48:28: warning: inline variables are only available with -std=c++17 or -std=gnu++17<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">together with this line towards the end:
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">/usr/include/root/TFile.h:325:36: note: ‘std::string_view’ is only available from C++17 onwards<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",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? <o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">More experienced developers than myself can probably answer this better.
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">You might want to get more verbose output using<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">make V=1<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">or
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">make -n<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">So you see the compilation commands that are invoked.
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">Hope that helps.
<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">Nils<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">
<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">On Jan 27 2021, at 7:59 pm, PRESOTTO LUCA <</span><a href="mailto:presotto.luca@hsr.it"><span style="font-size:10.5pt;font-family:"Arial",sans-serif">presotto.luca@hsr.it</span></a><span style="font-size:10.5pt;font-family:"Arial",sans-serif">>
wrote:<o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal">Actually I didn’t compile root, I just did a yum install.<span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">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<span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"> <span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal">Luca<span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"> <span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><strong><span style="font-family:"Calibri",sans-serif">From:</span></strong> Nils Krah <<a href="mailto:nils.krah@creatis.insa-lyon.fr">nils.krah@creatis.insa-lyon.fr</a>><span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><strong><span style="font-family:"Calibri",sans-serif">Sent:</span></strong> 27 January 2021 19:51<span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><strong><span style="font-family:"Calibri",sans-serif">To:</span></strong> PRESOTTO LUCA <<a href="mailto:presotto.luca@hsr.it">presotto.luca@hsr.it</a>><span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><strong><span style="font-family:"Calibri",sans-serif">Cc:</span></strong> Gate-Users <<a href="mailto:gate-users@lists.opengatecollaboration.org">gate-users@lists.opengatecollaboration.org</a>><span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><strong><span style="font-family:"Calibri",sans-serif">Subject:</span></strong> Re: [Gate-users] R: Centos 8 compilation issues<span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<p class="MsoNormal"> <span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<div>
<div>
<p class="MsoNormal">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. <span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">Just some thoughts.<span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">Coraggio <span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">Nils<span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial",sans-serif"> </span><span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:10.5pt;font-family:"Arial",sans-serif"><br>
<br>
<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p> </o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal">On Jan 27, 2021 at 3:42 PM, <<a href="mailto:presotto.luca@hsr.it" title="mailto:presotto.luca@hsr.it">PRESOTTO LUCA</a>> wrote:<span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;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: </span><a href="mailto:gate-users@lists.opengatecollaboration.org" title="mailto:gate-users@lists.opengatecollaboration.org"><span style="font-size:10.0pt;font-family:"Courier New"">gate-users@lists.opengatecollaboration.org</span></a><span style="font-size:10.0pt;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</span><a href="mailto:Gate-users@lists.opengatecollaboration.org" title="mailto:Gate-users@lists.opengatecollaboration.org"><span style="font-size:10.0pt;font-family:"Courier New"">Gate-users@lists.opengatecollaboration.org</span></a><a href="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users" title="http://lists.opengatecollaboration.org/mailman/listinfo/gate-users"><span style="font-size:10.0pt;font-family:"Courier New"">http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</span></a><span style="font-size:10.5pt;font-family:"Arial",sans-serif"><o:p></o:p></span></p>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
</div>
</body>
</html>