Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oYYC8-0007qe-21 for pgsql-committers@arkaria.postgresql.org; Wed, 14 Sep 2022 19:37:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oYYC6-0007FX-US for pgsql-committers@arkaria.postgresql.org; Wed, 14 Sep 2022 19:37:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oYYC6-0007FO-Na for pgsql-committers@lists.postgresql.org; Wed, 14 Sep 2022 19:37:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oYYC3-0001c9-5y; Wed, 14 Sep 2022 19:37:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 28EJb6UP2862808; Wed, 14 Sep 2022 15:37:06 -0400 From: Tom Lane To: John Naylor cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Move gramparse.h to src/backend/parser In-reply-to: References: Comments: In-reply-to John Naylor message dated "Wed, 14 Sep 2022 04:02:22 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2862806.1663184226.1@sss.pgh.pa.us> Date: Wed, 14 Sep 2022 15:37:06 -0400 Message-ID: <2862807.1663184226@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk John Naylor writes: > Move gramparse.h to src/backend/parser The cfbot is unhappy since this commit; some but not all tests fail with [09:33:13.793] In file included from scan.c:39: [09:33:13.793] ./gramparse.h:29:10: fatal error: 'gram.h' file not found [09:33:13.794] #include "gram.h" [09:33:13.794] ^~~~~~~~ [09:33:13.839] In file included from parser.c:25: [09:33:13.839] ./gramparse.h:29:10: fatal error: 'gram.h' file not found [09:33:13.839] #include "gram.h" [09:33:13.839] ^~~~~~~~ What I think is happening is that it was a mistake to remove parser/gram.h from the dependencies of backend/Makefile's generated-headers target: that allows builds to proceed before gram.h has necessarily been created. The fact that it works at all for anybody says that there's another dependency path somewhere that causes bison to get run ... but, seemingly, that doesn't always happen soon enough in a parallel build. regards, tom lane