hdk
hdk copied to clipboard
Bringing in jit-engine causes compiler error with date/time runtime
Compiler error bringing in extract from time code:
heterogeneous-data-kernels/omniscidb/QueryEngine/ExtractFromTime.cpp: In function 'int64_t ExtractFromTime(ExtractField, int64_t)':
heterogeneous-data-kernels/omniscidb/QueryEngine/ExtractFromTime.cpp:156:1: error: inlining failed in call to always_inline 'int64_t extract_epoch(int64_t)': function body can be overwritten at link time
156 | extract_epoch(const int64_t timeval) {
| ^~~~~~~~~~~~~
heterogeneous-data-kernels/omniscidb/QueryEngine/ExtractFromTime.cpp:270:27: note: called from here
270 | return extract_epoch(timeval);
| ~~~~~~~~~~~~~^~~~~~~~~
On second examination, this looks like a gcc 12 issue.
Still happens?
For me, with gcc-12
, yes -- regardless of whether we are compiling jit-engine in here or in the main repo.