Subject: port-pmax/11917: Postgres 7.0.3 will not compile on pmax
To: None <gnats-bugs@gnats.netbsd.org>
From: Charlie Root <root@kipper.interchange.ca>
List: netbsd-bugs
Date: 01/08/2001 09:32:19
>Number:         11917
>Category:       port-pmax
>Synopsis:       Postgres 7.0.3 will not compile on pmax
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-pmax-maintainer
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 08 09:32:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Charlie Root
>Release:        1.5
>Organization:
	
>Environment:
DecStation 5000/133
System: NetBSD kipper.interchange.ca 1.5 NetBSD 1.5 (GENERIC) #48: Mon Nov 20 08:27:21 EST 2000 root@medusa.thistledown.com.au:/NetBSD/src15/sys/arch/pmax/compile/GENERIC pmax


>Description:
PostgreSQL will not compile under this platform and emits the following error:

gmake[3]: Entering directory `/usr/pkgsrc/databases/postgresql/work/postgresql-7.0.3/src/backend/storage/buffer'
cc -I../../../include -I../../../backend   -I/usr/pkg/include -O2 -pipe -O2 -I../..   -c -o buf_table.o buf_table.c
cc -I../../../include -I../../../backend   -I/usr/pkg/include -O2 -pipe -O2 -I../..   -c -o buf_init.o buf_init.c
cc -I../../../include -I../../../backend   -I/usr/pkg/include -O2 -pipe -O2 -I../..   -c -o bufmgr.o bufmgr.c
cc -I../../../include -I../../../backend   -I/usr/pkg/include -O2 -pipe -O2 -I../..   -c -o freelist.o freelist.c
cc -I../../../include -I../../../backend   -I/usr/pkg/include -O2 -pipe -O2 -I../..   -c -o localbuf.o localbuf.c
cc -I../../../include -I../../../backend   -I/usr/pkg/include -O2 -pipe -O2 -I../..   -c -o s_lock.o s_lock.c
{standard input}: Assembler messages:
{standard input}:220: Error: opcode requires -mips2 or greater `ll'
{standard input}:222: Error: opcode requires -mips2 or greater `sc'
gmake[3]: *** [s_lock.o] Error 1

I'm guessing that some assembly wizard has to go in and re-write one of the inlined routines to support this
CPU. I'm not sure if it's a mips2 or not but I suspect it is not. Rather than patching the existing one
they may want to look into providing a separate one so as not to hurt the MIPS2 port.

>How-To-Repeat:
compile PostgreSQL from ports on the affected machine. It's slow as hell (took almost 2 hours to get to this point)
but if someone really needs I do have a machine they can use.

>Fix:
Actual correction... I don't know any MIPS asm to suggest the solution :(
>Release-Note:
>Audit-Trail:
>Unformatted: