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 1go9dE-0001GG-20 for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Jan 2019 16:19:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1go9dB-0005H8-A0 for pgsql-hackers@arkaria.postgresql.org; Mon, 28 Jan 2019 16:19:29 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1go9dB-0005H1-2s for pgsql-hackers@lists.postgresql.org; Mon, 28 Jan 2019 16:19:29 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1go9d9-0007wm-5N for pgsql-hackers@lists.postgresql.org; Mon, 28 Jan 2019 16:19:28 +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 x0SGJLK6019809; Mon, 28 Jan 2019 11:19:21 -0500 From: Tom Lane To: pgsql-hackers@lists.postgresql.org cc: Andres Freund Subject: Header checking failures on LLVM-less machines MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19807.1548692361.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 28 Jan 2019 11:19:21 -0500 Message-ID: <19808.1548692361@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Since the LLVM stuff went in, src/tools/pginclude/cpluspluscheck fails on my main devel machine, because In file included from /tmp/cpluspluscheck.jobsM6/test.cpp:3: ./src/include/jit/llvmjit_emit.h:13:25: error: llvm-c/Core.h: No such file= or directory and then there's a bunch of ensuing spewage due to missing typedefs etc. llvmjit.h has the same problem plus this additional pointless aggravation: In file included from /tmp/cpluspluscheck.jobsM6/test.cpp:3: ./src/include/jit/llvmjit.h:15:2: error: #error "llvmjit.h should only be = included by code dealing with llvm" I propose that we should fix this by making the whole bodies of those two headers be #ifdef USE_LLVM. regards, tom lane