From: Tom Lane <tgl@sss.pgh.pa.us>
To: Lars Jørgensen <5400213m001@stofanet.dk>
Cc: pgsql-ports@postgresql.org
Subject: Re: Cros-compilation of postgresql
Date: Sun, 02 Jul 2006 23:37:02 -0400
Message-ID: <22611.1151897822@sss.pgh.pa.us> (raw)
In-Reply-To: <c1714debd2c6c99335a6915d9c642097@webmail.stofa.dk>
References: <c1714debd2c6c99335a6915d9c642097@webmail.stofa.dk>
=?iso-8859-1?Q?Lars_J=F8rgensen?= <5400213m001@stofanet.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
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-ports@postgresql.org
Cc: tgl@sss.pgh.pa.us, 5400213m001@stofanet.dk
Subject: Re: Cros-compilation of postgresql
In-Reply-To: <22611.1151897822@sss.pgh.pa.us>
References: <c1714debd2c6c99335a6915d9c642097@webmail.stofa.dk> <22611.1151897822@sss.pgh.pa.us>
* 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