I have been trying to complie PostgreSQL 6.5 on my SGI running IRIX
6.2. I am using gcc 2.8.1. Right in the middle of the build I get the
following error (preceding code included for clarity):
gmake[3]: Entering directory `/usr/src/pgsql/src/backend/storage/buffer'
gcc -I../../../include -I../../../backend -U_NO_XOPEN4 -Wall -Wmissing-prototypes -O2 -I../.. -c buf_table.c -o
buf_table.o
gcc -I../../../include -I../../../backend -U_NO_XOPEN4 -Wall -Wmissing-prototypes -O2 -I../.. -c buf_init.c -o
buf_init.o
gcc -I../../../include -I../../../backend -U_NO_XOPEN4 -Wall -Wmissing-prototypes -O2 -I../.. -c bufmgr.c -o
bufmgr.o
bufmgr.c: In function `BufferAlloc':
bufmgr.c:481: warning: passing arg 1 discards `volatile' from pointer target type
bufmgr.c:656: warning: passing arg 1 discards `volatile' from pointer target type
bufmgr.c: In function `WaitIO':
bufmgr.c:1091: warning: passing arg 1 discards `volatile' from pointer target type
bufmgr.c: In function `UnlockBuffers':
bufmgr.c:1951: warning: passing arg 1 discards `volatile' from pointer target type
bufmgr.c: In function `LockBuffer':
bufmgr.c:1997: warning: passing arg 1 discards `volatile' from pointer target type
bufmgr.c:2033: warning: passing arg 1 discards `volatile' from pointer target type
bufmgr.c:2064: warning: passing arg 1 discards `volatile' from pointer target type
gcc -I../../../include -I../../../backend -U_NO_XOPEN4 -Wall -Wmissing-prototypes -O2 -I../.. -c freelist.c -o
freelist.o
gcc -I../../../include -I../../../backend -U_NO_XOPEN4 -Wall -Wmissing-prototypes -O2 -I../.. -c localbuf.c -o
localbuf.o
gcc -I../../../include -I../../../backend -U_NO_XOPEN4 -Wall -Wmissing-prototypes -O2 -I../.. -c s_lock.c -o
s_lock.o
s_lock.c: In function `s_lock':
s_lock.c:74: warning: passing arg 1 discards `volatile' from pointer target type
s_lock.c: At top level:
s_lock.c:149: warning: `tas_dummy' defined but not used
as: Error: /var/tmp/cca002Ee.s, line 299: undefined assembler operation:
.global
.global tas
gmake[3]: *** [s_lock.o] Error 1
I am not familiar enough with mips assembly to know what to do now. Can
anyone help?
-gerald