#2547: Compilation failure: "invalid type" errors in Vectors vmask code
| Reporter: | Bernard Kelly |
| Status: | new |
| Milestone: | ET_2021_05 |
| Version: | ET_2021_05 |
| Type: | bug |
| Priority: | blocker |
| Component: | EinsteinToolkit thorn |
Fresh download & first compilation of latest ETK release: compilation fails during Vectors thorn because of issues with “vmask” code:
`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 &&) = default; ^
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 &operator=(vmask &&) = default;`
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.
Further notes:
The compilation is on the WVU machine Spruce Knob, using the Intel 17.0.1 compiler. I’m using the following configuration options:
CC=icc
CFLAGS=-Ofast -qopenmp -xHost -align -std=gnu99
CPP=cpp
CPPFLAGS=-DMPICH_IGNORE_CXX_SEEK
CPP_DEBUG_FLAGS=-DCARPET_DEBUG
CPP_OPENMP_FLAGS=-fopenmp
CROSS_COMPILE=yes
CXX=icpc
CXXFLAGS=-Ofast -qopenmp -xHost -align -std=gnu++11
CXX_DEBUG_FLAGS=-O0
CXX_NO_OPTIMISE_FLAGS=-O0
CXX_OPENMP_FLAGS=-fopenmp
CXX_OPTIMISE_FLAGS=-Ofast
CXX_PROFILE_FLAGS=-pg
C_DEBUG_FLAGS=-O0
C_LINE_DIRECTIVES=yes
C_NO_OPTIMISE_FLAGS=-O0
C_OPENMP_FLAGS=-fopenmp
C_OPTIMISE_FLAGS=-Ofast
C_PROFILE_FLAGS=-pg
| attachment: | git_diff_vectors_dot_h.txt |
--
Ticket URL: https://bitbucket.org/einsteintoolkit/tickets/issues/2547/compilation-failure-invalid-type-errors-in