Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X7Ph2-00051c-4R for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Jul 2014 13:56:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X7Ph1-0001Yx-51 for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Jul 2014 13:56:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X7Pgy-0001Yn-VV for pgsql-bugs@postgresql.org; Wed, 16 Jul 2014 13:56:21 +0000 Received: from mgate01.schulergroup.com ([212.87.143.250]) by magus.postgresql.org with esmtps (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1X7Pgq-0006qm-L1 for pgsql-bugs@postgresql.org; Wed, 16 Jul 2014 13:56:19 +0000 X-IronPort-AV: E=Sophos;i="5.01,672,1400018400"; d="scan'208,217";a="6607631" Received: from ifw.schulergroup.com ([212.87.143.254]) by mgate01.schulergroup.com with ESMTP; 16 Jul 2014 15:56:10 +0200 Received: from saturn.schuler.de (saturn.schuler.de [153.3.1.198]) by ifw.schulergroup.com (Postfix) with ESMTP id 75F47D03038B; Wed, 16 Jul 2014 15:56:10 +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 s6GDuA6I017454; Wed, 16 Jul 2014 15:56:10 +0200 Message-ID: <53C68482.1080306@spg.schulergroup.com> Date: Wed, 16 Jul 2014 15:56:18 +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: "Lars Ewald (web.de)" , pgsql-bugs@postgresql.org Cc: Tom Lane Subject: Re: Fwd: Re: Compile fails on AIX 6.1 References: <1823346352.314711.1405443099463.open-xchange@oxbaltgw55.schlund.de> In-Reply-To: <1823346352.314711.1405443099463.open-xchange@oxbaltgw55.schlund.de> X-Enigmail-Version: 1.6 Content-Type: multipart/alternative; boundary="------------080100020901050800080004" 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 This is a multi-part message in MIME format. --------------080100020901050800080004 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hello, could you try IBM XLC/C++ instead of gcc? Bye Rainer On 15.07.2014 18:51, Lars Ewald (web.de) wrote: > Sorry, here is my message for the mailing list. >> ---------- Ursprüngliche Nachricht ---------- >> Von: "Lars Ewald (web.de)" >> An: Tom Lane >> Datum: 14. Juli 2014 um 17:23 >> Betreff: Re: [BUGS] Compile fails on AIX 6.1 >> >> Hello Tom, >> >> > >> PPC what exactly? >> >> PowerPC_POWER5: >> System Model: IBM,9110-51A >> Machine Serial Number: ********* >> Processor Type: PowerPC_POWER5 >> Processor Implementation Mode: POWER 5 >> Processor Version: PV_5_2 >> Number Of Processors: 4 >> Processor Clock Speed: 1499 MHz >> CPU Type: 64-bit >> Kernel Type: 64-bit >> LPAR Info: 1 ********** >> Memory Size: 7936 MB >> Good Memory Size: 7936 MB >> Platform Firmware level: SF240_418 >> Firmware Version: IBM,SF240_418 >> Full Core: false >> >> >> >> Would it help to use a POWER7 system as followed? >> System Model: IBM,8202-E4C >> Machine Serial Number: ********* >> Processor Type: PowerPC_POWER7 >> Processor Implementation Mode: POWER 7 >> Processor Version: PV_7_Compat >> Number Of Processors: 4 >> Processor Clock Speed: 3024 MHz >> CPU Type: 64-bit >> Kernel Type: 64-bit >> LPAR Info: 15 ************ >> Memory Size: 8192 MB >> Good Memory Size: 8192 MB >> Platform Firmware level: AL740_126 >> Firmware Version: IBM,AL740_100 >> Full Core: false >> >> >> > Still, configure should have caught that. Does configure end up >> > defining HAVE_PPC_LWARX_MUTEX_HINT in src/include/pg_config.h? >> >> Yes, I HAVE_PPC_LWARX_MUTEX_HINT was defined. >> >> [...] >> /* Define to 1 if you have the POSIX signal interface. */ >> #define HAVE_POSIX_SIGNALS /**/ >> >> /* Define to 1 if the assembler supports PPC's LWARX mutex hint bit. */ >> #define HAVE_PPC_LWARX_MUTEX_HINT 1 >> >> /* Define to 1 if you have the `pstat' function. */ >> /* #undef HAVE_PSTAT */ >> >> /* Define to 1 if the PS_STRINGS thing exists. */ >> /* #undef HAVE_PS_STRINGS */ >> [...] >> >> >> >> > 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. >> >> Commenting out USE_PPC_LWSYNC did not help. Also, commenting >> USE_PPC_LWSYNC out and set HAVE_PPC_LWARX_MUTEX_HINT to "0", was >> not successful. >> >> >> Best regards >> Lars >> >> >> >> > Tom Lane hat am 11. Juli 2014 um 16:55 >> geschrieben: >> > >> > >> > [ 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 > > --------------080100020901050800080004 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Hello,
could you try IBM XLC/C++ instead of gcc?

Bye
  Rainer

On 15.07.2014 18:51, Lars Ewald (web.de) wrote:
Sorry, here is my message for the mailing list.
---------- Ursprüngliche Nachricht ----------
Von: "Lars Ewald (web.de)" <l.ewald-web@lars-ewald.de>
An: Tom Lane <tgl@sss.pgh.pa.us>
Datum: 14. Juli 2014 um 17:23
Betreff: Re: [BUGS] Compile fails on AIX 6.1

Hello Tom,
 
> >> PPC what exactly?
 
PowerPC_POWER5:
System Model: IBM,9110-51A
Machine Serial Number: *********
Processor Type: PowerPC_POWER5
Processor Implementation Mode: POWER 5
Processor Version: PV_5_2
Number Of Processors: 4
Processor Clock Speed: 1499 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 1 **********
Memory Size: 7936 MB
Good Memory Size: 7936 MB
Platform Firmware level: SF240_418
Firmware Version: IBM,SF240_418
Full Core: false
 
 
 
Would it help to use a POWER7 system as followed?
System Model: IBM,8202-E4C
Machine Serial Number: *********
Processor Type: PowerPC_POWER7
Processor Implementation Mode: POWER 7
Processor Version: PV_7_Compat
Number Of Processors: 4
Processor Clock Speed: 3024 MHz
CPU Type: 64-bit
Kernel Type: 64-bit
LPAR Info: 15 ************
Memory Size: 8192 MB
Good Memory Size: 8192 MB
Platform Firmware level: AL740_126
Firmware Version: IBM,AL740_100
Full Core: false
 
 
> Still, configure should have caught that. Does configure end up
> defining HAVE_PPC_LWARX_MUTEX_HINT in src/include/pg_config.h?
 
Yes, I HAVE_PPC_LWARX_MUTEX_HINT was defined.
 
[...]
/* Define to 1 if you have the POSIX signal interface. */
#define HAVE_POSIX_SIGNALS /**/

/* Define to 1 if the assembler supports PPC's LWARX mutex hint bit. */
#define HAVE_PPC_LWARX_MUTEX_HINT 1

/* Define to 1 if you have the `pstat' function. */
/* #undef HAVE_PSTAT */

/* Define to 1 if the PS_STRINGS thing exists. */
/* #undef HAVE_PS_STRINGS */
[...]
 
 
 
> 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.
 
Commenting out USE_PPC_LWSYNC did not help. Also, commenting
USE_PPC_LWSYNC out and set HAVE_PPC_LWARX_MUTEX_HINT to "0", was
not successful.
 
 
Best regards
Lars
 
 

> Tom Lane <tgl@sss.pgh.pa.us> hat am 11. Juli 2014 um 16:55 geschrieben:
>
>
> [ please keep the mailing list cc'd ]
>
> "Lars Ewald (web.de)" <l.ewald-web@lars-ewald.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

 

--------------080100020901050800080004--