X-Original-To: pgsql-ports-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1238952C06 for ; Sun, 24 Jul 2005 13:00:00 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 05703-04 for ; Sun, 24 Jul 2005 15:59:57 +0000 (GMT) Received: from mail.pironet-ndh.com (mail01.pironet-ndh.com [194.64.31.10]) by svr1.postgresql.org (Postfix) with ESMTP id A581A52BF7 for ; Sun, 24 Jul 2005 12:59:49 -0300 (ADT) Received: from mail.fbn-dd.de (mail.fbn-dd.de [195.227.105.178]) by mail.pironet-ndh.com (Postfix) with ESMTP id B894354243 for ; Sun, 24 Jul 2005 17:59:47 +0200 (CEST) Received: from sonne.intranet.fbn-dd.de (192-168-0-1.transfer-000.intranet.fbn-dd.de [192.168.0.1]) by mail.fbn-dd.de (Postfix) with ESMTP id 3C0712630C for ; Sun, 24 Jul 2005 17:59:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by sonne.intranet.fbn-dd.de (Postfix) with ESMTP id C78FE202DF for ; Sun, 24 Jul 2005 17:59:46 +0200 (CEST) Received: from sonne.intranet.fbn-dd.de (localhost [127.0.0.1]) by localhost (AvMailGate-2.0.1.16) id 19153-6DDFEDE7; Sun, 24 Jul 2005 17:59:45 +0200 Received: from localhost.localdomain (10-28-129-68.intranet-28-129.fbn-dd.de [10.28.129.68]) by sonne.intranet.fbn-dd.de (Postfix) with ESMTP id C1A71202DF for ; Sun, 24 Jul 2005 17:59:45 +0200 (CEST) Received: from martin by localhost.localdomain with local (Exim 4.52) id 1DwitC-00034f-DM for pgsql-ports@postgresql.org; Sun, 24 Jul 2005 17:59:42 +0200 Date: Sun, 24 Jul 2005 17:59:42 +0200 From: Martin Pitt To: pgsql-ports@postgresql.org Subject: gcc 4.0 build failures on m68k, mips, and mipsel Message-ID: <20050724155941.GA27638@piware.de> Mail-Followup-To: pgsql-ports@postgresql.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="uQr8t48UFsdbeI+V" Content-Disposition: inline User-Agent: Mutt/1.5.9i X-AntiVirus: checked by AntiVir MailGate (version: 2.0.1.16; AVE: 6.31.1.0; VDF: 6.31.1.13; host: sonne) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200507/18 X-Sequence-Number: 2158 --uQr8t48UFsdbeI+V Content-Type: multipart/mixed; boundary="ZPt4rx8FFjLCG7dd" Content-Disposition: inline --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 --=20 Martin Pitt http://www.piware.de Ubuntu Developer http://www.ubuntu.com Debian Developer http://www.debian.org --ZPt4rx8FFjLCG7dd Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="11-s_lock.h-m68k.patch" Content-Transfer-Encoding: quoted-printable 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.0= 00000000 +0200 +++ postgresql-8.0.3/src/include/storage/s_lock.h 2005-07-13 21:07:32.00000= 0000 +0300 @@ -441,13 +441,6 @@ /* These live in s_lock.c, but only for gcc */ =20 =20 -#if defined(__m68k__) -#define HAS_TEST_AND_SET - -typedef unsigned char slock_t; -#endif - - #if defined(__mips__) && !defined(__sgi) #define HAS_TEST_AND_SET =20 --ZPt4rx8FFjLCG7dd-- --uQr8t48UFsdbeI+V Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFC47rtDecnbV4Fd/IRAk4jAKDHRXoB513lViF8MmpkWS5FjEyCXwCgqmBU JR4e0NwWH76AUtIsWT51qOY= =NWed -----END PGP SIGNATURE----- --uQr8t48UFsdbeI+V--