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

Re: Bug #612: PostgreSQL 7.2 does not build according to documentation under IRIX w/ MIPSpro

From: "Robert E(dot) Bruccoleri" <bruc(at)stone(dot)congenomics(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Cc: jp(at)celestrion(dot)net
Subject: Re: Bug #612: PostgreSQL 7.2 does not build according to documentation under IRIX w/ MIPSpro
Date: 2002-03-20 00:54:29
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
On the SGI, you should not use gcc for compilation, but the path in this example
includes references to the location where gcc is placed (if the SGI freeware CD's are
loaded). I've been using PostgreSQL on the SGI platform for five years, and the configuration
works very well if you set it up right. Here's what I use:

export SGI_ABI=-64
cat >config.cache <<EOF
ac_cv_prog_CPP=${ac_cv_prog_CPP='cc -E'}
gmake clean
CC="cc -64" \
AWK=awk \
INSTALL=/pg/postgresql-7.2/config/install-sh \
LDFLAGS="-rpath /usr/local64/lib" \
./configure --prefix=/pg/postgresql-7.2 \
            --enable-hba \
            --with-pgport=6546 \
            --disable-locale \
            --enable-cassert \
            --with-template=irix5 \
            --with-includes="/usr/local64/include /usr/local64/include/readline" \
            --with-libs=/usr/local64/lib \
            --without-CXX \
            --with-maxbackends=128 \
            --enable-debug \
            --without-java \
gmake check
gmake install

Notice that CPP is overridded to use the C compiler, and gcc is completely turned off.

Also, Makefile.custom contains

CUSTOM_CC = cc -64
LD += -64

Finally, the following change in src/Makefile.shared helps to place the pglib shared object
higher in memory for better virtual memory utilization.

<   LINK.shared         = $(COMPILER) -shared -check_registry /usr/lib64/so_locations -Wl,-set_version,sgi$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)
>   LINK.shared         = $(COMPILER) -shared -Wl,-set_version,sgi$(SO_MAJOR_VERSION).$(SO_MINOR_VERSION)

| Robert E. Bruccoleri, Ph.D. | email: bruc(at)acm(dot)org                |
| P.O. Box 314                | URL: |
| Pennington, NJ 08534        |                                    |

pgsql-bugs by date

Next:From: Tom LaneDate: 2002-03-20 05:25:09
Subject: Re: 7.2 crash...
Previous:From: Tom LaneDate: 2002-03-19 23:55:49
Subject: Re: Storage problems

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