Thread: spinlock support for Sun Studio 12 compiler on linux
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. cc: acomp failed for xlog.c /hpf/tools/SunStudio/12/sunstudio12/bin/cc -V cc: Sun C 5.9 Linux_i386 2007/05/03 usage: cc [ options] files. Use 'cc -flags' for details leonardz@cn-r1-3 postgresql-8.2.4 1075>>uname -a Linux cn-r1-3 2.6.5-7.282-smp #1 SMP Tue Aug 29 10:40:40 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux -- Len Zaifman Systems Manager, Supercomputing Systems Centre for Computational Biology Hospital for Sick Children Toronto, Ont. M5G 1X8 leonardz@sickkids.ca (416)813-5513
"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. regards, tom lane
On Thu, 2007-07-05 at 16:32 -0400, Tom Lane wrote: > By and large we don't try to support nonstandard compilers on Linux. We support icc on Linux, at least to some degree (buildfarm members mongoose and dugong, for example). I don't see anything wrong with supporting Sun Studio on Linux, if someone wants to contribute support for it. Having a buildfarm machine for it would be nice, of course... -Neil
Neil Conway <neilc@samurai.com> writes: > On Thu, 2007-07-05 at 16:32 -0400, Tom Lane wrote: >> By and large we don't try to support nonstandard compilers on Linux. > We support icc on Linux, at least to some degree (buildfarm members > mongoose and dugong, for example). Well, that's because (a) someone provided the initial port, and (b) someone (else?) provided ongoing buildfarm support to see that it didn't get broken. If the OP wants to do that work, fine, but don't expect that a complaint on pgsql-bugs will motivate people who don't have access to the compiler in question to do anything about it. regards, tom lane