Compilation fails
On my machine (debian/sid), I get an error when compiling.
FYi:
$ c++ --version
g++ (Debian 10.2.0-15) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
And here comes the error:
/usr/bin/c++ -DFMT_LOCALE -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -Dpdi_fti_plugin_EXPORTS -isystem /usr/lib/x86_64-linux-gnu/openmpi/include/openmpi -isystem /usr/lib/x86_64-linux-gnu/openmpi/include -isystem /pdi/build/staging/include -g -fPIC -fvisibility=hidden -pthread -std=gnu++14 -o CMakeFiles/pdi_fti_plugin.dir/fti.cxx.o -c /pdi/plugins/fti/fti.cxx
In file included from /pdi/plugins/fti/fti.cxx:37:
/pdi/plugins/fti/fti_wrapper.h:55:16: error: ‘fti_id_t’ has not been declared
55 | int init_type(fti_id_t* type_id, long size);
| ^~~~~~~~
/pdi/plugins/fti/fti_wrapper.h:57:45: error: ‘fti_id_t’ has not been declared
57 | int protect(int id, void* ptr, long count, fti_id_t type_id);
| ^~~~~~~~
/pdi/plugins/fti/fti_wrapper.h:77:23: error: ‘fti_id_t’ has not been declared
77 | int add_vector_field(fti_id_t composite_type_id, char* name, fti_id_t type_id, size_t offset, int ndims, int* dim_sizes);
| ^~~~~~~~
/pdi/plugins/fti/fti_wrapper.h:77:63: error: ‘fti_id_t’ has not been declared
77 | int add_vector_field(fti_id_t composite_type_id, char* name, fti_id_t type_id, size_t offset, int ndims, int* dim_sizes);
| ^~~~~~~~
/pdi/plugins/fti/fti_wrapper.h:79:23: error: ‘fti_id_t’ has not been declared
79 | int add_scalar_field(fti_id_t composite_type_id, char* name, fti_id_t type_id, size_t offset);
| ^~~~~~~~
/pdi/plugins/fti/fti_wrapper.h:79:63: error: ‘fti_id_t’ has not been declared
79 | int add_scalar_field(fti_id_t composite_type_id, char* name, fti_id_t type_id, size_t offset);
| ^~~~~~~~
/pdi/plugins/fti/fti_wrapper.h:83:2: error: ‘fti_id_t’ does not name a type; did you mean ‘fsid_t’?
83 | fti_id_t init_composite_type(char* name, size_t size, FTIT_H5Group* h5_group);
| ^~~~~~~~
| fsid_t
/pdi/plugins/fti/fti.cxx: In member function ‘void {anonymous}::fti_plugin::protect_for_read()’:
/pdi/plugins/fti/fti.cxx:82:79: error: cannot convert ‘FTIT_type’ to ‘int’
82 | m_fti->protect(data.first, const_cast<void*>(ref.get()), type.datasize(), FTI_CHAR);
| ^~~~~~~~
| |
| FTIT_type
In file included from /pdi/plugins/fti/fti.cxx:37:
/pdi/plugins/fti/fti_wrapper.h:57:54: note: initializing argument 4 of ‘int fti::Fti_wrapper::protect(int, void*, long int, int)’
57 | int protect(int id, void* ptr, long count, fti_id_t type_id);
| ~~~~~~~~~^~~~~~~
/pdi/plugins/fti/fti.cxx:85:44: error: cannot convert ‘FTIT_type’ to ‘int’
85 | m_fti->protect(data.first, nullptr, 0, FTI_CHAR);
| ^~~~~~~~
| |
| FTIT_type
In file included from /pdi/plugins/fti/fti.cxx:37:
/pdi/plugins/fti/fti_wrapper.h:57:54: note: initializing argument 4 of ‘int fti::Fti_wrapper::protect(int, void*, long int, int)’
57 | int protect(int id, void* ptr, long count, fti_id_t type_id);
| ~~~~~~~~~^~~~~~~
/pdi/plugins/fti/fti.cxx: In member function ‘void {anonymous}::fti_plugin::protect_for_write()’:
/pdi/plugins/fti/fti.cxx:99:60: error: cannot convert ‘FTIT_type’ to ‘int’
99 | m_fti->protect(data.first, ref.get(), type.datasize(), FTI_CHAR);
| ^~~~~~~~
| |
| FTIT_type
In file included from /pdi/plugins/fti/fti.cxx:37:
/pdi/plugins/fti/fti_wrapper.h:57:54: note: initializing argument 4 of ‘int fti::Fti_wrapper::protect(int, void*, long int, int)’
57 | int protect(int id, void* ptr, long count, fti_id_t type_id);
| ~~~~~~~~~^~~~~~~
/pdi/plugins/fti/fti.cxx:102:44: error: cannot convert ‘FTIT_type’ to ‘int’
102 | m_fti->protect(data.first, nullptr, 0, FTI_CHAR);
| ^~~~~~~~
| |
| FTIT_type
In file included from /pdi/plugins/fti/fti.cxx:37:
/pdi/plugins/fti/fti_wrapper.h:57:54: note: initializing argument 4 of ‘int fti::Fti_wrapper::protect(int, void*, long int, int)’
57 | int protect(int id, void* ptr, long count, fti_id_t type_id);
| ~~~~~~~~~^~~~~~~
/pdi/plugins/fti/fti.cxx: In lambda function:
/pdi/plugins/fti/fti.cxx:263:59: error: cannot convert ‘FTIT_type’ to ‘int’
263 | m_fti->protect(var_id, ref.get(), type.datasize(), FTI_CHAR);
| ^~~~~~~~
| |
| FTIT_type
In file included from /pdi/plugins/fti/fti.cxx:37:
/pdi/plugins/fti/fti_wrapper.h:57:54: note: initializing argument 4 of ‘int fti::Fti_wrapper::protect(int, void*, long int, int)’
57 | int protect(int id, void* ptr, long count, fti_id_t type_id);
| ~~~~~~~~~^~~~~~~