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 1puHBJ-0007De-LT for pgsql-hackers@arkaria.postgresql.org; Wed, 03 May 2023 18:26:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1puHBI-0003D7-Hd for pgsql-hackers@arkaria.postgresql.org; Wed, 03 May 2023 18:26:24 +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 1puHBH-0003Cy-KD for pgsql-hackers@lists.postgresql.org; Wed, 03 May 2023 18:26:24 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1puHBE-000LZP-KU for pgsql-hackers@lists.postgresql.org; Wed, 03 May 2023 18:26:22 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 0C7BD32005C1; Wed, 3 May 2023 14:26:17 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 03 May 2023 14:26:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc: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=fm3; t=1683138377; x=1683224777; bh=PG HVBAkALptbylhQENcvo1NEve9wT8DXoo7oXHz361A=; b=nNept/YxEbt3WB0GI2 R2xaWvHlyalyYRRIi7c9CUUYCzvQYGrhcNU6/4ZcE9KjNLdiVonccrytC8IcXkfY 0AKEbxf6Fiiq9vSC6juEQtzpOb4gMYTvTXhSNEuubY16NTlVa/e8thj0+f0DxvhH kTmR+kPXjSDLABiK1HYXR1W4zkqa6UGUmoyIbVhY+wdj76tQTfgJhq2z6fVn+0qu SaW3Ge+RchI9sfhPyLWNkcjsMcM/iKTtfZsf/Nes3w0giL2EWs08EmJJvwBc9Fpv BEcgryVN/PuQ+SMnrl5gjfjyUGlSyvk0+FpMA+PN/2rsuf2riq/jvgDGFU8DUrRw +bow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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=fm3; t=1683138377; x=1683224777; bh=PGHVBAkALptby lhQENcvo1NEve9wT8DXoo7oXHz361A=; b=GXUC1v54UIuap32CKVbIKutDgMcVd EbleLFaVV20EIlJYmDVWMwi62vd/xLnxaN8SSiaMzc97UP4uUan59SpgcVcsDFFS Xo5IYFOyg58LehcQjCxmXZezdR4yBaXgAuMozxdjfqPHOZeCcIn7rm6m8Bq1ui8e KIZfJBIDF5C9kuO0gdY+3OV0ZDnLGo5wy+abTq2M9AxjkqVeBS2LEcMJn/mMlxLI RpAE4J3TIGexvy5SwH5cmWu0z3zYekCgiDDse1QobP3zvKVkpoPP7GBmNW6gV8tx 04zLZBq3LX8SQwTkkRvUPqWrxmr22tcZ6MO5IT8hZAe7hZNY0vH/Xfy2Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfedvkedguddvvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgu rhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtf frrghtthgvrhhnpedvffefvefhteevffegieetfefhtddvffejvefhueetgeeludehteev udeitedtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegrnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 3 May 2023 14:26:17 -0400 (EDT) Date: Wed, 3 May 2023 11:26:15 -0700 From: Andres Freund To: Andrew Dunstan Cc: Tom Lane , pgsql-hackers@lists.postgresql.org Subject: Re: issue with meson builds on msys2 Message-ID: <20230503182615.anh3al32dpgg4kox@awork3.anarazel.de> 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> <236c0354-62b1-0ae1-a252-4c866bc1c5d6@dunslane.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <236c0354-62b1-0ae1-a252-4c866bc1c5d6@dunslane.net> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-05-03 09:20:28 -0400, Andrew Dunstan wrote: > 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. Oh. Seems like something we need to dig into independent of meson then :( > 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. I seriously doubt that trying to support every possible packaging thing on windows is a good idea. What's the point of building against libraries from a packaging solution that doesn't even come with .lib files? Windows already is a massive pain to support for postgres, making it even more complicated / less predictable is a really bad idea. IMO, for windows, the path we should go down is to provide one documented way to build the dependencies (e.g. using vcpkg or conan, perhaps also supporting msys distributed libs), and define using something else to be unsupported (in the "we don't help you", not in the "we explicitly try to break things" sense). And it should be something that understands needing to build debug and non-debug libraries. Greetings, Andres Freund