Thread: BUG #8387: Error while make of the source code

BUG #8387: Error while make of the source code

From
NITISHSAURABH@GMAIL.COM
Date:
The following bug has been logged on the website:

Bug reference:      8387
Logged by:          Nitish
Email address:      NITISHSAURABH@GMAIL.COM
PostgreSQL version: 9.2.4
Operating system:   AIX7.1
Description:

Gives Error while compiling (configure goes well but while running make it
gives error) the source code as shown below. Is there any compatibility
issue between PostgreSQl 9.2.4 and AIX7.1 ?


/tmp//ccIZry3K.s: line 23872: 1252-142 Syntax error.
/tmp//ccIZry3K.s: line 23873: 1252-142 Syntax error.
/tmp//ccIZry3K.s: line 23876: 1252-142 Syntax error.
gmake[4]: *** [xlog.o] Error 1
gmake[4]: Leaving directory
`/usr/src/postgresql-9.2.4/src/backend/access/transam'
gmake[3]: *** [transam-recursive] Error 2
gmake[3]: Leaving directory `/usr/src/postgresql-9.2.4/src/backend/access'
gmake[2]: *** [access-recursive] Error 2
gmake[2]: Leaving directory `/usr/src/postgresql-9.2.4/src/backend'
gmake[1]: *** [all-backend-recurse] Error 2
gmake[1]: Leaving directory `/usr/src/postgresql-9.2.4/src'
gmake: *** [all-src-recurse] Error 2
make: 1254-004 The error code from the last command is 2.




Stop.

Re: BUG #8387: Error while make of the source code

From
Heikki Linnakangas
Date:
On 19.08.2013 13:33, NITISHSAURABH@GMAIL.COM wrote:
> The following bug has been logged on the website:
>
> Bug reference:      8387
> Logged by:          Nitish
> Email address:      NITISHSAURABH@GMAIL.COM
> PostgreSQL version: 9.2.4
> Operating system:   AIX7.1
> Description:
>
> Gives Error while compiling (configure goes well but while running make it
> gives error) the source code as shown below. Is there any compatibility
> issue between PostgreSQl 9.2.4 and AIX7.1 ?

Not that I'm aware of. Then again, there is no AIX 7.1 box in the
buildfarm, the closes thing is "grebe" running AIX 5.3 (see
http://buildfarm.postgresql.org/cgi-bin/show_status.pl).

- Heikki

Re: BUG #8387: Error while make of the source code

From
Andrew Hastie
Date:
What compiler are you using? If it helps, some time ago I built PG
v9.2.2 using the IBM xlc compiler at version 12 successfully. From my
notes I used the following compiler configuration:-

./configure CC=xlc LIBS="-lssl -lcrypto -lz -lreadline -lcurses -lld
-lmass -lm" CFLAGS="-qlanglvl=extc89" --with-template=aix
--prefix=/home/ahastie/pgbuild
--with-includes=/opt/freeware/include:/home/ahastie/gnu/zlib-1.2.7:/home/ahastie/gnu/readline-6.2
--with-libraries=/opt/freeware/lib

(Note: For various reasons I used my own downloads of zlib and readline
for the build.)

Hope the above helps.


On 19/08/13 11:33, NITISHSAURABH@GMAIL.COM wrote:
> The following bug has been logged on the website:
>
> Bug reference:      8387
> Logged by:          Nitish
> Email address:      NITISHSAURABH@GMAIL.COM
> PostgreSQL version: 9.2.4
> Operating system:   AIX7.1
> Description:
>
> Gives Error while compiling (configure goes well but while running make it
> gives error) the source code as shown below. Is there any compatibility
> issue between PostgreSQl 9.2.4 and AIX7.1 ?
>
>
> /tmp//ccIZry3K.s: line 23872: 1252-142 Syntax error.
> /tmp//ccIZry3K.s: line 23873: 1252-142 Syntax error.
> /tmp//ccIZry3K.s: line 23876: 1252-142 Syntax error.
> gmake[4]: *** [xlog.o] Error 1
> gmake[4]: Leaving directory
> `/usr/src/postgresql-9.2.4/src/backend/access/transam'
> gmake[3]: *** [transam-recursive] Error 2
> gmake[3]: Leaving directory `/usr/src/postgresql-9.2.4/src/backend/access'
> gmake[2]: *** [access-recursive] Error 2
> gmake[2]: Leaving directory `/usr/src/postgresql-9.2.4/src/backend'
> gmake[1]: *** [all-backend-recurse] Error 2
> gmake[1]: Leaving directory `/usr/src/postgresql-9.2.4/src'
> gmake: *** [all-src-recurse] Error 2
> make: 1254-004 The error code from the last command is 2.
>
>
>
>
> Stop.
>
>
>

Re: BUG #8387: Error while make of the source code

From
Tom Lane
Date:
Heikki Linnakangas <hlinnakangas@vmware.com> writes:
> On 19.08.2013 13:33, NITISHSAURABH@GMAIL.COM wrote:
>> Gives Error while compiling (configure goes well but while running make it
>> gives error) the source code as shown below. Is there any compatibility
>> issue between PostgreSQl 9.2.4 and AIX7.1 ?

> Not that I'm aware of. Then again, there is no AIX 7.1 box in the
> buildfarm, the closes thing is "grebe" running AIX 5.3 (see
> http://buildfarm.postgresql.org/cgi-bin/show_status.pl).

I'm wondering if the OP's configuration doesn't support LWARX mutex hints
(see the comment for USE_PPC_LWARX_MUTEX_HINT in pg_config_manual.h).
We do have a configure-time check for that, but maybe it's not working
for him?

Without any info as to the compiler or assembler in use, nor a look at the
failing bits of assembly code, we're just guessing.

            regards, tom lane

Re: BUG #8387: Error while make of the source code

From
nitishsaurabh
Date:
I am using gcc compiler,readline is already installed. Is there any rpm
available for AIX7.1?



--
View this message in context:
http://postgresql.1045698.n5.nabble.com/BUG-8387-Error-while-make-of-the-source-code-tp5767841p5768011.html
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.