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 1maNGt-00047w-HI for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Oct 2021 19:17:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1maNGs-0008W8-5K for pgsql-hackers@arkaria.postgresql.org; Tue, 12 Oct 2021 19:17:06 +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 1maNGr-0008Nk-To for pgsql-hackers@lists.postgresql.org; Tue, 12 Oct 2021 19:17:05 +0000 Received: from relay8-d.mail.gandi.net ([217.70.183.201]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1maNGo-0008OL-Bg for pgsql-hackers@postgresql.org; Tue, 12 Oct 2021 19:17:04 +0000 Received: (Authenticated sender: adsend@dunslane.net) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 48A051BF203; Tue, 12 Oct 2021 19:16:57 +0000 (UTC) Subject: Re: [RFC] building postgres with meson From: Andrew Dunstan To: Andres Freund Cc: pgsql-hackers@postgresql.org References: <20211012083721.hvixq4pnh2pixr3j@alap3.anarazel.de> <20211012165926.phrxn7vwx6ysfioj@alap3.anarazel.de> <20211012180934.b22v5nznbgtaoxyn@alap3.anarazel.de> Message-ID: <87809c01-0e65-6c42-49e7-e8f2b02984f7@dunslane.net> Date: Tue, 12 Oct 2021 15:16:56 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/12/21 2:37 PM, Andrew Dunstan wrote: > On 10/12/21 2:09 PM, Andres Freund wrote: >> Hi, >> >> On 2021-10-12 09:59:26 -0700, Andres Freund wrote: >>> 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. (*) >> 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: > > > # perl -e 'my $p = "/usr/lib/perl5/core_perl/CORE"; print qq(does $p > exist: ), -e $p, qq{\n};' > does /usr/lib/perl5/core_perl/CORE exist: 1 > > # 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 > > # cygpath -m /usr/lib/perl5/core_perl/CORE > C:/tools/msys64/usr/lib/perl5/core_perl/CORE > > # python -c "import os; p = > 'C:/tools/msys64/usr/lib/perl5/core_perl/CORE'; print(f'does {p} > exist:', os.path.exists(p))" > does C:/tools/msys64/usr/lib/perl5/core_perl/CORE exist: True > > > Clearly python is not understanding msys virtualized paths. It's a matter of which python you use. The one that understands msys paths is msys/python. The mingw64 packages are normally pure native windows and so don't understand msys paths. I know it's confusing :-( # /usr/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: True cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com