building postgres issue on SUnStudio 12
Using SunStudio 12 on SLES9 on an opteron platform:
I run into a problem using spinlocks -see below. gsql-bugs responded : use gcc (see below). It does build fine under gcc, and will build under SS12 if I disable spinlocks as suggested. Is this an issue that the SunStudo development team can address? I am looking to see if rebuilding postgres using SS12 will improve DB performance.
Thanks.
from my request at pgsql-bugs:
"Len Zaifman" <leonardz@sickkids.ca> writes:
> The following error occuredbuilding Postgresql 8.2.4 on SLES 9 using SUN STUDIO 12 compilers
> sunstudio12/bin/cc -O -I../../../../src/include -D_GNU_SOURCE-c -o xlog.o xlog.c
> "../../../../src/include/storage/s_lock.h", line 810: #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.
By and large we don't try to support nonstandard compilers on Linux.
Use gcc.

