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

From Alvaro Herrera
Subject Re: Building PostgreSQL in external directory is broken?
Date
Msg-id 20220713121906.h22e2rmpigxx2fwf@alvherre.pgsql
Whole thread Raw
In response to Building PostgreSQL in external directory is broken?  (Alexander Korotkov <aekorotkov@gmail.com>)
Responses Re: Building PostgreSQL in external directory is broken?
List pgsql-hackers
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.

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/
"Once again, thank you and all of the developers for your hard work on
PostgreSQL.  This is by far the most pleasant management experience of
any database I've worked on."                             (Dan Harris)
http://archives.postgresql.org/pgsql-performance/2006-04/msg00247.php



pgsql-hackers by date:

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