It turns out 0.1 difference in gcc version matters. I assumed it was not the case because it's just minor version and only differs by 1.
But the builtin function I mentioned was newly introduced in gcc version 13.3.
So I manually install gcc 13.3 on my remote machine and it works now.
for short: minor version matters.