Re: 7.1.3, IRIX 6.5 and gcc

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruno Mattarollo <bruno(at)web1(dot)greenpeace(dot)org>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: 7.1.3, IRIX 6.5 and gcc
Date: 2001-08-28 09:51:30
Message-ID: Pine.LNX.4.30.0108281146390.699-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruno Mattarollo writes:

> I am trying to get 7.1.3 to compile on IRIX 6.5.13 using GCC 3.0.1 ... I
> always end up having this error:
>
> gcc -Wall -Wmissing-prototypes -Wmissing-declarations
> -I../../../../src/include -U_NO_XOPEN4 -c -o s_lock.o s_lock.c s_lock.c:
> In function `s_lock': s_lock.c:134: warning: passing arg 1 of pointer to
> function discards qualifiers from pointer target type s_lock.c: At top
> level: s_lock.c:234: warning: `tas_dummy' defined but not used as: Error:
> /var/tmp/ccLTwXmB.s, line 403: undefined assembler operation: .global
> .global tas gmake[4]: *** [s_lock.o] Error 1 gmake[4]: Leaving
> directory `/usr/local/src/postgresql-7.1.3/src/backend/storage/buffer'
> gmake[3]: *** [buffer-recursive] Error 2 gmake[3]: Leaving directory
> `/usr/local/src/postgresql-7.1.3/src/backend/storage'
> gmake[2]: *** [storage-recursive] Error 2

Go into the file src/backend/storage/s_lock.c and change the line that
looks like

#if defined(__mips__)

to

#if defined(__mips__) && !defined(__sgi)

(This "mips" assembly code is there for the likes of NetBSD and Linux.)

This should allow for the compilation to continue.

> I read in the archives that GCC was not very good to compile on IRIX, at
> this stage I have no choice, we don't have MIPSPro licensed.

"not very good" can also be read as "won't work", unless GCC 3 now does
better.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Karel Zak 2001-08-28 09:55:28 Re: Bytea/Base64 encoders for libpq - interested?
Previous Message Alessio Bragadini 2001-08-28 09:18:28 Re: bugs - lets call an exterminator!