pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Luis Amigo <lamigo@atc.unican.es>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-hackers@postgresql.org
Subject: Re: installing 7.2b3 on IRIX 6.5.13
Date: Tue, 27 Nov 2001 18:55:27 +0100
Message-ID: <3C03D38F.A5B17B72@atc.unican.es> (raw)
References: <Pine.LNX.4.30.0111271610310.791-100000@peter.localdomain>
	<19065.1006875490@sss.pgh.pa.us>

Tom Lane wrote:

> Peter Eisentraut <peter_e@gmx.net> writes:
> > One of these days I'm going to write this down somewhere:  GCC + Irix +
> > PostgreSQL does not work -- until proven otherwise and/or GCC is fixed.
>
> Oh.  Yup, that should be documented or enforced by configure.
>
> > I was going to suggest myself someday that we force CC=cc, but it should
> > be done in configure.in (near line 274) and not in the template file.
>
> Makes sense to me to do it in configure.in.  Shall we go ahead and put
> that in?
>
> > We've had successful reports for Irix in the past, so I don't think the -n
> > and -r flags are strictly necessary -- at least I'd like to see more
> > information regarding them.  What makes -n32 and -r12000 better than, say,
> > -n64 and -r6000?
>
> Luis' followup indicated that -r wasn't really needed.  Not sure about -n.
>
>                         regards, tom lane

sorry for replying only to tom (a mouse mistake)
In our case -n32 (force new 32 bit object(maybe -o32 in old platforms)) was
necessary because with 64 bit object we were getting linking errors.
-rx is processor instruction set, it is not necessary but I recommend it for
better performance.

I've been this afternoon search why it fails with gcc and I think I know the
answer:
from sgi.com
gcc vs. cc

                       Code that runs fine when compiled with SGI cc and
doesn't run when compiled with gcc
                       might be calling one of the following functions:

                               inet_ntoa, inet_lnaof, inet_netof,
inet_makeaddr, semctl

                       (there may be others). These are functions that get
passed or return structs that are smaller than
                       16 bytes but not 8 bytes long. gcc and SGI cc are
incompatible in the way they pass these
                       structs so compiling with gcc and linking with the SGI
libc.so (which was compiled with
                       the SGI cc) is likely to cause these problems. Note that
this problem is pretty rare since such
                       functions are not widely used. This may be considered a
bug in gcc but is too involved to fix

this is fixed in gcc libs libgcc.a I'm not sure if it works cause I can't drop
the database just now maybe tomorrow,
If  I can test it tomorrow I'll tell you
Hope it helps
    best wishes





view thread (8+ messages)  latest in thread

Message-ID: <3C03D38F.A5B17B72@atc.unican.es>
Permalink:  ../3C03D38F.A5B17B72@atc.unican.es/
Also on:    postgresql.org/message-id/3C03D38F.A5B17B72@atc.unican.es

 · 

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-admin@postgresql.org
  Cc: lamigo@atc.unican.es, tgl@sss.pgh.pa.us, peter_e@gmx.net, pgsql-hackers@postgresql.org
  Subject: Re: installing 7.2b3 on IRIX 6.5.13
  In-Reply-To: <3C03D38F.A5B17B72@atc.unican.es>
  References: <Pine.LNX.4.30.0111271610310.791-100000@peter.localdomain> <19065.1006875490@sss.pgh.pa.us> <3C03D38F.A5B17B72@atc.unican.es>

* 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