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 1njfGU-0002wk-I6 for pgsql-general@arkaria.postgresql.org; Wed, 27 Apr 2022 10:51:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1njfGT-0004Lf-Bk for pgsql-general@arkaria.postgresql.org; Wed, 27 Apr 2022 10:51:21 +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 1njfGT-0004LQ-1G for pgsql-general@lists.postgresql.org; Wed, 27 Apr 2022 10:51:21 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1njfGL-0005Zp-TK for pgsql-general@lists.postgresql.org; Wed, 27 Apr 2022 10:51:20 +0000 Received: by mail-ed1-x52b.google.com with SMTP id g20so1458288edw.6 for ; Wed, 27 Apr 2022 03:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=zSAZjwPz8D4JVeN14ZQ/Xe3Dea1XkEcM6pFXNye3YWY=; b=mCB4aQUORtF1M3ono+uputnmiMVu8GEN4UMRB93p65cm2YdKhSP+JAua+pF0Fp7VSb j9a6yekeJWYbNecrYx7LKPNuxI7t7TqyMxtiKatPGOpDCAX6NCSd3KY0LP254dZV+qNQ SDijGNO1M6BDLJ0y9nRpFyvD0DqRcs41dKV1+PQCRzlAMFdzs8qHtoAm0zjaKJzYVxoH tqxJTZ1liSAPO3IywZW2MGQFa3MfbrVfv+GWhjQWN7wXnZ1DnUgVuZREML8WKYwEYoUo r9R3iMEv/USDTO6x9Owb9j1dhaWw0oOXMm4VfhQ40jvaRXhNaR9BHTPSWonjYCtV1LcD g+uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=zSAZjwPz8D4JVeN14ZQ/Xe3Dea1XkEcM6pFXNye3YWY=; b=QNWOv42Xwf8kqGzK0nvdbLnKMXUwIZBCyRFrjqg1h6l228dLvFN1uFmn+tRN2fpKMf wlq0Xrquw7+mDAyQVjmGqDL/rgrPeWkklx9krJUD4TC9+yNj89uOcpyIbpNETJelRTUC PlPuipFtISco/D2m6SSNO80W0pHphjPrMu3Bdw2cfipLEame6dhvhtkxBWzx3BmHAuKc +SB5ETT7EhZfvtd/t/IUyGut+qfdfkPJoy8mYWGZ6Oug1BRtXKAljJ5QIFoyYxtiye81 Z1zh6+zm4r7JoVXWlD0PRdfCLBpRdyde915aUtIrcLAraGgD921bjFpjP1YORJFrTsQz vItw== X-Gm-Message-State: AOAM530eJNzup9wEolk5h8zupzLhdh8NanGbE561vif6FesagazhO6Rv ccZfnUBegZXhJkGhV+PqqUD+3Q== X-Google-Smtp-Source: ABdhPJzIwTrl6FBC+tJ58kuuYDpe4d7IO7YkmIS+3/ZhTFxj6KgOxHqhs204+a8wTeeRzC5VyOM7Og== X-Received: by 2002:aa7:c3ca:0:b0:425:ecfc:4258 with SMTP id l10-20020aa7c3ca000000b00425ecfc4258mr14680245edr.266.1651056672739; Wed, 27 Apr 2022 03:51:12 -0700 (PDT) Received: from localhost.localdomain ([2001:871:5e:b8e3:cb1b:5da7:8fa7:5553]) by smtp.gmail.com with ESMTPSA id k15-20020a50ce4f000000b00420119333c1sm8109341edj.62.2022.04.27.03.51.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Apr 2022 03:51:12 -0700 (PDT) Message-ID: Subject: Re: errcodes.h and others not generated when compiling 13.6 on M1 Mac From: Laurenz Albe To: Sam Kidman , pgsql-general@lists.postgresql.org Date: Wed, 27 Apr 2022 12:51:11 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-5.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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 > > After digging around in the source it looks like it's supposed to be generated. I can't > figure out why this isn't working on my machine though. It seems to happen on any M1 mac > (my colleagues can reproduce it) > > Any help on how to fix or debug this further would beĀ appreciated. I'd say that you didn't ./configure the PostgreSQL source. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com