pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: Дилян Палаузов <dpa-postgres@aegee.org>
Cc: PostgreSQL Bugs <pgsql-bugs@postgresql.org>
Subject: Re: ./configure error: Cannot find a working 64-bit integer type
Date: Tue, 10 Oct 2017 12:02:59 -0400
Message-ID: <16007.1507651379@sss.pgh.pa.us> (raw)
In-Reply-To: <20171010152457.pa7wrdq6v5nypbx4@alvherre.pgsql>
References: <20171010152457.pa7wrdq6v5nypbx4@alvherre.pgsql>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> Дилян Палаузов wrote:
>> if the aim is one day to be able to run with -Werror, as far as the
>> problems are within PG, then this snippet needs to be fixed one day,
>> and today is a good opportunity for this particular piece.

> I don't think we have any expectations that we would ever allow
> configure to run with -Werror.

The problem with configure is that it *expects* to get failures,
and silently copes with them.  This means that whenever
$blithering_idiot_compiler_maintainer decides that some legal-per-spec
coding pattern deserves a warning, -Werror will mean that configure
decides that features are missing from your O/S, and then we silently
work around them as best we can.  This is not what you want to have
happen.

I might be more excited about making this work if compiler warnings
weren't such a moving target ... but they are.  So trying to make
configure work with -Werror would just be an unending source of pain
and/or bad performance.

Given that situation, I think it's actually a good thing that the int64
test is coded the way it is, as it stops anyone from trying to use -Werror
here.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (8+ messages)  latest in thread

Message-ID: <16007.1507651379@sss.pgh.pa.us>
Permalink:  ../16007.1507651379@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16007.1507651379@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, alvherre@alvh.no-ip.org, dpa-postgres@aegee.org
  Subject: Re: ./configure error: Cannot find a working 64-bit integer type
  In-Reply-To: <16007.1507651379@sss.pgh.pa.us>
  References: <20171010152457.pa7wrdq6v5nypbx4@alvherre.pgsql> <16007.1507651379@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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