pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix compiler warning for ppoll() on Cygwin
8+ messages / 5 participants
[nested] [flat]

* pgsql: Fix compiler warning for ppoll() on Cygwin
@ 2019-12-22 22:21  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 1 reply; 8+ messages in thread

From: Peter Eisentraut @ 2019-12-22 22:21 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Fix compiler warning for ppoll() on Cygwin

_GNU_SOURCE is required to get the prototype, so just define that
globally, as was already done in the linux template.

Discussion: https://www.postgresql.org/message-id/flat/6b467edc-4018-521f-ab18-171f098557ca%402ndquadrant.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/127ccb37251744c0fad2df0f3f67dd2c38fe8389

Modified Files
--------------
src/template/cygwin | 3 +++
1 file changed, 3 insertions(+)



^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: pgsql: Fix compiler warning for ppoll() on Cygwin
@ 2019-12-25 06:17  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 1 reply; 8+ messages in thread

From: Tom Lane @ 2019-12-25 06:17 UTC (permalink / raw)
  To: Peter Eisentraut <peter@eisentraut.org>; +Cc: pgsql-committers@lists.postgresql.org

Peter Eisentraut <peter@eisentraut.org> writes:
> Fix compiler warning for ppoll() on Cygwin
> _GNU_SOURCE is required to get the prototype, so just define that
> globally, as was already done in the linux template.

This seems to have broken lorikeet:

https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=lorikeet&dt=2019-12-23%2006%3A38%3A29

================== pgsql.build/src/test/regress/regression.diffs ===================
inline patch 1: /home/andrew/bf64/root/HEAD/pgsql.build/src/test/regress/results/create_function_1.out (+1/-1 lines) download inline-1.patchdiff -U3 /home/andrew/bf64/root/HEAD/pgsql.build/src/test/regress/expected/create_function_1.out /home/andrew/bf64/root/HEAD/pgsql.build/src/test/regress/results/create_function_1.out --- /home/andrew/bf64/root/HEAD/pgsql.build/src/test/regress/expected/create_function_1.out 2019-12-23 01:54:52.899453200 -0500 +++ /home/andrew/bf64/root/HEAD/pgsql.build/src/test/regress/results/create_function_1.out 2019-12-23 01:55:58.318974000 -0500 @@ -90,7 +90,7 @@ ERROR: only one AS item needed for language "sql" CREATE FUNCTION test1 (int) RETURNS int LANGUAGE C AS 'nosuchfile'; -ERROR: could not access file "nosuchfile": No such file or directory +ERROR: could not access file "nosuchfile": ENOENT CREATE FUNCTION test1 (int) RETURNS int LANGUAGE C AS '/home/andrew/bf64/root/HEAD/pgsql.build/src/test/regress/regress.dll', 'nosuchsymbol'; ERROR: could not find function "nosuchsymbol" in file "/home/andrew/bf64/root/HEAD/pgsql.build/src/test/regress/regress.dll"
I'm guessing that this broke something in the #ifdef nest in gnuish_strerror_r(), causing it to fail, causing pg_strerror_r() to fall back to using get_errno_symbol(). regards, tom lane ^ permalink raw reply [nested|flat] 8+ messages in thread

* Re: pgsql: Fix compiler warning for ppoll() on Cygwin
@ 2019-12-25 20:58  Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 2 replies; 8+ messages in thread

From: Peter Eisentraut @ 2019-12-25 20:58 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-committers@lists.postgresql.org, Andrew Dunstan <andrew@dunslane.net>

I think the config.cache of lorikeet needs to be cleaned, because the 
return type of strerror_r() has changed as a result of this commit, but 
the build farm logs still show the old test result being used from the 
cache.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
On 2019-12-25 07:17, Tom Lane wrote:
> Peter Eisentraut <peter@eisentraut.org> writes:
>> Fix compiler warning for ppoll() on Cygwin
>> _GNU_SOURCE is required to get the prototype, so just define that
>> globally, as was already done in the linux template.
> 
> This seems to have broken lorikeet:
> 
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=lorikeet&dt=2019-12-23%2006%3A38%3A29
> 
> ================== pgsql.build/src/test/regress/regression.diffs ===================
> diff -U3 /home/andrew/bf64/root/HEAD/pgsql.build/src/test/regress/expected/create_function_1.out /home/andrew/bf64/root/HEAD/pgsql.build/src/test/regress/results/create_function_1.out
> --- /home/andrew/bf64/root/HEAD/pgsql.build/src/test/regress/expected/create_function_1.out	2019-12-23 01:54:52.899453200 -0500
> +++ /home/andrew/bf64/root/HEAD/pgsql.build/src/test/regress/results/create_function_1.out	2019-12-23 01:55:58.318974000 -0500
> @@ -90,7 +90,7 @@
>   ERROR:  only one AS item needed for language "sql"
>   CREATE FUNCTION test1 (int) RETURNS int LANGUAGE C
>       AS 'nosuchfile';
> -ERROR:  could not access file "nosuchfile": No such file or directory
> +ERROR:  could not access file "nosuchfile": ENOENT
>   CREATE FUNCTION test1 (int) RETURNS int LANGUAGE C
>       AS '/home/andrew/bf64/root/HEAD/pgsql.build/src/test/regress/regress.dll', 'nosuchsymbol';
>   ERROR:  could not find function "nosuchsymbol" in file "/home/andrew/bf64/root/HEAD/pgsql.build/src/test/regress/regress.dll"
> 
> I'm guessing that this broke something in the #ifdef nest in
> gnuish_strerror_r(), causing it to fail, causing pg_strerror_r()
> to fall back to using get_errno_symbol().
> 
> 			regards, tom lane
> 






