Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ceoP1-00043Y-2C for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Feb 2017 19:41:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ceoP0-0003LB-ID for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Feb 2017 19:41:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ceoOz-0003L3-RX for pgsql-hackers@postgresql.org; Fri, 17 Feb 2017 19:41:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ceoOv-0003Lt-M7 for pgsql-hackers@postgresql.org; Fri, 17 Feb 2017 19:41:08 +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 v1HJevtV002665; Fri, 17 Feb 2017 14:40:58 -0500 From: Tom Lane To: Alvaro Herrera cc: Thomas Munro , Pg Hackers , Andrew Dunstan Subject: Re: pg_recvlogical.c doesn't build with --disable-integer-datetimes In-reply-to: <32279.1487355685@sss.pgh.pa.us> References: <20170217181348.a5pnflupslw2t6xx@alvherre.pgsql> <32279.1487355685@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Fri, 17 Feb 2017 13:21:25 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2663.1487360457.1@sss.pgh.pa.us> Date: Fri, 17 Feb 2017 14:40:57 -0500 Message-ID: <2664.1487360457@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org I wrote: > Yeah. I have longfin which is running Apple's clang, and is on a machine > that doesn't have much to do otherwise. I propose to turn on -Werror in > its configuration, and to configure a second critter on the same hardware > that runs with -Werror as well as --disable-integer-datetimes. Somebody > else should do similarly with a reasonably modern/stable gcc release. So I tried doing that by adding -Werror to longfin's CFLAGS environment, and it crashed and burned in configure. The most obvious problem is that we didn't bother to supply a prototype for does_int64_work() in the probes for 64-bit ints. However, even after fixing that, configure produces totally bollixed output because -Werror breaks many of its built-in tests. We could fix the int64 tests but we have no good way of fixing the built-in tests. AFAICS, if you want to build with -Werror, you have to configure without that and then inject it afterwards. I wonder how people who use -Werror are handling that. Is it possible to do at all in a buildfarm critter? regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers