Solaris cc compiler on amd: PostgreSQL does not have native spinlock support on this platform - Mailing list pgsql-bugs

From Pierre Girard
Subject Solaris cc compiler on amd: PostgreSQL does not have native spinlock support on this platform
Date
Msg-id 43A1D87B.9040500@gerad.ca
Whole thread Raw
Responses Re: Solaris cc compiler on amd: PostgreSQL does not have native spinlock support on this platform
List pgsql-bugs
Hello,
    I'm trying to compile postgresql and I got this message telling me
to inform you:

"../../../../src/include/storage/s_lock.h", line 806: #error: PostgreSQL
does not have native spinlock support on this platform.  To continue the
compilation, rerun configure using --disable-spinlocks.  However,
performance will be poor.  Please report this to pgsql-bugs@postgresql.org.

This is the configure line i used:
MAKE=gmake CC=/opt/SUNWspro/bin/cc CFLAGS="-xtarget=opteron
-xarch=amd64" CXX=/opt/SUNWspro/bin/CC CXXFLAGS="-xtarget=opteron
-xarch=amd64" LDFLAGS="-xtarget=opteron -xarch=amd64" ./configure
--without-readline

If i try this configuration command instead:
MAKE=gmake CC=/opt/SUNWspro/bin/cc CFLAGS="-fast"
CXX=/opt/SUNWspro/bin/CC CXXFLAGS="-fast" LDFLAGS="-fast" ./configure
--without-readline

It compiles but then i get a 32 bit executable which is not what i want.

This is on a solaris 10 with amd processor using the sun forte 11 compilers.

Are there any fix for this?

Thanks.

pgsql-bugs by date:

Previous
From: Andreas Pflug
Date:
Subject: Re: BUG #2116: Searching text fields does not work in EUC_JP
Next
From: Rolf Gross
Date:
Subject: Postgres 8.1 hangs at boot time due to password authentication for user postgres.