Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlbXZ-003Yzm-JQ for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Sep 2023 20:53:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qlbWZ-005pia-Hg for pgsql-hackers@arkaria.postgresql.org; Wed, 27 Sep 2023 20:52:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlbWZ-005piE-7J for pgsql-hackers@lists.postgresql.org; Wed, 27 Sep 2023 20:52:47 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlbWW-006zhr-Vx for pgsql-hackers@lists.postgresql.org; Wed, 27 Sep 2023 20:52:46 +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 38RKqimE687189 for ; Wed, 27 Sep 2023 16:52:44 -0400 From: Tom Lane To: pgsql-hackers@lists.postgresql.org Subject: Re: Annoying build warnings from latest Apple toolchain In-reply-to: <673900.1695841549@sss.pgh.pa.us> References: <467042.1695766998@sss.pgh.pa.us> <673900.1695841549@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 27 Sep 2023 15:05:49 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <687187.1695847964.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 27 Sep 2023 16:52:44 -0400 Message-ID: <687188.1695847964@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk I wrote: > I've not yet looked at the meson build infrastructure to > see if it needs a corresponding change. I think it doesn't, as long as all the relevant build targets write their dependencies with "frontend_code" before "libpq". (The need for this is, of course, documented nowhere. The state of the documentation for our meson build system is abysmal.) However, it's hard to test this, because the meson build seems completely broken on current macOS: ----- $ meson setup build --prefix=3D$HOME/pginstall The Meson build system Version: 0.64.1 Source dir: /Users/tgl/pgsql Build dir: /Users/tgl/pgsql/build Build type: native build Project name: postgresql Project version: 17devel meson.build:9:0: ERROR: Unable to detect linker for compiler `cc -Wl,--ver= sion` stdout: = stderr: ld: unknown options: --version = clang: error: linker command failed with exit code 1 (use -v to see invoca= tion) A full log can be found at /Users/tgl/pgsql/build/meson-logs/meson-log.txt ----- That log file offers no more detail than the terminal output did. (I also tried with a more recent meson version, 1.1.1, with the same result.) regards, tom lane