Philippe Martin wrote:

> I have the same problem on IRIX 6.5.1 as Tobias Lehtipalo
> (Subject: v6.4.2 compiler problems cont'd, Date: Sat, 6 Feb 1999),
> that is:

> gcc -I../../../include -I../../../backend    -U_NO_XOPEN4 -Wall
>    -Wmissing-prototypes -O2  -I../..   -c heaptuple.c -o heaptuple.o

> ld -n32 -r -o SUBSYS.o heaptuple.o indextuple.o indexvalid.o
printtup.o
>              scankey.o tupdesc.o
> ld32: FATAL 12: Expecting n32 objects: heaptuple.o is o32.

> I haven't seen any answer to this problem. The advice in FAQ_Irix
>(the Makefile.custom  and the  ./configure --enable-locale) didn't
help.
>My "gcc" doesn't recognizes the option "-n32".

Phillipe,


We have Postgres 6.5.1 installed on IRIX 6.5.4 in our Indy, Impact, and
O2 machines. We use the cc compiler for Postgres rather than gcc. It
recognizes -o32, -n32, and 64 bit compilation. Try using "configure
--with-CC=cc" to specify that compiler.

If you don't have a cc compiler, then you'll have to tell the linker
(ld) to use the -o32 option. To do this, get rid of your Makefile.custom
and change the template/irix5 file to the following:

AROPT:crs
CFLAGS:-o32
SHARED_LIB:
ALL:
SRCH_INC:
SRCH_LIB:
USE_LOCALE:no
DLSUFFIX:.so
YFLAGS:-d
YACC:
LDFLAGS:-o32

The last line (which I added to the file) tells the linker that the
programs are -o32. Of course, if you really need to use the -n32
programs, then you'll have to find a c compiler that can compile in
-o32.

-Tony





Reply via email to