hdk icon indicating copy to clipboard operation
hdk copied to clipboard

Bringing in jit-engine causes compiler error with date/time runtime

Open alexbaden opened this issue 2 years ago • 3 comments

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);
      |              ~~~~~~~~~~~~~^~~~~~~~~

alexbaden avatar Apr 18 '22 21:04 alexbaden

On second examination, this looks like a gcc 12 issue.

alexbaden avatar May 31 '22 20:05 alexbaden

Still happens?

Garra1980 avatar Jun 09 '22 15:06 Garra1980

For me, with gcc-12, yes -- regardless of whether we are compiling jit-engine in here or in the main repo.

alexbaden avatar Jun 09 '22 15:06 alexbaden