<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hi Roland,</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thank you very much for your detailed explanations.</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Here is another follow-up that seems to have a happy ending:</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<ul data-editing-info="{"applyListStyleFromLevel":true}" style="margin-top: 0px; margin-bottom: 0px; list-style-type: disc;">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div role="presentation" class="elementToProof">I <b>disabled the ADIOS2, AMReX and Silo thorns
</b>and recompiled<b>.</b></div>
</li><ul data-editing-info="{"applyListStyleFromLevel":true}" style="margin-top: 0px; margin-bottom: 0px; list-style-type: circle;">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div role="presentation" class="elementToProof">I did not add <b>THCExtra/WeakRates</b> to the disabled thorn list.</div>
</li><ul data-editing-info="{"applyListStyleFromLevel":true}" style="margin-top: 0px; margin-bottom: 0px; list-style-type: square;">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div role="presentation" class="elementToProof">From what I understand, this must probably be related to
<b>WhiskyTHC</b>, which I do not have installed.</div>
</li></ul>
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div role="presentation" class="elementToProof">The build complained about the <code>
CMake</code> version, triggered by the <b>ExternalLibraries/OpenPMD</b> thorn.</div>
</li></ul>
</ul>
<blockquote style="margin-left: 0.8ex; padding-left: 1ex; border-left: 3px solid rgb(200, 200, 200);">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
openPMD: Configuring...</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
CMake Error at CMakeLists.txt:3 (cmake_minimum_required):</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
CMake 3.22.0 or higher is required. You are running version 3.20.2 </div>
</blockquote>
<ul data-editing-info="{"applyListStyleFromLevel":true}" style="margin-top: 0px; margin-bottom: 0px; list-style-type: disc;">
<ul data-editing-info="{"applyListStyleFromLevel":true}" style="margin-top: 0px; margin-bottom: 0px; list-style-type: circle;">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div role="presentation">For some reason, the build this time did not complain about the
<b><code>CCE_Export </code></b><code>thorn</code>, even though I did not update the
<code>-std=gnu+11</code> option under CXXFLAGS yet (I was trying to make one change at a time for clarity).</div>
</li><ul data-editing-info="{"applyListStyleFromLevel":true}" style="margin-top: 0px; margin-bottom: 0px; list-style-type: square;">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div role="presentation">I found this behavior strange. I guess the CMake error happened first, and the build terminated before reaching the
<b>CCE_Export</b> problem?</div>
</li></ul>
</ul>
</ul>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Anyway, this error seemed easy enough to fix.</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<ul data-editing-info="{"applyListStyleFromLevel":true}" style="margin-top: 0px; margin-bottom: 0px; list-style-type: disc;">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div role="presentation" class="elementToProof">I updated <code>envsetup</code> in my ini file with:</div>
</li><ul data-editing-info="{"applyListStyleFromLevel":true}" style="margin-top: 0px; margin-bottom: 0px; list-style-type: circle;">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div role="presentation" class="elementToProof"><code>module load cmake/3.27.9</code></div>
</li></ul>
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div role="presentation" class="elementToProof">Recompiled, and the <code>CMake</code> version error went away, but (expectedly) the
<b>CCE_Export</b> error reappeared.</div>
</li></ul>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Then, I <b>tried recompiling by adding <code>-std=gnu++14</code> </b>to CXXFLAGS.</div>
<ul data-editing-info="{"applyListStyleFromLevel":true}" style="margin-top: 0px; margin-bottom: 0px; list-style-type: disc;">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div role="presentation" class="elementToProof">The build failed, complaining again about the
<b>CCE_Export</b> thorn.</div>
</li><li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div role="presentation" class="elementToProof">At least the change from <code>gnu+11</code> to
<code>gnu++14</code>did not cause new additional errors.</div>
</li><ul data-editing-info="{"applyListStyleFromLevel":true}" style="margin-top: 0px; margin-bottom: 0px; list-style-type: circle;">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div role="presentation" class="elementToProof">at least no new errors, in the specific cluster and with the specific config files.</div>
</li></ul>
</ul>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Then I <b>tried recompiling by adding -std=gnu++17</b> to CXXFLAGS.</div>
<ul data-editing-info="{"applyListStyleFromLevel":true}" style="margin-top: 0px; margin-bottom: 0px; list-style-type: disc;">
<li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div role="presentation" class="elementToProof">From the attached log file, <b>it seems to me that the build was successful this time.</b></div>
</li><li style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<div role="presentation" class="elementToProof">No new errors arose because of the change to
<code>-std=gnu++17</code> in CXXFLAGS.</div>
</li></ul>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
I will now attempt to run the TOV star example from the gallery and see if everything works as it should.<br>
<br>
I will start a new email thread in case I encounter run problems.<br>
<br>
I appreciate the help!<br>
<br>
Best,<br>
Panayotis<br>
<br>
</div>
<div id="Signature">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(153, 153, 153);">
-------------------</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(153, 153, 153);">
Panagiotis Iosif</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(153, 153, 153);">
postdoctoral researcher</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(153, 153, 153);">
Department of Physics, University of Trieste </div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(153, 153, 153);">
Via Alfonso Valerio 2, Trieste 34127</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(153, 153, 153);">
Italy</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(153, 153, 153);">
-------------------</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Roland Haas <rhaas@mail.ubc.ca><br>
<b>Sent:</b> Wednesday, September 3, 2025 5:29 PM<br>
<b>To:</b> IOSIF PANAGIOTIS <PANAGIOTIS.IOSIF@units.it><br>
<b>Cc:</b> Einstein Toolkit Users <users@einsteintoolkit.org><br>
<b>Subject:</b> Re: [Users] ET build errors (Leonardo DCGP, CINECA cluster)</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hello Panayotis,<br>
<br>
> I removed all CarpetX-related thorns and tried to compile again.<br>
> This time, the build complained about thorns GRHayLHDX, GRHayLIDX, and NewRadX:<br>
<br>
They are all using CarpetX (the "X" is the giveaway :-) ).<br>
<br>
> Now the build complains about the CCE_Export thorn.<br>
<br>
Hmm, that one is very new. <br>
<br>
> You may see the error messages in the updated log file attached.<br>
> <br>
> From what I understand, the first main error seems to be this (see make_updated.log file):<br>
> /leonardo/home/userexternal/piosif00/Cactus/arrangements/EinsteinAnalysis/CCE_Export/src/h5_export.cc:8:21: error: 'filesystem' is not a namespace-name; did you mean 'system'?<br>
> 8 | namespace fs = std::filesystem;<br>
> The text around that error message suggests that again a newer C++ dialect option might be required (-std=c++17' or '-std=gnu++17' ).<br>
<br>
Hmm, for C++'s filesystem namespace is somewhat new. Some older<br>
compiler put it in experimental/filesystem . However CCE_Export already<br>
has code to handle this (in src/h5_export.cc):<br>
<br>
#if defined __cpp_lib_filesystem && __cpp_lib_filesystem < 201703L<br>
#include <experimental/filesystem><br>
namespace fs = std::experimental::filesystem;<br>
#else<br>
#include <filesystem><br>
namespace fs = std::filesystem;<br>
#endif<br>
<br>
Hmm, you are using gcc-12 though I'd have expected it to be new enough<br>
for this.<br>
<br>
Hmm, hmm, those __cpp_lib_filesystem ones may only haven been introduced<br>
in C++20 (<a href="https://en.cppreference.com/w/cpp/feature_test.html">https://en.cppreference.com/w/cpp/feature_test.html</a>) and they<br>
require the <version> header, which itself is C++20 (though it exists<br>
in gcc-12 and will have values). <br>
<br>
Unfortunately even if I add<br>
<br>
#include <version><br>
<br>
to src/h5_export.cc then things still fail with -std=gnu++11 since the<br>
macros are only defined when C++17 is used. <br>
<br>
So.... I'd disable the thorn (only used to export data for use with<br>
SpECTRE's CCE code) or enable C++17 support.<br>
<br>
This may require some larger reworking of the ET code to try and<br>
contain C++17 requirements to CarpetX code if possible.<br>
<br>
> In my current cfg file, following what was mentioned in the wiki page<br>
> about configuring a new<br>
> machine<<a href="https://docs.einsteintoolkit.org/et-docs/Configuring_a_new_machine">https://docs.einsteintoolkit.org/et-docs/Configuring_a_new_machine</a>>,<br>
> I have an older option, namely -std=gnu+11, for CXXFLAGS.<br>
<br>
gnu+11 is kind of old by now, at least I'd try gnu++14 (10 years old).<br>
So no guarantees that this would work (gcc defaults to gnu++17 as of<br>
version 11 "C++17 mode is the default since GCC 11" on<br>
<a href="https://gcc.gnu.org/projects/cxx-status.html)">https://gcc.gnu.org/projects/cxx-status.html)</a>.<br>
<br>
> I will experiment with different C standards options and see if<br>
> something else works.<br>
<br>
I'd have expected that both gnu++14 and gnu++17 should work actually<br>
(as long as CarpetX related code is disable since it and eg AMReX<br>
require C++17).<br>
<br>
> Questions:<br>
> <br>
> *<br>
> Are GRHayLHDX, GRHayLIDX and NewRadX safe to disable?<br>
<br>
Yes, they are all using CarpetX. <br>
<br>
> *<br>
> For context, my goal is to start with isolated neutron star simulations. Are these thorns necessary for that?<br>
<br>
No, they are CarpetX flavors of the GRHayLHD, GRHayLID and NewRad<br>
thorns.<br>
<br>
> *<br>
> Do we expect newer C/C++ standards, like -std=c++17, to break backwards compatibility, i.e. older code?<br>
<br>
Yes, new standards will eventually remove functionality that has been<br>
deprecated in older ones. On top of that g++ is becoming more strict in<br>
allowing non-standard constructs. This is, unfortunately, beyond our<br>
control.<br>
<br>
> *<br>
> Please let me know if I am on the right track, or if you see some<br>
> additional issues from the log file.<br>
<br>
> Let me note that I did not start with all of the disabled thorns that<br>
> Bruno's original ini<br>
> file<<a href="https://bitbucket.org/simfactory/simfactory2/src/a6dff6ecc4a4346c5a73536681486e745d34bb98/mdb/machines/leonardo-DCGP.ini">https://bitbucket.org/simfactory/simfactory2/src/a6dff6ecc4a4346c5a73536681486e745d34bb98/mdb/machines/leonardo-DCGP.ini</a>><br>
> uses, because I didn't know exactly what was needed or not.<br>
> Currently, the disabled thorns in my ini file almost align with those<br>
> in Bruno's original file. There are, though, some additional thorns<br>
> disabled in Bruno's original file, namely: ADIOS2, AMReX, Silo, PAPI<br>
> and THCExtra/WeakRates.<br>
<br>
All except PAPI (which you'll only need if doing low-level<br>
benchmarking) are using only by CarpetX (or in WeakRates case are no<br>
even part of the Einstein Toolkit), so those can also be safely<br>
disabled.<br>
<br>
> I do not know if I should disable them too, but since I did not<br>
> encounter specific errors about them, I let them be. Let me know if<br>
> they should go too.<br>
<br>
It will make compiling faster (note the MakeThornList script I had<br>
suggested will also remove them).<br>
<br>
<br>
Yours,<br>
Roland<br>
<br>
-- <br>
My email is as private as my paper mail. I therefore support encrypting<br>
and signing email messages. Get my PGP key from <a href="http://pgp.mit.edu">http://pgp.mit.edu</a> .<br>
</div>
</span></font></div>
</body>
</html>