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 1puCPN-0000M4-7Q for pgsql-hackers@arkaria.postgresql.org; Wed, 03 May 2023 13:20:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1puCPM-00053y-5Q for pgsql-hackers@arkaria.postgresql.org; Wed, 03 May 2023 13:20:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1puCPL-0004yy-Rq for pgsql-hackers@lists.postgresql.org; Wed, 03 May 2023 13:20:35 +0000 Received: from relay4-d.mail.gandi.net ([2001:4b98:dc4:8::224]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1puCPI-000LfI-Nm for pgsql-hackers@lists.postgresql.org; Wed, 03 May 2023 13:20:35 +0000 Received: (Authenticated sender: adsend@dunslane.net) by mail.gandi.net (Postfix) with ESMTPSA id AC1E6E0012; Wed, 3 May 2023 13:20:29 +0000 (UTC) Content-Type: multipart/alternative; boundary="------------RiKDcXqBsmhSdQzqoBJx5b2Q" Message-ID: <236c0354-62b1-0ae1-a252-4c866bc1c5d6@dunslane.net> Date: Wed, 3 May 2023 09:20:28 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: issue with meson builds on msys2 Content-Language: en-US To: Andres Freund Cc: Tom Lane , pgsql-hackers@lists.postgresql.org References: <08dd6053-deee-52e9-954b-eb69232905c9@dunslane.net> <2506819.1681761221@sss.pgh.pa.us> <7d7dcc20-ba19-5340-9be8-f255e8b42edc@dunslane.net> <20230420150652.jciazjap223iznjp@awork3.anarazel.de> <5bddd941-9819-6655-7a71-3f346050583e@dunslane.net> <6efeb45a-07f9-2291-c8f8-9fb4abbb6ebc@dunslane.net> <20230427221828.2qo7z4xb4f7islln@awork3.anarazel.de> From: Andrew Dunstan In-Reply-To: <20230427221828.2qo7z4xb4f7islln@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------RiKDcXqBsmhSdQzqoBJx5b2Q Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2023-04-27 Th 18:18, Andres Freund wrote: > Hi, > > On 2023-04-26 09:59:05 -0400, Andrew Dunstan wrote: >> Still running into this, and I am rather stumped. This is a blocker for >> buildfarm support for meson: >> >> Here's a simple illustration of the problem. If I do the identical test with >> a non-meson build there is no problem: > This happens 100% reproducible? For a sufficiently modern installation of msys2 (20230318 version) this is reproducible on autoconf builds as well. For now it's off my list of meson blockers. I will pursue the issue when I have time, but for now the IPC::Run workaround is sufficient. The main thing that's now an issue on Windows is support for various options like libxml2. I installed the libxml2 distro from the package manager scoop, generated .lib files for the libxml2 and libxslt DLLs, and was able to build with autoconf on msys2, and with our MSVC support, but not with meson in either case. It looks like we need to expand the logic in meson.build for a number of these, just as we have done for perl, python, openssl, ldap etc. cheers andrew -- Andrew Dunstan EDB:https://www.enterprisedb.com --------------RiKDcXqBsmhSdQzqoBJx5b2Q Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit


On 2023-04-27 Th 18:18, Andres Freund wrote:
Hi,

On 2023-04-26 09:59:05 -0400, Andrew Dunstan wrote:
Still running into this, and I am rather stumped. This is a blocker for
buildfarm support for meson:

Here's a simple illustration of the problem. If I do the identical test with
a non-meson build there is no problem:
This happens 100% reproducible?


For a sufficiently modern installation of msys2 (20230318 version) this is reproducible on autoconf builds as well.

For now it's off my list of meson blockers. I will pursue the issue when I have time, but for now the IPC::Run workaround is sufficient.

The main thing that's now an issue on Windows is support for various options like libxml2. I installed the libxml2 distro from the package manager scoop, generated .lib files for the libxml2 and libxslt DLLs, and was able to build with autoconf on msys2, and with our MSVC support, but not with meson in either case. It looks like we need to expand the logic in meson.build for a number of these, just as we have done for perl, python, openssl, ldap etc.


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com
--------------RiKDcXqBsmhSdQzqoBJx5b2Q--