在openEuler 22.03编译出现 gettimeofday is ambiguous

../../../../src/include/portability/instr_time.h:71:58: error: call of overloaded ‘gettimeofday(instr_time*, NULL)’ is ambiguous

请问编译命令或编译方式是什么?使用的gcc版本是什么?

架构是不是x86

cmake编译时,openEuler22.03和openEuler24.03版本需要加 -DENABLE_OPENEULER_MAJOR=ON