Re: pgsql: Move gramparse.h to src/backend/parser - Mailing list pgsql-committers

From John Naylor
Subject Re: pgsql: Move gramparse.h to src/backend/parser
Date
Msg-id CANWCAZaCk6mX1c4oCQc9fzjtiVZ_Fh19dipOScy7XEjJqAd3gg@mail.gmail.com
Whole thread Raw
In response to Re: pgsql: Move gramparse.h to src/backend/parser  ("Anton A. Melnikov" <a.melnikov@postgrespro.ru>)
Responses Re: pgsql: Move gramparse.h to src/backend/parser
List pgsql-committers
On Wed, Oct 15, 2025 at 2:49 PM Anton A. Melnikov
<a.melnikov@postgrespro.ru> wrote:
> My colleague Marina Polyakova <m.polyakova@postgrespro.ru> found
> the similar bug on buildfarm [1] for REL_15_STABLE in the llvm build:
>
>   -D_GNU_SOURCE -I/usr/include/libxml2  -flto=thin -emit-llvm -c -o segparse.bc segparse.c
> segparse.y:177:10: fatal error: 'segscan.c' file not found
>    177 | #include "segscan.c"
>        |          ^~~~~~~~~~~
> 1 error generated
>
> Maybe backpatch [2] to all supported versions not just 16+?

That only changed src/backend/common.mk, so that's not going to affect
contrib. I looked, and contrib/contrib-global.mk doesn't have any
extra *.bc file handling to begin with (as expected). Also, that fix
was in response to a specific change in dependencies, so I don't see
how it's directly applicable to earlier branches. Maybe there is
something to be done here, but with such a sporadic failure, I'm not
sure what.

--
John Naylor
Amazon Web Services



pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Override log_error_verbosity to "default" in test 009_log_temp_f
Next
From: Tom Lane
Date:
Subject: Re: pgsql: Move gramparse.h to src/backend/parser