From: Tom Lane <tgl@sss.pgh.pa.us>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Sam Kidman <sam@fresho.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: errcodes.h and others not generated when compiling 13.6 on M1 Mac
Date: Wed, 27 Apr 2022 09:38:38 -0400
Message-ID: <368888.1651066718@sss.pgh.pa.us> (raw)
In-Reply-To: <e8b4727d30636d26b8fa29a8aa59e62516af20b9.camel@cybertec.at>
References: <CA+FDo=s=Bg6KCeddW345N=azq2O+KvGxpnSELR5YoNrVXzpfUg@mail.gmail.com>
<e8b4727d30636d26b8fa29a8aa59e62516af20b9.camel@cybertec.at>
Laurenz Albe <laurenz.albe@cybertec.at> 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' file 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:
<https://www.postgresql.org/docs/devel/installation.html;
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=sifaka&br=REL_13_STABLE
[2] https://www.postgresql.org/docs/devel/installation-platform-notes.html#INSTALLATION-NOTES-MACOS
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, laurenz.albe@cybertec.at, sam@fresho.com
Subject: Re: errcodes.h and others not generated when compiling 13.6 on M1 Mac
In-Reply-To: <368888.1651066718@sss.pgh.pa.us>
References: <CA+FDo=s=Bg6KCeddW345N=azq2O+KvGxpnSELR5YoNrVXzpfUg@mail.gmail.com> <e8b4727d30636d26b8fa29a8aa59e62516af20b9.camel@cybertec.at> <368888.1651066718@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox