Port Postgres on the Acme system FOXBOARD

From: "romain Hamery" <romain(dot)hamery(at)free(dot)fr>
To: pgsql-ports(at)postgresql(dot)org
Subject: Port Postgres on the Acme system FOXBOARD
Date: 2008-02-12 09:43:27
Message-ID: 4a8cafc10802120143k7ad48b1eo3b37953a9bc97cc6@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

Hi !

For my project I would like to port the PostgreSQL on the Acme system
FOXBOARD (http://www.acmesystems.it/?id=4). I have to cross-compile the
sources with the CRIS architecture (gcc-cris compiler already installed on
my computer). I work with version 8.2.5 of Postgres. And it is impossible to
find an example of cross-compilation.

I have tried to use the command ./configure with many arguments :

./configure --host=cris-axis-linux-gnu
--prefix=/home/romain/postgresql_out/ CC="/usr/local/cris/bin/gcc-cris
-mlinux" --without-readline --without-zlib

But when I launch the command make it tells me :

/usr/local/cris/bin/gcc-cris -mlinux -O2 -Wall -Wmissing-prototypes
-Wpointer-arith -Winline -fno-strict-aliasing -I../../src/include
-D_GNU_SOURCE -c -o localtime.o localtime.c
/usr/local/cris/bin/gcc-cris -mlinux -O2 -Wall -Wmissing-prototypes
-Wpointer-arith -Winline -fno-strict-aliasing -I../../src/include
-D_GNU_SOURCE -c -o strftime.o strftime.c
/usr/local/cris/bin/gcc-cris -mlinux -O2 -Wall -Wmissing-prototypes
-Wpointer-arith -Winline -fno-strict-aliasing -I../../src/include
-D_GNU_SOURCE -c -o pgtz.o pgtz.c
/usr/local/cris/cris-axis-linux-gnu/bin/ld -r -o SUBSYS.o localtime.o
strftime.o pgtz.o
/usr/local/cris/cris-axis-linux-gnu/bin/ld: localtime.o: uses non-prefixed
symbols, but writing file with _-prefixed symbols
Bad value: failed to merge target specific data of file localtime.o
/usr/local/cris/cris-axis-linux-gnu/bin/ld: strftime.o: uses non-prefixed
symbols, but writing file with _-prefixed symbols
Bad value: failed to merge target specific data of file strftime.o
/usr/local/cris/cris-axis-linux-gnu/bin/ld: pgtz.o: uses non-prefixed
symbols, but writing file with _-prefixed symbols
Bad value: failed to merge target specific data of file pgtz.o
make[2]: *** [SUBSYS.o] Erreur 1
make[2]: quittant le répertoire « /home/romain/postgresql-8.2.5/src/timezone
»
make[1]: *** [all] Erreur 2
make[1]: quittant le répertoire « /home/romain/postgresql-8.2.5/src »
make: *** [all] Erreur 2

Do somebody have any information on how to do the cross-compilation and to
solve my problem ?

Thanks a lot.

Romain

Browse pgsql-ports by date

  From Date Subject
Next Message Vladimir Baranov 2008-02-22 11:56:53 Troubles at building PostgreSQL with MinGW
Previous Message Israel Brewster 2008-02-11 18:47:04 Re: Windows static link