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 1qlGSn-0020ki-Cp for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Sep 2023 22:23:29 +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 1qlGSl-00FhKD-6Y for pgsql-hackers@arkaria.postgresql.org; Tue, 26 Sep 2023 22:23:27 +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 1qlGSk-00FhJp-FH for pgsql-hackers@lists.postgresql.org; Tue, 26 Sep 2023 22:23:26 +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 1qlGSd-006ocV-Fx for pgsql-hackers@lists.postgresql.org; Tue, 26 Sep 2023 22:23:25 +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 38QMNIlx467043 for ; Tue, 26 Sep 2023 18:23:18 -0400 From: Tom Lane To: pgsql-hackers@lists.postgresql.org Subject: Annoying build warnings from latest Apple toolchain MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <467041.1695766998.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 26 Sep 2023 18:23:18 -0400 Message-ID: <467042.1695766998@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Since updating to Xcode 15.0, my macOS machines have been spitting a bunch of linker-generated warnings. There seems to be one instance of ld: warning: -multiply_defined is obsolete for each loadable module we link, and some program links complain ld: warning: ignoring duplicate libraries: '-lpgcommon', '-lpgport' You can see these in the build logs for both sifaka [1] and indri [2], so MacPorts isn't affecting it. I'd held out some hope that this was a transient problem due to the underlying OS still being Ventura, but I just updated another machine to shiny new Sonoma (14.0), and it's still doing it. Guess we gotta do something about it. We used to need "-multiply_defined suppress" to suppress other linker warnings. I tried removing that from the Makefile.shlib recipes for Darwin, and those complaints go away while no new ones appear, so that's good --- but I wonder whether slightly older toolchain versions will still want it. As for the duplicate libraries, yup guilty as charged, but I think we were doing that intentionally to satisfy some other old toolchains. I wonder whether removing the duplication will create new problems. regards, tom lane [1] https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=3Dsifaka= &dt=3D2023-09-26%2021%3A09%3A01&stg=3Dbuild [2] https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=3Dindri&= dt=3D2023-09-26%2021%3A42%3A17&stg=3Dbuild