pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Use better comment marker in Autoconf input
8+ messages / 6 participants
[nested] [flat]

* pgsql: Use better comment marker in Autoconf input
@ 2019-02-09 14:57  Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 1 reply; 8+ messages in thread

From: Peter Eisentraut @ 2019-02-09 14:57 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Use better comment marker in Autoconf input

The comment marker "#" is copied to the output, so it's only
appropriate for comments that make sense in the shell output.  For
comments about the Autoconf language, "dnl" should be used.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4446565d36ac4482282146a9ab35068f18dff4fd

Modified Files
--------------
config/llvm.m4     |  2 +-
config/programs.m4 |  2 +-
configure          |  9 +--------
configure.in       | 12 ++++++------
4 files changed, 9 insertions(+), 16 deletions(-)



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

* Re: pgsql: Use better comment marker in Autoconf input
@ 2019-02-10 06:14  Andres Freund <andres@anarazel.de>
  parent: Peter Eisentraut <peter@eisentraut.org>
  0 siblings, 1 reply; 8+ messages in thread

From: Andres Freund @ 2019-02-10 06:14 UTC (permalink / raw)
  To: Peter Eisentraut <peter@eisentraut.org>; munro@ip9.org; +Cc: pgsql-committers@lists.postgresql.org

Hi,

On 2019-02-09 14:57:27 +0000, Peter Eisentraut wrote:
> Use better comment marker in Autoconf input
> 
> The comment marker "#" is copied to the output, so it's only
> appropriate for comments that make sense in the shell output.  For
> comments about the Autoconf language, "dnl" should be used.

Weirdly enough this might have had some sideeffects. According to
https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=elver&dt=2019-02-09%2014%3A58%3A09
this is where elver started to fail. I'd for a minute just put this down
to an independent upgrade on the animal, but the other branches still
build fine.   I'm somewhat confused.

Greetings,

Andres Freund




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

* Re: pgsql: Use better comment marker in Autoconf input
@ 2019-02-10 06:45  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Andres Freund <andres@anarazel.de>
  0 siblings, 1 reply; 8+ messages in thread

From: Tom Lane @ 2019-02-10 06:45 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: Peter Eisentraut <peter@eisentraut.org>; munro@ip9.org; pgsql-committers@lists.postgresql.org

Andres Freund <andres@anarazel.de> writes:
> On 2019-02-09 14:57:27 +0000, Peter Eisentraut wrote:
>> Use better comment marker in Autoconf input

> Weirdly enough this might have had some sideeffects. According to
> https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=elver&dt=2019-02-09%2014%3A58%3A09
> this is where elver started to fail.

Yeah, I noticed that coincidence too.

> I'd for a minute just put this down
> to an independent upgrade on the animal, but the other branches still
> build fine.

The error seems to be a library version mismatch, which sure looks
like a busted software upgrade.  But you have a darn good point:
if that's the problem, why didn't v11 break too?

> I'm somewhat confused.

Me too, now.  I stared closely at the configure shell script
changes, and they certainly seem to be innocuous.

			regards, tom lane




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

* Re: pgsql: Use better comment marker in Autoconf input
@ 2019-02-10 08:22  Andres Freund <andres@anarazel.de>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 8+ messages in thread

From: Andres Freund @ 2019-02-10 08:22 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Peter Eisentraut <peter@eisentraut.org>; munro@ip9.org; pgsql-committers@lists.postgresql.org

Hi,

On 2019-02-10 01:45:58 -0500, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > On 2019-02-09 14:57:27 +0000, Peter Eisentraut wrote:
> > I'd for a minute just put this down
> > to an independent upgrade on the animal, but the other branches still
> > build fine.
> 
> The error seems to be a library version mismatch, which sure looks
> like a busted software upgrade.  But you have a darn good point:
> if that's the problem, why didn't v11 break too?

After a few coffees it's clear why: In v11, we have jit=0. As LLVM is
loaded on-demand, we'll not see errors in v11.

Greetings,

Andres Freund




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

* Re: pgsql: Use better comment marker in Autoconf input
@ 2019-02-11 07:41  Thomas Munro <munro@ip9.org>
  parent: Andres Freund <andres@anarazel.de>
  0 siblings, 1 reply; 8+ messages in thread

From: Thomas Munro @ 2019-02-11 07:41 UTC (permalink / raw)
  To: Andres Freund <andres@anarazel.de>; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Peter Eisentraut <peter@eisentraut.org>; pgsql-committers@lists.postgresql.org

On Sun, 10 Feb 2019 at 19:22, Andres Freund <andres@anarazel.de> wrote:
> On 2019-02-10 01:45:58 -0500, Tom Lane wrote:
> > Andres Freund <andres@anarazel.de> writes:
> > > On 2019-02-09 14:57:27 +0000, Peter Eisentraut wrote:
> > > I'd for a minute just put this down
> > > to an independent upgrade on the animal, but the other branches still
> > > build fine.
> >
> > The error seems to be a library version mismatch, which sure looks
> > like a busted software upgrade.  But you have a darn good point:
> > if that's the problem, why didn't v11 break too?
>
> After a few coffees it's clear why: In v11, we have jit=0. As LLVM is
> loaded on-demand, we'll not see errors in v11.

