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 1mb4VC-0005yh-QG for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Oct 2021 17:26:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mb4VB-0003FY-Op for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Oct 2021 17:26:45 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mb4VB-0003FP-GT for pgsql-hackers@lists.postgresql.org; Thu, 14 Oct 2021 17:26:45 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mb4V8-0005Kt-BS for pgsql-hackers@postgresql.org; Thu, 14 Oct 2021 17:26:44 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 4118C5C00C9; Thu, 14 Oct 2021 13:26:40 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 14 Oct 2021 13:26:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:content-transfer-encoding:in-reply-to; s=fm2; bh=f TpSejV3d5V5Yf/dY0oqySDmbZAI+/RL9vX/TJmfC8M=; b=woS3TRLio+esIx268 KgmIxODBMNCSvKoW9ov3xkxwAiuhmC6BQ95IG8prULKr5yP/GgLRDMpwqKFAUdjv ZWQyBHVKMB3Ny3dljVWQg97DC6I8UN0xopQVwfFK3jcGofjUXn8mf7TziGGJJ6bt T0jQnlNagObv1KzYPSp1z2lnIcjaBA8gjwCVnodClb1nmWMuiYWOL+PCWqEeMRw8 V9mmVQHXoxEJO6klDf8SgJ9xAJ2NuXLdkn3yT6ngvGJ8GUdO3P8ih9DeCYxygxKh fRRCo3onU1nL1JdTbMvz32YEUaHZqXFW/e7hDeUAJNKAavkK7uccmP2UCeOAR6j8 UyXMw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=fTpSejV3d5V5Yf/dY0oqySDmbZAI+/RL9vX/TJmfC 8M=; b=LHS+p5muIZwTzY9ywdDldCbKtweE/oUG61PBTps39FNpb9/18JAbeI4dO 6m9NCX9y2dmp8gux4ZvzQz4jBodslUMF9FzDwEAtjaWetJ2XBZH4Yf08alyZRq0O fBIbw+p9R5sA5og/voHUe7QcwvktI0Wuxw002nM497Ikmhhkr61sN5jap2LrIOzJ UyPxxi1SUHAsFV/82B+7mOyWfVcHTCfChD0ysaCngBu3BtT6tDQT5RsVJnG9Fox2 AsKz0wd5ucVzQNcSXp4fgSzzLqltc8jikQPGRNqc9Z0kso5qHa57UW+FzChKrVdX 37mGgK/SoR6luQS+wQyzfAK/9a9Dw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdduvddguddutdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetnhgu rhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtf frrghtthgvrhhnpeehtedtvddugeettdeliedtteeffeetteevuedvudekjeethffgteeh jeetffdugeenucffohhmrghinhepphgrshhtvggsihhnrdgtohhmnecuvehluhhsthgvrh fuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghnughrvghssegrnhgrrhgr iigvlhdruggv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 14 Oct 2021 13:26:39 -0400 (EDT) Date: Thu, 14 Oct 2021 10:26:38 -0700 From: Andres Freund To: Josef =?utf-8?B?xaBpbcOhbmVr?= Cc: Pg Hackers Subject: Re: [RFC] building postgres with meson Message-ID: <20211014172638.2s2yskaag3g7nvxe@alap3.anarazel.de> References: <20211012083721.hvixq4pnh2pixr3j@alap3.anarazel.de> <20211012171734.v6njkirzk5e7a6yt@alap3.anarazel.de> <20211012235435.ozcmsvosdziala7f@alap3.anarazel.de> 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 2021-10-13 23:58:12 +0200, Josef Šimánek wrote: > st 13. 10. 2021 v 1:54 odesílatel Andres Freund napsal: > > This *very* likely is related to building in a source tree that also contains > > a "non-meson" build "in place". The problem is that the meson build picks up > > the pg_config.h generated by ./configure in the "normal" build, rather than > > the one meson generated itself. > > > > You'd need to execute make distclean or such, or use a separate git checkout. > > > > I forgot about this issue because I only ever build postgres from outside the > > source-tree (by invoking configure from a separate directory), so there's > > never build products in it. I think at least I need to make the build emit a > > warning / error if there's a pg_config.h in the source tree... > > Hello, thanks for the hint. I can finally build using meson and run > regress tests. I yesterday pushed code that should detect this case (with an error). Should now detect the situation both when you first run configure in tree, and then meson, and the other way round (by the dirty hack of ./configure touch'ing meson.build at the end for in-tree builds). > The only problem I do have currently is auto-detection of perl. I'm > getting error related to missing "Opcode.pm". PERL is autodetected and > enabled (https://pastebin.com/xfRRrDcU). > > I do get the same error when I enforce perl for current master build > (./configure --with-perl). Using ./configure with perl autodetection > skips plperl extension on my system. > > Disabling perl manually for meson build (meson setup build > --reconfigure --buildtype debug -Dperl=disabled) works for me. Yay, thanks for testing! Greetings, Andres Freund