Hi, On 2021-10-13 01:19:27 +0200, Josef Šimánek wrote: > I tried to clean and start from scratch, but I'm getting different > error probably related to wrongly configured JIT (LLVM wasn't found > during meson setup). I'll debug on my side to provide more info.
../src/backend/jit/jit.c:91:73: error: ‘DLSUFFIX’ undeclared (first use in this function) 91 | snprintf(path, MAXPGPATH, "%s/%s%s", pkglib_path, jit_provider, DLSUFFIX); | ^~~~~~~~ This *very* likely is related to building in a source tree that also contains a "non-meson" build "in place". The problem is that the meson build picks up the pg_config.h generated by ./configure in the "normal" build, rather than the one meson generated itself. You'd need to execute make distclean or such, or use a separate git checkout. I forgot about this issue because I only ever build postgres from outside the source-tree (by invoking configure from a separate directory), so there's never build products in it. I think at least I need to make the build emit a warning / error if there's a pg_config.h in the source tree... This is the part of the jit code that's built regardless of llvm availability - you'd get the same error in a few other places unrelated to jit. Greetings, Andres Freund