Re: Building PostgreSQL in external directory is broken?

Поиск
Список
Период
Сортировка
От Alexander Korotkov
Тема Re: Building PostgreSQL in external directory is broken?
Дата
Msg-id CAPpHfdt5AG_UjSYxK1L5RCc7vEeKrWWPeXEvcKpQffmUTyTG8Q@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Building PostgreSQL in external directory is broken?  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
Список 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 по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Building PostgreSQL in external directory is broken?
Следующее
От: Alexander Korotkov
Дата:
Сообщение: Re: Building PostgreSQL in external directory is broken?