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 1nkEqt-0007Dq-R6 for pgsql-general@arkaria.postgresql.org; Fri, 29 Apr 2022 00:51:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nkEqq-0007TN-G2 for pgsql-general@arkaria.postgresql.org; Fri, 29 Apr 2022 00:51:16 +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 1nkEqq-0007J1-5Q for pgsql-general@lists.postgresql.org; Fri, 29 Apr 2022 00:51:16 +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 1nkEql-0002kZ-7h for pgsql-general@lists.postgresql.org; Fri, 29 Apr 2022 00:51:12 +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 23T0p9DJ232984; Thu, 28 Apr 2022 20:51:09 -0400 From: Tom Lane To: Sam Kidman cc: pgsql-general@lists.postgresql.org Subject: Re: errcodes.h and others not generated when compiling 13.6 on M1 Mac In-reply-to: References: <368888.1651066718@sss.pgh.pa.us> <229474.1651191400@sss.pgh.pa.us> Comments: In-reply-to Sam Kidman message dated "Fri, 29 Apr 2022 10:47:42 +1000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <232982.1651193469.1@sss.pgh.pa.us> Date: Thu, 28 Apr 2022 20:51:09 -0400 Message-ID: <232983.1651193469@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Sam Kidman writes: >> Are you using any nondefault make options? Are you invoking our Makefile >> from some make script of your own? > This all came about because we use asdf as a version manager which compiles > the versions of various programs you want to use. There's potentially a > problem with the asdf plugin for postgres which I'd like to fix. I couldn't > make head nor tails of the problem with asdf, so I cloned the source and > started trying to compile it myself. The error I get when I compile it > myself and when asdf does it are the same (the problem with header files > not being generated) Our manual recommends doing it this way if you invoke PG's build from an upper-level makefile: build-postgresql: $(MAKE) -C postgresql MAKELEVEL=0 all I don't know anything about asdf, but if it uses make scripts then a likely explanation for the problem is lack of the "MAKELEVEL=0" bit. regards, tom lane