Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goI69-0002oX-G8 for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Jan 2019 01:21:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1goI68-00072N-Bc for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Jan 2019 01:21:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goI67-00072G-BS for pgsql-hackers@lists.postgresql.org; Tue, 29 Jan 2019 01:21:55 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1goI65-0003SP-07 for pgsql-hackers@lists.postgresql.org; Tue, 29 Jan 2019 01:21:54 +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 x0T1Ln9M000511; Mon, 28 Jan 2019 20:21:49 -0500 From: Tom Lane To: Andres Freund cc: pgsql-hackers@lists.postgresql.org Subject: Re: Header checking failures on LLVM-less machines In-reply-to: <20190129005553.tuydbrscrl454yqn@alap3.anarazel.de> References: <19808.1548692361@sss.pgh.pa.us> <31363.1548723082@sss.pgh.pa.us> <20190129005553.tuydbrscrl454yqn@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 28 Jan 2019 16:55:53 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <509.1548724909.1@sss.pgh.pa.us> Date: Mon, 28 Jan 2019 20:21:49 -0500 Message-ID: <510.1548724909@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2019-01-28 19:51:22 -0500, Tom Lane wrote: >> I propose that we should fix this by making the whole bodies of those >> two headers be #ifdef USE_LLVM. > Hm, I think it's sufficient that we error out if llvm was configured, > we've sufficient buildfarm machines running with it enabled. That is not the point. The point is that you've broken a developer tool. I don't really care whether cpluspluscheck would work on some subset of buildfarm machines --- what I need is for it to work on *my* machine. It is not any more okay for the llvm headers to fail like this than it would be for libxml- or openssl- or Windows-dependent headers to fail on machines lacking respective infrastructure. (And yes, I realize that that means that cpluspluscheck can only check a subset of the header declarations on any particular machine. But there's no way around that.) regards, tom lane