Skip site navigation (1) Skip section navigation (2)

Re: FIX: NetBSD/cobalt now compiles 7.2.1

From: Warwick Hunter <whunter(at)agile(dot)tv>
To: Ian Spray <pgsql(at)borg(dot)minimal(dot)cx>
Cc: pgsql-ports(at)postgresql(dot)org
Subject: Re: FIX: NetBSD/cobalt now compiles 7.2.1
Date: 2002-06-10 23:29:31
Message-ID: 3D05365B.7050209@agile.tv (view raw or flat)
Thread:
Lists: pgsql-ports
Ian

There was a patch submitted a while ago that doesn't
seem to have been rolled into 7.2.1 that fixes this.
It does it by patching s_lock.c to add the set .mips2
assembler directive. The patch is attached.

Your patch works just as well. It is what I have been
doing to get PostgreSQL to compile on the MIPS machine
I am using.

Cheers,

Warwick

> Hi all,
> 
> I've been messing with NetBSD/cobalt 1.5.3, and have found that the template
> file for NetBSD could be improved a little - without the following change
> the system dies in s_lock.c because the opcodes are only available with the
> -mips2 flag, and it's not correctly picked up for this platform.
> 
> The file src/template/netbsd should have three lines added (similar to the
> current src/template/linux one), so the full file looks like this:
> 
> ----
> CFLAGS=-O2
> 
> case $host_cpu in
>   cobalt*)   CFLAGS="$CFLAGS -mips2";;
> esac
> ----
> 
> With this change made the standard 7.2.1 tarball compiled without a single
> problem.  I've yet to test speed and stability.
> 

-- 
Warwick Hunter                    Agile TV Corporation
Voice: +61 7 5584 5912            Fax: +61 7 5575 9550
mailto:whunter(at)agile(dot)tv           http://www.agile.tv

In response to

Responses

pgsql-ports by date

Next:From: Tom LaneDate: 2002-06-11 18:05:34
Subject: Re: FIX: NetBSD/cobalt now compiles 7.2.1
Previous:From: Lamar OwenDate: 2002-06-10 18:03:31
Subject: Re: redhat 6.2

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group