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 1oWt25-0007VX-4b for pgsql-committers@arkaria.postgresql.org; Sat, 10 Sep 2022 05:27:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oWt23-0004zb-F7 for pgsql-committers@arkaria.postgresql.org; Sat, 10 Sep 2022 05:27:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWt21-0004zR-K1 for pgsql-committers@lists.postgresql.org; Sat, 10 Sep 2022 05:27:55 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oWt1u-0000H3-HR for pgsql-committers@lists.postgresql.org; Sat, 10 Sep 2022 05:27:50 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D1C065C00AF; Sat, 10 Sep 2022 01:27:42 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 10 Sep 2022 01:27:42 -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=1662787662; x=1662874062; bh=HwazKee+Yv 8iq+bbvlf59G6snfAnat3jmO9rkJ0ZwSo=; b=q9iBnQsByrsHo+ssr2CNmNY1Cc R7ZMaPAqpxi2LFK1b4sQIeN9qESNnUBGZTf8u8NzLL4a90Z+AbTR7NQW945kVcX3 7b38bXToLyZwJ7tS6+YEjdBJEQBj8JQ8qJfU/aH3Gy8koYVWhD5cDxktR4294ayc jEz9Jpc2JgpY1veeHUD8e2wHRHzRxkKiNluOtjIU0jJUrKsyrSodg9xpHbw9Jrk7 n8nW7geu/6WMTN4agXuQtoc9hpaT3qONFyaf3q0XlwOekJnKxdjGhBRx6VZO9D72 3zpXm/tl+6BhpbXxOXZlhZCZAS46OosLMFyf8NDVbvdrd0tPSD9WITt+sngg== 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=1662787662; x=1662874062; bh=HwazKee+Yv8iq+bbvlf59G6snfAn at3jmO9rkJ0ZwSo=; b=FdEdmX1Cjmv6Q1xayTktjzMl+i+c3mL7Lx1YQiKAJgvd 2rlmqb+fV14T7QTI+gnsaxgJn2m/ON25asZmWDfxaL1AObV156vDE7qth0TVHFPU IFSmjyUw6PI4M/IUAjcxfTP6V0B2ZzW1yTHBy7MlVD5o/eokOnLIHrMXyCVLW1Ao IIdnw1e2XbsQy0ptqJG7kLhIeylQOntC79wdK1ePoqYD54wHdcwPmXidfne32Fi4 inP03xNpVhWtPXbfPKZP8o7KmTWK4OgoA3X2cjhMZQC8vcbqt0SpxDX/VwLoWHsN 1Qt/hQmc/0QVqCepDypFqhll1E6xYSVFZOooCRk1xA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfedtiedgleekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepueekjeegvdelgefggeehveefvdetveffhfeiveehleejkefhudeigfet geeggeejnecuffhomhgrihhnpehpohhsthhgrhgvshhqlhdrohhrghdpphhoshhtghhrrd gvshenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegr nhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 10 Sep 2022 01:27:42 -0400 (EDT) Date: Fri, 9 Sep 2022 22:27:41 -0700 From: Andres Freund To: Tom Lane , Noah Misch Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: aix: No need to use mkldexport when we want to export all symbol Message-ID: <20220910052741.t7w7csyrggwus2ze@awork3.anarazel.de> References: <325593.1662783266@sss.pgh.pa.us> <89D645BA-FF97-4516-A21D-9FC4A4B31F8C@anarazel.de> <20220910043749.koidc5k4j5dxo3if@awork3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220910043749.koidc5k4j5dxo3if@awork3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2022-09-09 21:37:49 -0700, Andres Freund wrote: > On 2022-09-09 21:16:38 -0700, Andres Freund wrote: > > On September 9, 2022 9:14:26 PM PDT, Tom Lane wrote: > > >Andres Freund writes: > > >> aix: No need to use mkldexport when we want to export all symbols > > > > > >hmm, early returns not good: > > > > > >https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=hoverfly&dt=2022-09-10%2003%3A31%3A29 > > > > > >The backend seems to build OK, but our first try to make a .so > > >falls over: > > > > > >ld: 0711-244 ERROR: No csects or exported symbols have been saved. > > >../../../../../../src/Makefile.shlib:279: recipe for target 'cyrillic_and_mic.so' failed > > >gmake[3]: *** [cyrillic_and_mic.so] Error 8 > > > > I'd tested that maybe two weeks ago, so I'm a bit surprised. I'll try to reproduce. > > A basic build with xlc 16.1 still succeeds building world-bin. Including > obviously cyrillic_and_mic.so > > ../configure PERL=perl64 --cache ../config-ac-xlc.cache --with-perl CC=/opt/IBM/xlc/16.1.0/bin/xlc_r CFLAGS="-qmaxmem=33554432 -qsuppress=1500-010:1506-995 -qsuppress=1506-010:1506-416:1506-450:1506-480:1506-481:1506-492:1506-944:1506-1264 -qinfo=all:nocnd:noeff:noext:nogot:noini:noord:nopar:noppc:norea:nouni:nouse -qinfo=nounset" > > with OBJECT_MODE=64 previously set. > > I'll try a build closer to Noah's configure options. Most likely candidate > seems --enable-debug. Hm. In a new tree it doesn't work with HEAD. But it did previously survive a gmake clean && gmake world-bin. I don't see why the configure cache or existing buildtree should play a role here, given a make clean? Either way, the symbol visibility patch from https://postgr.es/m/20220901211935.k6v7mt3mjhnfbhnr%40awork3.anarazel.de repairs the build, even with a new build tree. Looking at that patch I don't like this bit overly much: +if test -n "${CFLAGS_SL_MODULE}"; then + AC_DEFINE([HAVE_VISIBILITY_ATTRIBUTE], 1, + [Define to 1 if your compiler knows the visibility("hidden") attribute.]) +fi Seems too fragile, somebody could test for another attribute to add to CFLAGS_SL_MODULE and it'd break. I'm inclined to just set a pgac_have_visibility_attr in the two branches and set it from pgac_cv_prog_CC_cflags__fvisibility_hidden pgac_cv_prog_CC_cflags__qvisibility_hidden ? It seem worth applying the -qvisibility patch and seeing whether that fixes the buildfarm? I guess alternatively we could revert the mkldexport patch, apply the -qvisibility patch and then apply the mkldexport thing again afterwards? Greetings, Andres Freund