It was using CC="ccache cc" for C, but no explicit CXX.  Somehow our
configure script flipped from finding c++ (the system C++ compiler,
which is Clang) to finding g++ (an old GCC port I had installed) after
that commit, and the resulting .so didn't work too well.  I did not
upgrade or change anything at that time.  I must admit that commit of
Peter's looks fairly innocent though.  Is it possible that an earlier
change caused it, but this change caused the "accache" to be cleared?
That accache seems a bit flimsy, I've had to rm it before.  Anyway,
now that I've explicitly set CXX="ccache c++" and nuked the accache,
elver is green again.




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

* Re: pgsql: Use better comment marker in Autoconf input
@ 2019-02-11 16:45  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Thomas Munro <munro@ip9.org>
  0 siblings, 2 replies; 8+ messages in thread

From: Tom Lane @ 2019-02-11 16:45 UTC (permalink / raw)
  To: Thomas Munro <munro@ip9.org>; +Cc: Andrew Dunstan <andrew@dunslane.net>; Andres Freund <andres@anarazel.de>; Peter Eisentraut <peter@eisentraut.org>; pgsql-committers@lists.postgresql.org

Thomas Munro <munro@ip9.org> writes:
> It was using CC="ccache cc" for C, but no explicit CXX.  Somehow our
> configure script flipped from finding c++ (the system C++ compiler,
> which is Clang) to finding g++ (an old GCC port I had installed) after
> that commit, and the resulting .so didn't work too well.  I did not
> upgrade or change anything at that time.  I must admit that commit of
> Peter's looks fairly innocent though.  Is it possible that an earlier
> change caused it, but this change caused the "accache" to be cleared?

Yeah, I think you're on the right track.  Had you made any changes in
that animal's configuration file between 21 Jan (the previous touch
of "configure" was in ee27584c4) and 9 Feb?  Or updated the platform's
compilers?

> That accache seems a bit flimsy, I've had to rm it before.

Yup, the buildfarm script only knows to nuke it if "configure" changes.
If you change the critter's buildfarm parameters, or the build
environment, that might require revisiting configure tests, but it won't
happen automatically.  I can't think of any really easy way to improve
that.

			regards, tom lane




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

* Re: pgsql: Use better comment marker in Autoconf input
@ 2019-02-11 20:35  Thomas Munro <thomas.munro@enterprisedb.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 8+ messages in thread

From: Thomas Munro @ 2019-02-11 20:35 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Thomas Munro <munro@ip9.org>; Andrew Dunstan <andrew@dunslane.net>; Andres Freund <andres@anarazel.de>; Peter Eisentraut <peter@eisentraut.org>; pgsql-committers@lists.postgresql.org

On Tue, Feb 12, 2019 at 3:46 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Thomas Munro <munro@ip9.org> writes:
> > It was using CC="ccache cc" for C, but no explicit CXX.  Somehow our
> > configure script flipped from finding c++ (the system C++ compiler,
> > which is Clang) to finding g++ (an old GCC port I had installed) after
> > that commit, and the resulting .so didn't work too well.  I did not
> > upgrade or change anything at that time.  I must admit that commit of
> > Peter's looks fairly innocent though.  Is it possible that an earlier
> > change caused it, but this change caused the "accache" to be cleared?
>
> Yeah, I think you're on the right track.  Had you made any changes in
> that animal's configuration file between 21 Jan (the previous touch
> of "configure" was in ee27584c4) and 9 Feb?  Or updated the platform's
> compilers?

Oh, yeah, I remember now that I installed an old GCC a few weeks back
when testing some theory or other.  I am slightly surprised that we
prefer g++ to c++, so that merely installing it has this effect.
Anyway, I've now set the compiler explicitly.  Sorry for the noise.

-- 
Thomas Munro
http://www.enterprisedb.com




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

* Re: pgsql: Use better comment marker in Autoconf input
@ 2019-02-11 20:52  Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  1 sibling, 0 replies; 8+ messages in thread

From: Andrew Dunstan @ 2019-02-11 20:52 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Thomas Munro <munro@ip9.org>; Andrew Dunstan <andrew@dunslane.net>; Andres Freund <andres@anarazel.de>; Peter Eisentraut <peter@eisentraut.org>; pgsql-committers <pgsql-committers@lists.postgresql.org>

On Mon, Feb 11, 2019 at 11:46 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Yup, the buildfarm script only knows to nuke it if "configure" changes.
> If you change the critter's buildfarm parameters, or the build
> environment, that might require revisiting configure tests, but it won't
> happen automatically.  I can't think of any really easy way to improve
> that.
>


Could stash a checksum of the config settings and obsolete the cache
if there was a mismatch. The danger is that we could get some false
positives, but the only downside to that is a one time extra amount of
time spent in configure.

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-02-11 20:52 UTC | newest]

Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-02-09 14:57 pgsql: Use better comment marker in Autoconf input Peter Eisentraut <peter@eisentraut.org>
2019-02-10 06:14 ` Andres Freund <andres@anarazel.de>
2019-02-10 06:45   ` Tom Lane <tgl@sss.pgh.pa.us>
2019-02-10 08:22     ` Andres Freund <andres@anarazel.de>
2019-02-11 07:41       ` Thomas Munro <munro@ip9.org>
2019-02-11 16:45         ` Tom Lane <tgl@sss.pgh.pa.us>
2019-02-11 20:35           ` Thomas Munro <thomas.munro@enterprisedb.com>
2019-02-11 20:52           ` 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