<html>#2547: Compilation failure: "invalid type" errors in Vectors vmask code
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Bernard Kelly</td></tr>
<tr><td style='text-align:right'>   Status:</td><td>new</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td>ET_2021_05</td></tr>
<tr><td style='text-align:right'>  Version:</td><td>ET_2021_05</td></tr>
<tr><td style='text-align:right'>     Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>blocker</td></tr>
<tr><td style='text-align:right'>Component:</td><td>EinsteinToolkit thorn</td></tr>
</table>

<p>Fresh download &amp; first compilation of latest ETK release: compilation fails during Vectors thorn because of issues with “vmask” code:  </p>
<p>`In file included from /gpfs/scratch/bjk0015/codes/Cactus_ET_2021_05/arrangements/CactusUtils/Vectors/src/vectors.cc(1):
/gpfs/scratch/bjk0015/codes/Cactus_ET_2021_05/arrangements/CactusUtils/Vectors/src/vectors.h(1228): error: invalid type for defaulted constructor
    vmask(vmask &amp;&amp;) = default;
    ^</p>
<p>In file included from /gpfs/scratch/bjk0015/codes/Cactus_ET_2021_05/arrangements/CactusUtils/Vectors/src/vectors.cc(1):
/gpfs/scratch/bjk0015/codes/Cactus_ET_2021_05/arrangements/CactusUtils/Vectors/src/vectors.h(1230): error: invalid type for defaulted assignment operator
    vmask &amp;operator=(vmask &amp;&amp;) = default;`</p>
<p>I can fix this issue by commenting out the definition of the “vmask” structure, and the following code that calls it – which is apparently not used in the rest of the code anyway. git diff is attached here.</p>
<p>Further notes:</p>
<p>The compilation is on the WVU machine Spruce Knob, using the Intel 17.0.1 compiler. I’m using the following configuration options:  </p>
<p>CC=icc</p>
<p>CFLAGS=-Ofast -qopenmp -xHost  -align -std=gnu99</p>
<p>CPP=cpp</p>
<p>CPPFLAGS=-DMPICH_IGNORE_CXX_SEEK</p>
<p>CPP_DEBUG_FLAGS=-DCARPET_DEBUG</p>
<p>CPP_OPENMP_FLAGS=-fopenmp</p>
<p>CROSS_COMPILE=yes</p>
<p>CXX=icpc</p>
<p>CXXFLAGS=-Ofast -qopenmp -xHost  -align -std=gnu++11</p>
<p>CXX_DEBUG_FLAGS=-O0</p>
<p>CXX_NO_OPTIMISE_FLAGS=-O0</p>
<p>CXX_OPENMP_FLAGS=-fopenmp</p>
<p>CXX_OPTIMISE_FLAGS=-Ofast</p>
<p>CXX_PROFILE_FLAGS=-pg</p>
<p>C_DEBUG_FLAGS=-O0</p>
<p>C_LINE_DIRECTIVES=yes</p>
<p>C_NO_OPTIMISE_FLAGS=-O0</p>
<p>C_OPENMP_FLAGS=-fopenmp</p>
<p>C_OPTIMISE_FLAGS=-Ofast</p>
<p>C_PROFILE_FLAGS=-pg</p>
<p>‌</p>
<p><table><tr><td>attachment:</td><td><a href="https://api.bitbucket.org/2.0/repositories/einsteintoolkit/tickets/issues/2547/attachments/git_diff_vectors_dot_h.txt">git_diff_vectors_dot_h.txt</a></td></tr>
</table></p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2547/compilation-failure-invalid-type-errors-in'>https://bitbucket.org/einsteintoolkit/tickets/issues/2547/compilation-failure-invalid-type-errors-in</a></p>
</html>