Port Postgres on the Acme system FOXBOARD

Поиск
Список
Период
Сортировка
От romain Hamery
Тема Port Postgres on the Acme system FOXBOARD
Дата
Msg-id 4a8cafc10802120143k7ad48b1eo3b37953a9bc97cc6@mail.gmail.com
обсуждение исходный текст
Список 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

В списке pgsql-ports по дате отправления:

Предыдущее
От: Israel Brewster
Дата:
Сообщение: Re: Windows static link
Следующее
От: Vladimir Baranov
Дата:
Сообщение: Troubles at building PostgreSQL with MinGW