Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X6hiW-0001zR-GR for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Jul 2014 14:59:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X6hiW-00048d-08 for pgsql-bugs@arkaria.postgresql.org; Mon, 14 Jul 2014 14:59:00 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X6hiU-00045K-5x for pgsql-bugs@postgresql.org; Mon, 14 Jul 2014 14:58:58 +0000 Received: from mgate01.schulergroup.com ([212.87.143.250]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1X6hiQ-0002R8-3z for pgsql-bugs@postgresql.org; Mon, 14 Jul 2014 14:58:55 +0000 X-IronPort-AV: E=Sophos;i="5.01,659,1400018400"; d="scan'208";a="6568325" Received: from ifw.schulergroup.com ([212.87.143.254]) by mgate01.schulergroup.com with ESMTP; 14 Jul 2014 16:58:50 +0200 Received: from saturn.schuler.de (saturn.schuler.de [153.3.1.198]) by ifw.schulergroup.com (Postfix) with ESMTP id B7E01D030382; Mon, 14 Jul 2014 16:58:50 +0200 (CEST) Received: from [153.3.21.70] (rt01.schuler.de [153.3.21.70]) by saturn.schuler.de (8.12.11.20060308/8.12.7/SuSE Linux 0.6) with ESMTP id s6EEworN029107; Mon, 14 Jul 2014 16:58:50 +0200 Message-ID: <53C3F02F.3060808@spg.schulergroup.com> Date: Mon, 14 Jul 2014 16:58:55 +0200 From: Rainer Tammer Organization: Schuler Pressen GmbH & Co. KG User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.3) Gecko/20070326 Thunderbird/2.0.0.0 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: Tom Lane , "Lars Ewald (web.de)" Cc: pgsql-bugs@postgresql.org Subject: Re: Compile fails on AIX 6.1 References: <2091578163.108431.1405003056556.open-xchange@oxbaltgw07.schlund.de> <22620.1405021301@sss.pgh.pa.us> <862279328.128417.1405069058259.open-xchange@oxbaltgw03.schlund.de> <2650.1405090558@sss.pgh.pa.us> In-Reply-To: <2650.1405090558@sss.pgh.pa.us> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hello, Even the Power 8 does run as CHAP. The discontinued platform was PREP and MCA. CHRP = Common H/W Reference Platform This is from the PowerVM server part of a S824 / 24 core / 192 threads / 1TB memory. OS has 8 PowerPC_POWER8 (64 bit) CPUs with 8 CPUs active SMT=4 CPU Speed 4116.0 MHz SerialNumber=213B6EV MachineType=IBM,8286-42A Logical partition=Dynamic HMC-LPAR-Number&Name=1,p8srv01vio1 Virtual I/O Server Version=2.2.3.3 Kernel=64 bit Multi-Processor Power Saving=Static Hardware-Type(NIM)=CHRP=Common H/W Reference Platform Bus-Type=PCI CPU Architecture =PowerPC Implementation=POWER7_COMPAT_mode SubProcessor Mode CPU Level 1 Cache is Combined Instruction=32768 bytes & Data=65536 bytes Level 2 Cache size=524288 Node=p8srv01vio1 Bye Rainer On 11.07.2014 16:55, Tom Lane wrote: > [ please keep the mailing list cc'd ] > > "Lars Ewald (web.de)" writes: >> Thank you for answering very fast. >>> PPC what exactly? >> chrp with 64-bit. >> MACHINE_ARCHITECTURE: chrp >> HARDWARE_BITMODE: 64 >> Do you need further information regarding the system? > Yes, please; CHRP is pretty non-specific as regards the processor > generation. However, it's probably *old* since CHRP wasn't too > successful according to Wikipedia. If the CPU predates POWER6 or > thereabouts, then lack of LWARX hint support in the assembler > wouldn't be surprising. > > Still, configure should have caught that. Does configure end up > defining HAVE_PPC_LWARX_MUTEX_HINT in src/include/pg_config.h? > > Hmm ... looking at s_lock.h some more, I wonder if maybe it's > LWSYNC and not LWARX that's causing the problem. We currently > set USE_PPC_LWSYNC for any PPC64 build (see pg_config_manual.h). > IIRC we knew that there were a few machines for which that heuristic > would fail, but we didn't think anybody would be using Postgres > on them. > > Assuming that HAVE_PPC_LWARX_MUTEX_HINT is *not* getting set, > I'd suggest commenting out the #define for USE_PPC_LWSYNC in > pg_config_manual.h and see if it gets better. If that is the > answer then I guess we will need a configure-time test for lwsync > support after all. > >>> I think the odds are pretty high that the problem here is that we tried to >>> use the "mutex hint" option in our PPC spinlock assembly code, and the >>> system's assembler doesn't recognize that. >> Would it help to use another compiler, e.g. XL C? > It'd be worth trying if you have another one at hand, but it's > hard to say what the results would be. > > Note that there's a question here not only as to whether it will > build, but whether it will run on your hardware. I'd definitely > try "make check" before believing that you have a working build. > >>> However, we only try to use that option after the configure script has >>> confirmed that the syntax is >>> accepted, so it's not real clear how you got this result. Perhaps you >>> tried to change compilers without redoing the configure run? >> No. I did not change the compiler. By the way, I always run "make clean" and >> then re"configure" >> to recompile the code. > That might be good enough, but personally I always do "make distclean" > before reconfiguring. > > regards, tom lane > > -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs