Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e1x24-0006rV-96 for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Oct 2017 16:05:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e1x23-0001H6-Ij for pgsql-bugs@arkaria.postgresql.org; Tue, 10 Oct 2017 16:05:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e1x23-0001GA-4h for pgsql-bugs@postgresql.org; Tue, 10 Oct 2017 16:05:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1e1x1z-0008Rx-Jz for pgsql-bugs@postgresql.org; Tue, 10 Oct 2017 16:05:21 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v9AG2xXW016008; Tue, 10 Oct 2017 12:02:59 -0400 From: Tom Lane To: Alvaro Herrera cc: =?utf-8?B?0JTQuNC70Y/QvSDQn9Cw0LvQsNGD0LfQvtCy?= , PostgreSQL Bugs Subject: Re: ./configure error: Cannot find a working 64-bit integer type In-reply-to: <20171010152457.pa7wrdq6v5nypbx4@alvherre.pgsql> References: <20171010152457.pa7wrdq6v5nypbx4@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Tue, 10 Oct 2017 17:24:57 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <16006.1507651379.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Tue, 10 Oct 2017 12:02:59 -0400 Message-ID: <16007.1507651379@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Alvaro Herrera 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