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 1oY09L-0005hA-VI for pgsql-committers@arkaria.postgresql.org; Tue, 13 Sep 2022 07:16:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oY09K-0003L7-QD for pgsql-committers@arkaria.postgresql.org; Tue, 13 Sep 2022 07:16:02 +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 1oY09J-0003Kk-QQ for pgsql-committers@lists.postgresql.org; Tue, 13 Sep 2022 07:16:02 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oY09G-0000x7-P4 for pgsql-committers@lists.postgresql.org; Tue, 13 Sep 2022 07:16:00 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 858303200495; Tue, 13 Sep 2022 03:15:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Tue, 13 Sep 2022 03:15:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc: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=fm2; t=1663053357; x=1663139757; bh=ApuV/labGQ ljI1UQtohExsQQ+keny39Td0u9BKYOfSA=; b=C3k1gJHOKcajU1/NeBl4Md4U1b mg4ES+HLPitaHxXPrUf2zv0yyB/0wuk2kvMZZur+wer24xOBwRm3y6GaJh0Bexpy WWSn0FxgETro7Uqa0NGbUSIBefjjquiQyHdDINQ3ligEqJV1XSgl1JF4EM17Y6cS q8CUBGeEpC16vCCOwFpSxQYpu0oOtrdZN7NwFgc8evL7negGFW+WckwNlNnJluyi E/bbnOPfc60k5/JQl+M5dABbYvMt+SkWtr9awukG7Wrs1UbadSozYzuxusFXrfC9 jwIuz1DJ2iyS1GtNvc1jicRODg2labZmvGF3xN65CjGolfSxwbETj95cLaXQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc: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= fm2; t=1663053357; x=1663139757; bh=ApuV/labGQljI1UQtohExsQQ+ken y39Td0u9BKYOfSA=; b=0Kpc2Gj2bL4VWzkYA2L0Iz8zKDins9dFyxZ96c0OtQxA p9lNS9LEiafJLMl92A9yaR9ExhwjPS+Mrg+HeUSKDmvdV1+8pc08wEd49FtGIHMj eMPeOzwl+zkjo/V7H+KvfBgD+FEcyZpYWk0Su5SHxV/7KuMaRzpdBR0qvBzo/AtO wrcgYyo7fQ/ScEtuwemKXcR3ojD3lTJQ9nnCZxTJ+RGrSZNFJA3OAl04zJ9Wh4M8 fsYiJ8QXwf9TPZCzB0m4ZW3SkBFrU/bP3UmSlU0PNx4OIKuEMY5B398FNu2HFzK/ r0KNp/P6znmdzXiJtHz01ebbPJtTCppY0Feevz9/dQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedufedguddulecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgu rhgvshcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtf frrghtthgvrhhnpedvffefvefhteevffegieetfefhtddvffejvefhueetgeeludehteev udeitedtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhroh hmpegrnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 13 Sep 2022 03:15:56 -0400 (EDT) Date: Tue, 13 Sep 2022 00:15:55 -0700 From: Andres Freund To: Noah Misch Cc: Tom Lane , pgsql-committers@lists.postgresql.org Subject: Re: pgsql: aix: No need to use mkldexport when we want to export all symbol Message-ID: <20220913071555.cgysepuledfpxxee@awork3.anarazel.de> References: <89D645BA-FF97-4516-A21D-9FC4A4B31F8C@anarazel.de> <20220910043749.koidc5k4j5dxo3if@awork3.anarazel.de> <20220910052741.t7w7csyrggwus2ze@awork3.anarazel.de> <338810.1662787972@sss.pgh.pa.us> <20220910055736.htsr5juo3ldlay2l@awork3.anarazel.de> <20220910081944.oiayp5lky3kv2o43@awork3.anarazel.de> <20220911181925.ygxbync3uk5ezcic@awork3.anarazel.de> <20220913033845.GA1439680@rfd.leadboat.com> <20220913061123.mxae5udw6ix2op7v@awork3.anarazel.de> <20220913063904.GB1439680@rfd.leadboat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220913063904.GB1439680@rfd.leadboat.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2022-09-12 23:39:04 -0700, Noah Misch wrote: > On Mon, Sep 12, 2022 at 11:11:23PM -0700, Andres Freund wrote: > > On 2022-09-12 20:38:45 -0700, Noah Misch wrote: > > > On Sun, Sep 11, 2022 at 11:19:25AM -0700, Andres Freund wrote: > > > Both runs had the latest commits discussed above. tern (gcc32) passed, but it > > > doesn't use --with-perl. > > > > I'll check it out tomorrow. I configured perl on the other AIX gcc compile > > farm machine building 64bit with both gcc and xlc, IIRC. I can't check rn, > > they seem to be down? > > They're up. Yep, seems to have been temporary. > > What is "perl64-for-gcc"? > > === > #! /bin/sh > > real_perl=perl64 > > case $* in > '-MExtUtils::Embed -e ldopts' | \ > '-MConfig -e print $Config{ccdlflags}') > $real_perl "$@" | sed 's/-b/-Wl,-b/g' ;; > *) > exec $real_perl "$@" ;; > esac > === I guess that defeats our plperl flags logic - the wrapper shouldn't be needed anymore today, see my parallel message about the problem likely being caused by -Wl,-bE:. > > > > > -qvisibility option specifies visibility attributes for entities. Entity > > > > > visibility attributes describe whether and how entities defined in one > > > > > module can be referenced or used in other modules. Visibility attributes > > > > > affect entities with external linkage only, and cannot increase the > > > > > visibility of other entities. > > > > > > > > > > > > Since xlc 13.1 supports all still supported AIX versions I'm inclined to think > > > > we should increase our requirement to 13.1 rather than revert back to the > > > > higher complexity way of building modules. > > > > > > Perhaps. That would demolish two buildfarm members. > > > > Or you could update them to a slightly newer xlc? IIRC the machine has 13.x > > available? > > I don't see 13.x, but I might not know where to look. Looks like it's not available on gcc111, just on gcc119, there it's at /opt/IBM/xlc/13.1.3/bin/xlc > > > What does PostgreSQL lose if you revert fe6a64a? > > > > A somewhat readable Makefile.shlib. The prior state is complicated, specific > > to AIX. I've several times spent quite a bit of time understanding it - not > > helped by the complete lack of comments. It's not frequent enough to stay in > > my brain unfortunately, so I'll have to relearn it again next time. And we'll > > need to continue supporting Makefile.shlib for quite a while, so ... > > I'm voting for a revert, then. Code beautification is nice when it just > works, but desupporting this compiler to land this particular code > beautification makes the net value go negative for me. I can understand your > feeling differently based on your recent experiences. IMO this more than just a beautification - the difference is functional in nature. I'd agree if it just were a reformating or such, but this isn't that. I just tested, and with the mlkdexport.sh approach we end up with all symbols exported (-fvisibility=hidden) in extension .so's - AIX will be the only platform unable to restrict symbol exports. That's bound to lead to problems we'll only have on AIX. The more special-case-y some platform is, the higher the cost of supporting it is. I'm somewhat ok with supporting niche stuff, but then the people desiring that support also need to do the work of making that bearable for everyone else. Greetings, Andres Freund