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

Re: Cros-compilation of postgresql

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Lars Jørgensen <5400213m001(at)stofanet(dot)dk>
Cc: pgsql-ports(at)postgresql(dot)org
Subject: Re: Cros-compilation of postgresql
Date: 2006-07-03 03:37:02
Message-ID: 22611.1151897822@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-ports
=?iso-8859-1?Q?Lars_J=F8rgensen?= <5400213m001(at)stofanet(dot)dk> writes:
> I'm working with a postgreSQL database, which I must install on a powerpc. =
> The OS of the powerpc does not contain a compiler, so I need to cross =
> compile it on a ordinary linux and then copy it to the powerpc.

Cross-compiles are seldom fun :-(

> gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Winline =
> -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing zic.o =
> ialloc.o scheck.o localtime.o -L../../src/port =
> -Wl,-rpath,/usr/local/powerpc/pgsql/lib-lpgport -lcrypt -lresolv -lnsl =
> -ldl -lm -o zic
> /usr/bin/ld: zic.o: Relocations in generic ELF (EM: 20)
> zic.o: could not read symbols: File in wrong format

gcc and /usr/bin/ld seem not to be on the same wavelength about what
they are doing.  Are you sure your crosscompile setup works at all?
I'd suggest working on a "hello world"-type program until you've got
the bugs out of that.

			regards, tom lane

In response to

pgsql-ports by date

Next:From: Tom LaneDate: 2006-07-03 03:39:13
Subject: Re: PostgreSQL and Kerberos 5 on Solaris
Previous:From: James GatesDate: 2006-06-30 15:55:17
Subject: PostgreSQL and Kerberos 5 on Solaris

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