Thread: Compile Error - Spinlock support
Greetings, I am trying to compile a snapshot (2004-09-05 I believe) on Windows XP. I get the error below about spinlock support. I ran ./configure --without-zlib and then make. Thank you all for your time! 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 rtscan.o rtscan.c 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 rtstrat.o rtstrat.c c:/MinGw/mingw32/bin/ld.exe -r -o SUBSYS.o rtget.o rtproc.o rtree.o rtscan.o rtstrat.o make[4]: Leaving directory `/postgresql-snapshot/src/backend/access/rtree' make -C transam SUBSYS.o make[4]: Entering directory `/postgresql-snapshot/src/backend/access/transam' 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 clog.o clog.c 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 transam.o transam.c 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 varsup.o varsup.c 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 xact.o xact.c 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. make[4]: *** [xlog.o] Error 1 make[4]: Leaving directory `/postgresql-snapshot/src/backend/access/transam' make[3]: *** [transam-recursive] Error 2 make[3]: Leaving directory `/postgresql-snapshot/src/backend/access' make[2]: *** [access-recursive] Error 2 make[2]: Leaving directory `/postgresql-snapshot/src/backend' make[1]: *** [all] Error 2 make[1]: Leaving directory `/postgresql-snapshot/src' make: *** [all] Error 2 ---------------------------- Nate Plumm plummn _at_ comdel d0t net
"Nate Plumm" <plummn@comdel.net> writes: > I am trying to compile a snapshot (2004-09-05 I believe) on Windows XP. > 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. There's a gcc for XP? If so, why is it failing to predefine __GNUC__ and/or __i386__ ? The only way you could get to that #error is if the predefined symbols are incomplete. regards, tom lane
Assuming you are running on MSys. Please run "config.status check_win32_symlinks" and check that all the symlinks are correct - I seem to recall seeing this when links failed, as they are known to do from time to time. cheers andrew Nate Plumm wrote: >Greetings, > >I am trying to compile a snapshot (2004-09-05 I believe) on Windows XP. I >get the error below about spinlock support. I ran ./configure --without-zlib >and then make. Thank you all for your time! > >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 rtscan.o >rtscan.c >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 rtstrat.o >rtstrat.c >c:/MinGw/mingw32/bin/ld.exe -r -o SUBSYS.o rtget.o rtproc.o rtree.o rtscan.o >rtstrat.o >make[4]: Leaving directory `/postgresql-snapshot/src/backend/access/rtree' >make -C transam SUBSYS.o >make[4]: Entering directory >`/postgresql-snapshot/src/backend/access/transam' >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 clog.o clog.c >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 transam.o >transam.c >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 varsup.o >varsup.c >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 xact.o xact.c >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. >make[4]: *** [xlog.o] Error 1 >make[4]: Leaving directory `/postgresql-snapshot/src/backend/access/transam' >make[3]: *** [transam-recursive] Error 2 >make[3]: Leaving directory `/postgresql-snapshot/src/backend/access' >make[2]: *** [access-recursive] Error 2 >make[2]: Leaving directory `/postgresql-snapshot/src/backend' >make[1]: *** [all] Error 2 >make[1]: Leaving directory `/postgresql-snapshot/src' >make: *** [all] Error 2 > >---------------------------- >Nate Plumm >plummn _at_ comdel d0t net > > > >---------------------------(end of broadcast)--------------------------- >TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) > > >
Got it working guys, thanks for your suggestions. I actually just downloaded today's snapshot and it worked. -----Original Message----- From: pgsql-hackers-win32-owner@postgresql.org [mailto:pgsql-hackers-win32-owner@postgresql.org] On Behalf Of Andrew Dunstan Sent: Monday, September 06, 2004 1:37 PM To: Nate Plumm Cc: pgsql-hackers-win32@postgresql.org Subject: Re: [pgsql-hackers-win32] Compile Error - Spinlock support Assuming you are running on MSys. Please run "config.status check_win32_symlinks" and check that all the symlinks are correct - I seem to recall seeing this when links failed, as they are known to do from time to time. cheers andrew Nate Plumm wrote: >Greetings, > >I am trying to compile a snapshot (2004-09-05 I believe) on Windows XP. I >get the error below about spinlock support. I ran ./configure --without-zlib >and then make. Thank you all for your time! > >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 rtscan.o >rtscan.c >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 rtstrat.o >rtstrat.c >c:/MinGw/mingw32/bin/ld.exe -r -o SUBSYS.o rtget.o rtproc.o rtree.o rtscan.o >rtstrat.o >make[4]: Leaving directory `/postgresql-snapshot/src/backend/access/rtree' >make -C transam SUBSYS.o >make[4]: Entering directory >`/postgresql-snapshot/src/backend/access/transam' >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 clog.o clog.c >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 transam.o >transam.c >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 varsup.o >varsup.c >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 xact.o xact.c >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. >make[4]: *** [xlog.o] Error 1 >make[4]: Leaving directory `/postgresql-snapshot/src/backend/access/transam' >make[3]: *** [transam-recursive] Error 2 >make[3]: Leaving directory `/postgresql-snapshot/src/backend/access' >make[2]: *** [access-recursive] Error 2 >make[2]: Leaving directory `/postgresql-snapshot/src/backend' >make[1]: *** [all] Error 2 >make[1]: Leaving directory `/postgresql-snapshot/src' >make: *** [all] Error 2 > >---------------------------- >Nate Plumm >plummn _at_ comdel d0t net > > > >---------------------------(end of broadcast)--------------------------- >TIP 2: you can get off all lists at once with the unregister command > (send "unregister YourEmailAddressHere" to majordomo@postgresql.org) > > > ---------------------------(end of broadcast)--------------------------- TIP 7: don't forget to increase your free space map settings