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 1njhsY-0004I0-7Y for pgsql-general@arkaria.postgresql.org; Wed, 27 Apr 2022 13:38:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1njhsW-0004y6-QZ for pgsql-general@arkaria.postgresql.org; Wed, 27 Apr 2022 13:38:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njhsW-0004xv-GF for pgsql-general@lists.postgresql.org; Wed, 27 Apr 2022 13:38:48 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1njhsT-0006vh-96 for pgsql-general@lists.postgresql.org; Wed, 27 Apr 2022 13:38:48 +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 23RDccVN368889; Wed, 27 Apr 2022 09:38:39 -0400 From: Tom Lane To: Laurenz Albe cc: Sam Kidman , pgsql-general@lists.postgresql.org Subject: Re: errcodes.h and others not generated when compiling 13.6 on M1 Mac In-reply-to: References: Comments: In-reply-to Laurenz Albe message dated "Wed, 27 Apr 2022 12:51:11 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <368887.1651066718.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 27 Apr 2022 09:38:38 -0400 Message-ID: <368888.1651066718@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Laurenz Albe writes: > On Wed, 2022-04-27 at 10:05 +1000, Sam Kidman wrote: >> I recently upgraded one of our applications to use postgres 13.6. When = I try to compile >> from a source checkout or by running asdf install (our version manager = which also compiles 13.6) >> I get the same error message: >> = >> ../../src/include/utils/elog.h:71:10: fatal error: 'utils/errcodes.h' f= ile not found > I'd say that you didn't ./configure the PostgreSQL source. No, we dealt with that case long ago: you get $ make You need to run the 'configure' program first. See the file 'README.git' for installation instructions, or visit: = make: *** [all] Error 1 Anyway, 13.6 certainly builds on my M1 laptop, as well as my M1 buildfarm animal [1], so it's not a case of "it's completely broken". But you need the appropriate prerequisites, eg an Xcode installation [2]. I wonder exactly what configure options the OP is using, and what's installed on his Mac beyond bare macOS. regards, tom lane [1] https://buildfarm.postgresql.org/cgi-bin/show_history.pl?nm=3Dsifaka&b= r=3DREL_13_STABLE [2] https://www.postgresql.org/docs/devel/installation-platform-notes.html= #INSTALLATION-NOTES-MACOS