PostgreSQL does not have native spinlock support on this platform
Hi,
I'm trying to compile the source code on a win2k platform but I've get
this error:
gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -I../../../../src/include
-I./src/include/port/win32 "-I../../../../src/include/port/win32"
-DBUILDING_DLL -c -o xlog.o xlog.c
In file included from ../../../../src/include/storage/spin.h:50,
from xlog.c:35:
../../../../src/include/storage/s_lock.h:543:2: #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.
My configuration is:
- Windows2000 WKS with SP3
- Snapshot of postgresql source on date 20040608
- MinGW32 3.1.0-1
- MSYS 1.0.10
and i've runned ./configure with the '--without-zlib' parameter.
I've searched for a similar question on the ml but I don't found.
If you need more specification, ask me.
Martino Serri
(Italy)
PS: sorry for my poor english.
That is very strange. I assume you are on an i386 cpu. Many are running
the same configuration just fine.
---------------------------------------------------------------------------
Martino Serri wrote:
Hi,
I'm trying to compile the source code on a win2k platform but I've get
this error:gcc -O2 -fno-strict-aliasing -Wall -Wmissing-prototypes
-Wmissing-declarations -I../../../../src/include
-I./src/include/port/win32 "-I../../../../src/include/port/win32"
-DBUILDING_DLL -c -o xlog.o xlog.c
In file included from ../../../../src/include/storage/spin.h:50,
from xlog.c:35:
../../../../src/include/storage/s_lock.h:543:2: #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.My configuration is:
- Windows2000 WKS with SP3
- Snapshot of postgresql source on date 20040608
- MinGW32 3.1.0-1
- MSYS 1.0.10and i've runned ./configure with the '--without-zlib' parameter.
I've searched for a similar question on the ml but I don't found.
If you need more specification, ask me.
Martino Serri
(Italy)PS: sorry for my poor english.
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
Bruce Momjian wrote:
That is very strange. I assume you are on an i386 cpu. Many are running
the same configuration just fine.
Thank you for the answer.
Yes, this is a PentiumIII 800Mhz.
I've searched on /src/include/storage/s_lock.h and i've found this line.
#ifdef HAVE_SPINLOCKS
#error PostgreSQL does not have native spinlock support on this ...
I suppose that would be
#ifndef HAVE_SPINLOCKS
It's correct?
Martino.
--
"- in Italia cosa rischia uno che tortura?
- ..Se � una tortura e via, poco.. Se ha anche scaricato musica da
Internet, quattro anni"
Sergio Staino (Bobo e figlia, maggio 2004)
Martino Serri wrote:
Bruce Momjian wrote:
That is very strange. I assume you are on an i386 cpu. Many are running
the same configuration just fine.Thank you for the answer.
Yes, this is a PentiumIII 800Mhz.
I've searched on /src/include/storage/s_lock.h and i've found this line.
#ifdef HAVE_SPINLOCKS
#error PostgreSQL does not have native spinlock support on this ...I suppose that would be
#ifndef HAVE_SPINLOCKS
It's correct?
No, that would mean it would use the spinlock code (slow) rather than
the test and set code. What OS is this? My guess is that there is a
missing spinlock configuration variable in proper src/template file.
This is all redesigned in 7.5.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073