Re: Solaris SPARC - Sun compiler 5.5 - 64 bit - Mailing list pgsql-ports

From Clark, Andrew
Subject Re: Solaris SPARC - Sun compiler 5.5 - 64 bit
Date
Msg-id 74825F195D477C4995425A1313D646B114A8C7@smbfisyyz01.FNFIS.COM
Whole thread Raw
In response to Solaris SPARC - Sun compiler 5.5 - 64 bit  ("Clark, Andrew" <Andrew.Clark@fnf.com>)
Responses Re: Solaris SPARC - Sun compiler 5.5 - 64 bit  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-ports
Tom,

Well that definitely did something, but now I get a different error:

----------------

/usr1/clarka/bin/gmake -C backend/utils/mb/conversion_procs all
gmake[3]: Entering directory
`/usr1/clarka/src/postgresql-8.0.2/src/backend/utils/mb/conversion_procs
'
gmake[4]: Entering directory
`/usr1/clarka/src/postgresql-8.0.2/src/backend/utils/mb/conversion_procs
/ascii_and_mic'
cc -Xa -v -xtarget=ultra2 -xarch=v9a -xchip=ultra2 -DSUNOS4_CC -KPIC
-I../../../../../../src/include   -c -o ascii_and_mic.o ascii_and_mic.c
"ascii_and_mic.c", line 38: warning: assignment type mismatch:
        pointer to unsigned char "=" pointer to char
"ascii_and_mic.c", line 39: warning: assignment type mismatch:
        pointer to unsigned char "=" pointer to char
"ascii_and_mic.c", line 54: warning: assignment type mismatch:
        pointer to unsigned char "=" pointer to char
"ascii_and_mic.c", line 55: warning: assignment type mismatch:
        pointer to unsigned char "=" pointer to char
cc -Xa -G -h libascii_and_mic.so.0  ascii_and_mic.o
-L../../../../../../src/port   -o libascii_and_mic.so.0.0
ld: fatal: file ascii_and_mic.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to
libascii_and_mic.so.0.0
gmake[4]: *** [libascii_and_mic.so.0.0] Error 1
gmake[4]: Leaving directory
`/usr1/clarka/src/postgresql-8.0.2/src/backend/utils/mb/conversion_procs
/ascii_and_mic'

----------------

The command that's failing doesn't have the -x flags, so I tried the
following command manually:

cc -Xa -v -xtarget=ultra2 -xarch=v9a -xchip=ultra2 -G -h
libascii_and_mic.so.0  ascii_and_mic.o -L../../../../../../src/port   -o
libascii_and_mic.so.0.0

And it worked...

So, I specified the -x flags in LDFLAG in my configure command. But I
still get the above error and I the LDFLAG isn't being used.

Here is my configure command:

./configure \
CFLAGS="-v -xtarget=ultra2 -xarch=v9a -xchip=ultra2 -DSUNOS4_CC" \
LDFLAGS="-v -xtarget=ultra2 -xarch=v9a -xchip=ultra2" \
--without-readline \
--without-zlib \
--prefix=$HOME/UAT/postgres \
--enable-thread-safety \
--enable-integer-datetimes


Thanks,
Andrew


-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: July 29, 2005 10:37 AM
To: Clark, Andrew
Cc: Peter Eisentraut; pgsql-ports@postgresql.org
Subject: Re: [PORTS] Solaris SPARC - Sun compiler 5.5 - 64 bit

"Clark, Andrew" <Andrew.Clark@fnf.com> writes:
> I'm using PostgreSQL 8.0.2 on Solaris 8.

Is configure using the solaris template, or the sunos4 one?
If the former, does changing
  CFLAGS="-v"            # -v is like gcc -Wall
to
  CFLAGS="-v -DSUNOS4_CC"    # -v is like gcc -Wall
fix it?  (Note you need to re-configure to make template changes have
any effect.)

            regards, tom lane



pgsql-ports by date:

Previous
From: Tom Lane
Date:
Subject: Re: Solaris SPARC - Sun compiler 5.5 - 64 bit
Next
From: Tom Lane
Date:
Subject: Re: Solaris SPARC - Sun compiler 5.5 - 64 bit