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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppgsql-ports @
categoriespostgresql
postedFeb 12, '08 at 10:09a
activeFeb 12, '08 at 10:09a
posts1
users1
websitepostgresql.org
irc#postgresql

1 user in discussion

romain Hamery: 1 post

People

Translate

site design / logo © 2023 Grokbase