Re: Building PostgreSQL in external directory is broken? - Mailing list pgsql-hackers

From Alexander Korotkov
Subject Re: Building PostgreSQL in external directory is broken?
Date
Msg-id CAPpHfdt5AG_UjSYxK1L5RCc7vEeKrWWPeXEvcKpQffmUTyTG8Q@mail.gmail.com
Whole thread Raw
In response to Re: Building PostgreSQL in external directory is broken?  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-hackers
On Wed, Jul 13, 2022 at 3:19 PM Alvaro Herrera <alvherre@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



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: Building PostgreSQL in external directory is broken?
Next
From: Alexander Korotkov
Date:
Subject: Re: Building PostgreSQL in external directory is broken?