On Wed, Jul 13, 2022 at 3:19 PM Alvaro Herrera <alvhe...@alvh.no-ip.org> wrote: > On 2022-Jul-13, Alexander Korotkov wrote: > > > results in an error > > > > .../src/pgbld/../postgresql/src/include/utils/elog.h:73:10: fatal > > error: utils/errcodes.h: No such file or directory > > 73 | #include "utils/errcodes.h" > > > > | ^~~~~~~~~~~~~~~~~~ > > Probably what is happening here is that you have build artifacts in the > source tree after having built there, and that confuses make so not > everything is rebuilt correctly when you call it from the external build > dit. I suggest to "git clean -dfx" your source tree, then you can rerun > configure/make from the external builddir. > > FWIW building in external dirs works fine. I use it all the time.
You are right. I made "make distclean" which appears to be not enough. With "git clean -dfx" correct symlink is generated. Sorry for the noise. ------ Regards, Alexander Korotkov