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 1maL7n-0000Iu-Od for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Oct 2021 16:59:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1maL7m-0007Ya-NL for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Oct 2021 16:59:34 +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 1maL7l-0007YP-93 for pgsql-hackers@lists.postgresql.org; Tue, 12 Oct 2021 16:59:34 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1maL7j-0007CC-56 for pgsql-hackers@postgresql.org; Tue, 12 Oct 2021 16:59:32 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id D81F23201D41; Tue, 12 Oct 2021 12:59:28 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 12 Oct 2021 12:59:29 -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=eNkFSsdmCsCvLKSVZYlYU/Rb003 +vcy8RUBzjaAkSbk=; b=EXNhedmR/BF2u/kQs5123S58iDke5stUh5t980eYSHA Jd/v8eYA5aQ7zOwFV243zY3syg0k8KLa3vX6RlNzP/6JbIs7iAF878ri8qSIp9l8 xTZtQxQDub5Q809d0iX8lKfqKlttLYoofxMwR1hlxg1mhWvSqk2qF4+AylSRGye8 J/Odbl39W9PWj8r/rcIEUAUFoMRMY0+8FG+UunZqPtB6IThoQCpO69fef+adimPi lYDjyXKtITr0oDbmycB4AUpzP5yuoj94Nc/7FfKEnZCJrxADiAwVEUs4aS3+11SQ cZmUgzlO+uUNv8pEeTqw13605Q6uepBBnLeC7cUjwWA== 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=eNkFSs dmCsCvLKSVZYlYU/Rb003+vcy8RUBzjaAkSbk=; b=m5lQQaQ1RISS+IA+q1zXNu G/lHLLSc6ploFBxc0eCDtmsPkMtVnmr317V6sB5zO9iDaCmbkH7JiTLq4g6n4NmR PQ/eTxhRz8NUdeMmtJ9RvDQHfUzNhKcNFE5ryv+oCpr9i84SUL33HQvP4XEdbGPy yuLlgWCq5o08WPqraC+B3gtpAFaTNbjJj/tFx22tZDJRIGHvertsCJ/tnA4zd09a gE3qxvx39thLqw0H5iN3cVb5RroKADIsLWXvy3dGC4l3tp8+uNP+OpGc2rFE7/xu w2ntsTvrpq+2tFoQkF60jufxTKQPijG8oCHCTDcU5B+ClUnZwc/O3LqqL8iTvt7w == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddtkedguddtgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepudekhfekleeugeevteehleffffejgeelueduleeffeeutdelffeujeff hfeuffdunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh eprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 12 Oct 2021 12:59:27 -0400 (EDT) Date: Tue, 12 Oct 2021 09:59:26 -0700 From: Andres Freund To: Andrew Dunstan Cc: pgsql-hackers@postgresql.org Subject: Re: [RFC] building postgres with meson Message-ID: <20211012165926.phrxn7vwx6ysfioj@alap3.anarazel.de> References: <20211012083721.hvixq4pnh2pixr3j@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 11:50:03 -0400, Andrew Dunstan wrote: > It hung because it expected the compiler to be 'ccache cc'. Hanging in > such a case is kinda unforgivable. I remedied that by setting 'CC=gcc' > but it then errored out looking for perl libs. I think msys2 is going to > be a bit difficult here :-( 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. (*) I can't reproduce the hanging though. I needed to install bison, flex and ninja and disable perl as described above, but then it built just fine. It does seems to crash somewhere in the main regression tests though, I think I don't do the "set stack depth" dance correctly for msys. If you repro the hanging, what's the last bit in meson-logs/meson-log.txt? (*) I've for now made most dependencies autodetected, unless you pass --auto-features disabled to collectively disable all the auto-detected features. Initially I had mirrored the autoconf behaviour, but I got sick of forgetting to turn off readline or zlib on windows. And then it was useful to test on multiple operating systems... For working on windows meson's wraps are quite useful. I've not added that to the git branch, but if you manually do mkdir subprojects meson wrap install lz4 meson wrap install zlib building with -Dzlib=enabled -Dlz4=enabled will fall back to building lz4, zlib as-needed. I was wondering about adding a binary wrap for e.g. bison, flex on windows, so that the process of getting a build going isn't as arduous. Greetings, Andres Freund