Re: postgresql-9.5.3 compilation on Solaris SPARC

From: Venkata Balaji N <nag1010(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: postgresql-9.5.3 compilation on Solaris SPARC
Date: 2016-05-23 04:07:29
Message-ID: CAEyp7J-n77o9J+CNP4DaezNQtRtm6yvj01yU5f2PGot+RWdzdg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sun, May 22, 2016 at 6:38 PM, Venkata Balaji N <nag1010(at)gmail(dot)com> wrote:

>
> On Sun, May 22, 2016 at 1:59 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
>> Venkata Balaji N <nag1010(at)gmail(dot)com> writes:
>> > On Sat, May 21, 2016 at 1:04 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> >> http://www.unix.com/man-page/opensolaris/3c/atomic_cas/
>> >> http://docs.oracle.com/cd/E23824_01/html/821-1465/atomic-cas-3c.html
>> >>
>> >> I see that the first of those mentions it's for SunOS 5.11 whereas your
>> >> machine says it's 5.10 ... is it possible the functions were new in
>> 5.11?
>>
>> > I am not 100% sure. By the error, what i understand is that for some
>> reason
>> > PostgreSQL version 9.5.x is expecting the SunOS version to be more
>> recent
>> > than 5.10.
>>
>> Well, it's not --- we have a buildfarm animal that's running 5.10, and
>> it seems perfectly happy:
>>
>> http://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=castoroides&dt=2016-05-21%2014%3A00%3A47
>>
>> At this point I suspect that Asif Naeem was correct upthread in
>> questioning your compile options --- particularly the -L switches.
>> castoroides seems to just be using this:
>>
>> 'config_env' => {
>> 'CFLAGS' => '-m64 -xarch=native -xdepend -xO4
>> -xprefetch=auto,explicit',
>> 'CC' => 'cc',
>> 'LDFLAGS' => ''
>> },
>>
>
> Thanks. Then, as i suspected, the problem must be around using appropriate
> CFLAGS, which i am not sure at what to use. One thing i can say at this
> point is that, if i just add "-m64" option in CFLAGS, i get an error
> illegal option.
> I will re-test the compilation and get back with the inputs.
>

All good now. I am able to get the PostgreSQL-9.5.3 64-Bit installation
done by removing the CFLAGS. Below is the configure command which i used -

./configure --prefix=/opt/postgres/9.5.3 CC="gcc -m64" --enable-cassert
--without-readline --enable-thread-safety

Thanks all for your inputs and sorry for the confusion.

Regards,
Venkata B N

Fujitsu Australia

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Venkata Balaji N 2016-05-23 04:11:49 Re: postgresql-9.5.3 compilation on Solaris SPARC
Previous Message Tory M Blue 2016-05-22 21:45:56 Re: 9.5 CentOS 7 setting PGDATA for systemctl