^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: pgsql: Fix compiler warning for ppoll() on Cygwin
@ 2019-12-25 21:44  Andrew Dunstan <andrew@dunslane.net>
  parent: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
  1 sibling, 0 replies; 8+ messages in thread

From: Andrew Dunstan @ 2019-12-25 21:44 UTC (permalink / raw)
  To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-committers@lists.postgresql.org

On Thu, Dec 26, 2019 at 7:28 AM Peter Eisentraut <
peter.eisentraut@2ndquadrant.com> wrote:

> I think the config.cache of lorikeet needs to be cleaned, because the
> return type of strerror_r() has changed as a result of this commit, but
> the build farm logs still show the old test result being used from the
> cache.
>

I'll see what I can do. Connecting to it remotely (from Australia) is a fun
exercise ...

cheers

andrew

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: pgsql: Fix compiler warning for ppoll() on Cygwin
@ 2019-12-26 05:41  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
  1 sibling, 1 reply; 8+ messages in thread

From: Tom Lane @ 2019-12-26 05:41 UTC (permalink / raw)
  To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>; +Cc: pgsql-committers@lists.postgresql.org, Andrew Dunstan <andrew@dunslane.net>

Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> I think the config.cache of lorikeet needs to be cleaned, because the 
> return type of strerror_r() has changed as a result of this commit, but 
> the build farm logs still show the old test result being used from the 
> cache.

lorikeet's latest build run appears to have been done without config
cache, and it succeeded, so your guess was correct.

Next question is why the buildfarm client got that wrong.  Seems like
its accache logic needs to notice changes in src/template/* as well as
the configure script proper.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: pgsql: Fix compiler warning for ppoll() on Cygwin
@ 2019-12-26 21:30  Andrew Dunstan <andrew@dunslane.net>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 8+ messages in thread

From: Andrew Dunstan @ 2019-12-26 21:30 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>; pgsql-committers@lists.postgresql.org

On Thu, Dec 26, 2019 at 4:12 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:

> Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> > I think the config.cache of lorikeet needs to be cleaned, because the
> > return type of strerror_r() has changed as a result of this commit, but
> > the build farm logs still show the old test result being used from the
> > cache.
>
> lorikeet's latest build run appears to have been done without config
> cache, and it succeeded, so your guess was correct.
>
> Next question is why the buildfarm client got that wrong.  Seems like
> its accache logic needs to notice changes in src/template/* as well as
> the configure script proper.
>
>
>


The problem with that is that a change in one template will cause the cache
to be invalidated for every buildfarm member. Maybe that doesn't matter too
much - after all we used not to keep the cache at all.

cheers

andrew

^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: pgsql: Fix compiler warning for ppoll() on Cygwin
@ 2019-12-26 23:54  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Andrew Dunstan <andrew@dunslane.net>
  0 siblings, 1 reply; 8+ messages in thread

From: Tom Lane @ 2019-12-26 23:54 UTC (permalink / raw)
  To: Andrew Dunstan <andrew@dunslane.net>; +Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>; pgsql-committers@lists.postgresql.org

Andrew Dunstan <andrew@dunslane.net> writes:
> On Thu, Dec 26, 2019 at 4:12 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Next question is why the buildfarm client got that wrong.  Seems like
>> its accache logic needs to notice changes in src/template/* as well as
>> the configure script proper.

> The problem with that is that a change in one template will cause the cache
> to be invalidated for every buildfarm member. Maybe that doesn't matter too
> much - after all we used not to keep the cache at all.

I don't think we change those templates often enough for that to be
much of a concern.  Trying to make the buildfarm script smart enough
to check only the relevant template seems like more trouble than it'd
be worth.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 8+ messages in thread

* Re: pgsql: Fix compiler warning for ppoll() on Cygwin
@ 2019-12-27 03:47  Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 8+ messages in thread

From: Andrew Dunstan @ 2019-12-27 03:47 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Andrew Dunstan <andrew@dunslane.net>; Peter Eisentraut <peter.eisentraut@2ndquadrant.com>; pgsql-committers <pgsql-committers@lists.postgresql.org>

On Fri, Dec 27, 2019 at 10:24 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Andrew Dunstan <andrew@dunslane.net> writes:
> > On Thu, Dec 26, 2019 at 4:12 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> >> Next question is why the buildfarm client got that wrong.  Seems like
> >> its accache logic needs to notice changes in src/template/* as well as
> >> the configure script proper.
>
> > The problem with that is that a change in one template will cause the cache
> > to be invalidated for every buildfarm member. Maybe that doesn't matter too
> > much - after all we used not to keep the cache at all.
>
> I don't think we change those templates often enough for that to be
> much of a concern.  Trying to make the buildfarm script smart enough
> to check only the relevant template seems like more trouble than it'd
> be worth.
>


Right, fix along these lines committed, will be in the next release.

cheers

andrew


-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





^ permalink  raw  reply  [nested|flat] 8+ messages in thread


end of thread, other threads:[~2019-12-27 03:47 UTC | newest]

Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-12-22 22:21 pgsql: Fix compiler warning for ppoll() on Cygwin Peter Eisentraut <peter@eisentraut.org>
2019-12-25 06:17 ` Tom Lane <tgl@sss.pgh.pa.us>
2019-12-25 20:58   ` Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
2019-12-25 21:44     ` Andrew Dunstan <andrew@dunslane.net>
2019-12-26 05:41     ` Tom Lane <tgl@sss.pgh.pa.us>
2019-12-26 21:30       ` Andrew Dunstan <andrew@dunslane.net>
2019-12-26 23:54         ` Tom Lane <tgl@sss.pgh.pa.us>
2019-12-27 03:47           ` Andrew Dunstan <andrew.dunstan@2ndquadrant.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox