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 1maNTD-0004UW-CM for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Oct 2021 19:29:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1maNTB-0006qx-Rx for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Oct 2021 19:29:49 +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 1maNTA-0006lR-3o for pgsql-hackers@lists.postgresql.org; Tue, 12 Oct 2021 19:29:49 +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 1maNT7-0008UG-Af for pgsql-hackers@postgresql.org; Tue, 12 Oct 2021 19:29:47 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 04F255C01EF; Tue, 12 Oct 2021 15:29:44 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 12 Oct 2021 15:29:44 -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:in-reply-to; s=fm2; bh=PT7ET55k52lC+mqgywySQnV/nNJ gwgZQCj9vM7f4tOs=; b=BXJB3cLRkp8lhMCiMMkl+6JDSYI+Rz2ExGPRAMTu9+5 R9E7/UvwKN/d6B0KlFflHdKL5oR+cB/1IOoWz0+9Zbkw3o5R9unMaRKDlRwkjflo 9UAYJbqkMPwD8rCM3k27K5k3aOYoA24WHBM+rbg9cUJ1Dxx0MiKzde9JgtMGoZxw ffh5F+vS1e+HVwzAs0oRraR1fpKyQdDabKcEiLtZ7HRDWZ7fhT1mbKKmJAsn9wQ9 roYyAU86OfMs7Td3n9G0KlP5Xsnl07HfSjVQTKKENrGZtVzU8ACIRSWIR/cF/trV U9T4d6vSenOCRdBzDY3DQD3Xu1HcKRY+UwKNU//dudw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=PT7ET5 5k52lC+mqgywySQnV/nNJgwgZQCj9vM7f4tOs=; b=eoCfkFmK/gVY42QUlUakcW JE6MboxCTriAspsDbb6hdUcOIKUN8+nyG8K1vz7LOBVWfqPJVPxuHmv36JLvn6Y5 pSQ+KXDPK01PMdrJlSaNR26UcsdhJ7pOVBXtvQhg2PQtVTlntb+Gzl0p+3MFrZDL e/b9r+hFUX77409tWDPbkz06ELCHWU2/6sgXTBmUgeWyW2J7uDBV1XuLPVm+AV/4 /bJ1eXGaui5+7Ib9uYetgyEdmEtvZqK+le7CxB9bKVyxTwMacc5GUA7B7nCxs4c0 E+MApKmy1AHzDoXm8Te/ruW3nKqcYwJkajhFZp4v746Zjaldh7j03YpA6aVpI6tg == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddtkedgudefgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepudekhfekleeugeevteehleffffejgeelueduleeffeeutdelffeujeff hfeuffdunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 12 Oct 2021 15:29:43 -0400 (EDT) Date: Tue, 12 Oct 2021 12:29:42 -0700 From: Andres Freund To: Andrew Dunstan Cc: pgsql-hackers@postgresql.org Subject: Re: [RFC] building postgres with meson Message-ID: <20211012192942.5chfraeix6qih6ke@alap3.anarazel.de> References: <20211012083721.hvixq4pnh2pixr3j@alap3.anarazel.de> <20211012165926.phrxn7vwx6ysfioj@alap3.anarazel.de> <20211012180934.b22v5nznbgtaoxyn@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2021-10-12 14:37:04 -0400, Andrew Dunstan wrote: > On 10/12/21 2:09 PM, Andres Freund wrote: > >> Hm. Yea, the perl thing is my fault - you should be able to get past it with > >> -Dperl=disabled, and I'll take a look at fixing the perl detection. (*) > > This is a weird one. I don't know much about msys, so it's probably related to > > that. Perl spits out /usr/lib/perl5/core_perl/ as its archlibexp. According to > > shell commands that exists, but not according to msys's own python > > > > $ /mingw64/bin/python -c "import os; p = '/usr/lib/perl5/core_perl/CORE'; print(f'does {p} exist:', os.path.exists(p))" > > does /usr/lib/perl5/core_perl/CORE exist: False > > > > $ ls -ld /usr/lib/perl5/core_perl/CORE > > drwxr-xr-x 1 anfreund anfreund 0 Oct 10 10:19 /usr/lib/perl5/core_perl/CORE > Looks to me like a python issue: > Clearly python is not understanding msys virtualized paths. Ah, it's a question of the *wrong* python being used :/. I somehow ended up with both a mingw and an msys python, with the mingw python taking preference over the msys one. The latter one does understand such paths. > > I guess I should figure out how to commandline install msys and add it to CI. > here's what I do: Thanks! Does that recipe get you to a build where ./configure --with-perl succeeds? I see this here: checking for Perl archlibexp... /usr/lib/perl5/core_perl checking for Perl privlibexp... /usr/share/perl5/core_perl checking for Perl useshrplib... true checking for CFLAGS recommended by Perl... -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -march=x86-64 -mtune=generic -O2 -pipe -fwrapv -fno-strict-aliasing -fstack-protector-strong checking for CFLAGS to compile embedded Perl... -DPERL_USE_SAFE_PUTENV checking for flags to link embedded Perl... no configure: error: could not determine flags for linking embedded Perl. This probably means that ExtUtils::Embed or ExtUtils::MakeMaker is not installed. If I just include perl.h from a test file with gcc using the above flags it fails to compile: $ echo '#include ' > test.c $ gcc -DPERL_USE_SAFE_PUTENV -U__STRICT_ANSI__ -D_GNU_SOURCE -march=x86-64 -mtune=generic -O2 -pipe -fwrapv -fno-strict-aliasing -fstack-protector-strong test.c -c -I /c/dev/msys64/usr/lib/perl5/core_perl/CORE In file included from test.c:1: C:/dev/msys64/usr/lib/perl5/core_perl/CORE/perl.h:1003:13: fatal error: sys/wait.h: No such file or directory 1003 | # include and ldopts bleats $ perl -MExtUtils::Embed -e ldopts Warning (mostly harmless): No library found for -lpthread Warning (mostly harmless): No library found for -ldl -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,--enable-auto-image-base -fstack-protector-strong -L/usr/lib/perl5/core_perl/CORE -lperl -lcrypt Greetings, Andres Freund