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 1qWjyL-004DUr-Ab for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Aug 2023 20:52:02 +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 1qWjyJ-004QTI-2T for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Aug 2023 20:51:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qWjyH-004QTA-BL for pgsql-hackers@lists.postgresql.org; Thu, 17 Aug 2023 20:51:58 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qWjy8-000jDs-1B for pgsql-hackers@lists.postgresql.org; Thu, 17 Aug 2023 20:51:56 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 7A2835C0004; Thu, 17 Aug 2023 16:51:45 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 17 Aug 2023 16:51:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm1; t= 1692305505; x=1692391905; bh=btXYTexK91v3ocfAr+f3W7aH0vOT9/A+rHW M12pzIPE=; b=ICpg+/Gh1kKyY4PQntsQyX2otRtJGaJ/3Czqxo2isSwsQY5Vfs9 gAX4aWhBugM8Fa8iUuzCTI8+z6JBYdSAhkp30g0JT61/BduBNlstcCylv38qiVvn hdwh6WiAsS7H183oCTY2NN+ag2eOd5iNSldSCUx0DdLOoRmAUfZ7lZLXZEaNVItZ VqVB81Oka8kvaR2ZiFO/EDvbNTW6zhDDbi413YYjuTtVuwwYFrhc/XPx0d27xY6Q HFHcMp3a3MArRWO18Ro2c8eylZINEU0h+VgHabxDmNRxa28niGnWHAVCVlJuCjp4 7kJcZvK/DRJIZcCUg+FOG6w8jeW1nNUUZDA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1692305505; x=1692391905; bh=btXYTexK91v3ocfAr+f3W7aH0vOT9/A+rHW M12pzIPE=; b=kPMXjDl0aj3CEICjXFafIYd2G2R1nO5CfIGDG/PJJD+jr+WOJmF koTDHim/oh8CKW/OGuhk+J88ut6ly2NhVZFd+iESkqkWqTxqu9DYOq2R4fx2IEfI 0PqBdt8o8/jnemeNcCQBCItvkKSwyr7voZ0AF4maAMi6kBofjXhdCrhVYIFWQoTL HSaIXsHF3gexITnqve7CVBc1FrUGX7Wuz1Lk6HbA2oCUvsG8GRJILDyBZXCHU6ov u0fAMDN8Y5VKHku0olFcgRZpli1mpxjdMcIQfZLD9Tos10RYD+zkseCTK+Kn9rFc Y879edWoZx27X+OtKXcK+32x5I+oBD8S9aw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrudduuddgudehhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtugfgjgesthekredttddtjeenucfhrhhomheptehn ughrvghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecugg ftrfgrthhtvghrnhepudeufeejhefffeetieelgfffhefhvdegvdevhfdvtdevieffudeg hfekledvtddunecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghenucevlhhush htvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghn rghrrgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 17 Aug 2023 16:51:44 -0400 (EDT) Date: Thu, 17 Aug 2023 13:51:42 -0700 From: Andres Freund To: Tristan Partin Cc: Andrew Dunstan , PostgreSQL Hackers Subject: Re: meson: pgxs Makefile.global differences Message-ID: <20230817205142.lkinsfndjabpdejv@alap3.anarazel.de> References: <61d629b6-d5ad-a49e-e905-b66d3ac4903a@dunslane.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-08-17 14:45:54 -0500, Tristan Partin wrote: > On Thu Aug 17, 2023 at 2:32 PM CDT, Andrew Dunstan wrote: > > I started digging into a warning I noticed on my FDW builds where > > Postgres is built with meson, e.g. > > which has this: > > > > cc1: warning: ‘-Wformat-security’ ignored without ‘-Wformat’ > > [-Wformat-security] > > > > I found that the pgxs Makefile.global built under meson is a bit > > different. On debug builds for both this is what I get on HEAD (meson) > > and REL_15_STABLE (autoconf), stripped of the current components: I assume "current" means the flags that are present in both cases? > >          HEAD: CFLAGS =-Wshadow=compatible-local > > REL_15_STABLE: CFLAGS =-Wall  -g > > > > The warning is apparently due to the missing -Wall. > > > > Shouldn't we be aiming for pretty much identical settings? The difference for -Wshadow=compatible-local is due to changes between 15 and HEAD. We're indeed not adding -Wall right now (the warning level is handled by meson, so it doesn't show up in our cflags right now). > I agree that they should be identical. The meson bild should definitely be > aiming for 100% compatibility for the Makefile.global. I don't think that's feasible. It was a fair bit of work to get the most important contents to match, while skipping lots of things that are primarily relevant for building the server (which isn't relevant for pgxs). That said, in this specific case, I agree, we should likely emit -Wall to Makefile.global in meson as well. Greetings, Andres Freund PS: I don't have andres@anarazel.dev , just .de :)