pg.ddx.io  pgsql-ports@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martin Pitt <martin@piware.de>
To: pgsql-ports@postgresql.org
Subject: gcc 4.0 build failures on m68k, mips, and mipsel
Date: Sun, 24 Jul 2005 17:59:42 +0200
Message-ID: <20050724155941.GA27638@piware.de> (raw)

Hi!

I noticed that PostgreSQL does not build any more with gcc 4.0 on
m68k, mips, and mipsel because of bugs/incompatibilities in
src/include/storage/s_lock.h.

Fixing m68k was easy, I attach the patch. gcc 4.0 seems to define both
__m68000___ and __m68k__, thus slock_t was defined twice. In 3.x,
__m68k__ was not defined, as it seems. So the patch should work for
both 3.x and 4.0.

However, since I don't have access to a mips/mipsel machine with gcc
4.0, I was unable to fix the problem myself, so I just disabled
spinlocks on these two architectures in Debian for now (which sucks,
but at least the package builds and works). Does anybody here have a
MIPS machine and could try this?

I'd love to give links to the build logs, unfortunately some Debian
servers are moving right now, thus buildd.debian.org is down. I'll
followup with the logs as soon as it is up again.

Thanks and have a nice day!

Martin
-- 
Martin Pitt        http://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org

Attachments:

11-s_lock.h-m68k.patch (text/plain, 519B) download diff -ruN postgresql-8.0.3-old/src/include/storage/s_lock.h postgresql-8.0.3/src/include/storage/s_lock.h --- postgresql-8.0.3-old/src/include/storage/s_lock.h 2005-01-01 00:03:42.000000000 +0200 +++ postgresql-8.0.3/src/include/storage/s_lock.h 2005-07-13 21:07:32.000000000 +0300 @@ -441,13 +441,6 @@ /* These live in s_lock.c, but only for gcc */ -#if defined(__m68k__) -#define HAS_TEST_AND_SET - -typedef unsigned char slock_t; -#endif - - #if defined(__mips__) && !defined(__sgi) #define HAS_TEST_AND_SET
signature.asc (application/pgp-signature, 188B) download

view thread (6+ messages)  latest in thread

Message-ID: <20050724155941.GA27638@piware.de>
Permalink:  ../20050724155941.GA27638@piware.de/
Also on:    postgresql.org/message-id/20050724155941.GA27638@piware.de

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-ports@postgresql.org
  Cc: martin@piware.de
  Subject: Re: gcc 4.0 build failures on m68k, mips, and mipsel
  In-Reply-To: <20050724155941.GA27638@piware.de>
  References: <20050724155941.GA27638@piware.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox