Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gCmoh-0003k3-Ln for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Oct 2018 14:28:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gCmof-0004jl-Gi for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Oct 2018 14:28:53 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gCmof-0004je-9Z for pgsql-hackers@lists.postgresql.org; Wed, 17 Oct 2018 14:28:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gCmod-0000pE-9i for pgsql-hackers@lists.postgresql.org; Wed, 17 Oct 2018 14:28:52 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w9HESk1S030777; Wed, 17 Oct 2018 10:28:46 -0400 From: Tom Lane To: Jakob Egger cc: pgsql-hackers@lists.postgresql.org Subject: Re: PG vs macOS Mojave In-reply-to: <5BE313A1-1318-4A68-A183-5F60CA968CF1@eggerapps.at> References: <20840.1537850987@sss.pgh.pa.us> <29535.1539698523@sss.pgh.pa.us> <486.1539702831@sss.pgh.pa.us> <5BE313A1-1318-4A68-A183-5F60CA968CF1@eggerapps.at> Comments: In-reply-to Jakob Egger message dated "Wed, 17 Oct 2018 14:11:04 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30775.1539786526.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 17 Oct 2018 10:28:46 -0400 Message-ID: <30776.1539786526@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Jakob Egger writes: > Am 16. Okt. 2018 um 17:13 schrieb Tom Lane : >> Oh, well *this* is interesting. I stated at the top of this thread tha= t >> pltcl doesn't build on Mojave without -isysroot because TCL_INCLUDE_SPE= C >> gets set to >> -iwithsysroot /System/Library/Frameworks/Tcl.framework/Versions/8.5/Hea= ders >> Now, I would swear that I tested that before, and it didn't work; >> but I think I might have been testing the combination of Xcode 10 on >> High Sierra. It definitely works with Xcode 10 on Mojave. I no longer >> have a High Sierra installation to recheck the original observation on. > I realised that I can disable PG_SYSROOT by providing a non-existing dir= name, > so I've done some testing to try to reproduce your original issue. Thanks for looking into it! > On macOS 10.13 the following worked fine both for Xcode 9 and 10: > PG_SYSROOT=3Dno-sysroot ./configure --with-tcl > On macOS 10.14 the above failed because it didn't find tclConfig.sh. Yeah, the problem of not finding tclConfig.sh is definitely the first stumbling block for a non-sysroot-aware build. What's not clear to me now is whether the second stumbling block, finding tcl.h, is an issue. > The following did work: > PG_SYSROOT=3Dno-sysroot ./configure --with-tcl --with-tclconfig=3D/Appli= cations/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/S= DKs/MacOSX.sdk/System/Library/Frameworks/Tcl.framework Yeah, that agrees with the results I'm getting now. Evidently Apple's compiler has some obscure search path rules that let it find tcl.h despite not being explicitly told what sysroot to use. But I have a moderately clear recollection of getting "could not find tcl.h" configure failures once I'd worked past the tclConfig.sh part. Weird. It's also very odd, if the compiler will search the sysroot automatically, why that seemingly works for tcl.h but not perl.h. plperl definitely still fails if you lobotomize the PG_SYSROOT logic. > Is it possible that you were using a different compiler that made the -i= sysroot setting necessary? Nope, definitely using Apple's clang --- don't have anything else installed. > In any case, I'm pretty sure that your patch should fix my problem with = building extensions. OK. I've pushed that now, it will be in November's point releases. regards, tom lane