From: Tom Lane <tgl@sss.pgh.pa.us>
To: Lars Ewald (web.de) <l.ewald-web@lars-ewald.de>
Cc: pgsql-bugs@postgreSQL.org
Subject: Re: Compile fails on AIX 6.1
Date: Fri, 11 Jul 2014 10:55:58 -0400
Message-ID: <2650.1405090558@sss.pgh.pa.us> (raw)
In-Reply-To: <862279328.128417.1405069058259.open-xchange@oxbaltgw03.schlund.de>
References: <2091578163.108431.1405003056556.open-xchange@oxbaltgw07.schlund.de>
<22620.1405021301@sss.pgh.pa.us>
<862279328.128417.1405069058259.open-xchange@oxbaltgw03.schlund.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
[ 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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, l.ewald-web@lars-ewald.de
Subject: Re: Compile fails on AIX 6.1
In-Reply-To: <2650.1405090558@sss.pgh.pa.us>
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>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox