Re: BUG #1593: Problem with installation

Lists: pgsql-bugs
From: "Taj Nezami" <tajoddin(dot)nezami(at)toshiba-trel(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1593: Problem with installation
Date: 2005-04-12 17:47:14
Message-ID: 20050412174714.A6AE6F0B38@svr2.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 1593
Logged by: Taj Nezami
Email address: tajoddin(dot)nezami(at)toshiba-trel(dot)com
PostgreSQL version: 8.0.2
Operating system: ARM Embedded Linux
Description: Problem with installation
Details:

I have cross-compiled the PostgreSQL 8.0.2 on the Fedora Core-1 host for my
Intel-XScale based target running embedded Linux 2.4.26-vrs1, using the
following command sequences:
$ >./configure --prefix=/usr --host=arm-linux --build=i686-pc-linux-gnu
--without-docdir
$make

This completes successfully. But when I subsequently try to do:
$ >make install-strip DESTDIR=/tmp/pgsql

I get the following error messages:
.....................
mkdir -p --
/opt/arcom/arm-linux/src/postgresql-8.0.2/build/usr/share/postgresql./zic -d
/opt/arcom/arm-linux/src/postgresql-8.0.2/build/usr/share/postgresql/timezon
e ./data/africa ./data/antarctica ./data/asia ./data/australasia
./data/europe ./data/northamerica ./data/southamerica ./data/pacificnew
./data/etcetera ./data/factory ./data/backward ./data/systemv ./data/solar87
./data/solar88 ./data/solar89
./zic: ./zic: cannot execute binary file
make[3]: *** [install] Error 126
make[3]: Leaving directory
`/opt/arcom/arm-linux/src/postgresql-8.0.2/src/timezone'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/opt/arcom/arm-linux/src/postgresql-8.0.2/src'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/opt/arcom/arm-linux/src/postgresql-8.0.2'
make: *** [install-strip] Error 2

I am new to this and it is blocking me. Please help.


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Taj Nezami" <tajoddin(dot)nezami(at)toshiba-trel(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1593: Problem with installation
Date: 2005-04-12 18:55:56
Message-ID: 25715.1113332156@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs

"Taj Nezami" <tajoddin(dot)nezami(at)toshiba-trel(dot)com> writes:
> I have cross-compiled the PostgreSQL 8.0.2 on the Fedora Core-1 host for my
> Intel-XScale based target running embedded Linux 2.4.26-vrs1, using the
> following command sequences:

We don't really support cross-compilation at the moment. There are
several AC_TRY_RUN tests in the configure script that may or may not
make the right guesses when cross-compiling, plus as you found out
there's at least one program that needs to be run during the
installation phase.

It shouldn't be too hard to copy over the zic program and its input
data files and run it on the target machine, but the existing Makefiles
won't help you with that :-(

On the whole I'd advise building on the target. If it's got enough
oomph to run a database, it can surely run a compiler ...

regards, tom lane