[prev in list] [next in list] [prev in thread] [next in thread] 

List:       postgresql-ports
Subject:    [PORTS] Port Postgres on the Acme system FOXBOARD
From:       "romain Hamery" <romain.hamery () free ! fr>
Date:       2008-02-12 9:43:27
Message-ID: 4a8cafc10802120143k7ad48b1eo3b37953a9bc97cc6 () mail ! gmail ! com
[Download RAW message or body]

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

[Attachment #3 (text/html)]

Hi !<br><br>For my project I would like to port the PostgreSQL on the Acme system \
FOXBOARD (<a href="http://www.acmesystems.it/?id=4">http://www.acmesystems.it/?id=4</a>).&nbsp; \
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.<br> <br>I have tried to use the \
command ./configure with many arguments :<br><br style="font-style: italic;"><span \
style="font-style: italic;">&nbsp;./configure --host=cris-axis-linux-gnu \
--prefix=/home/romain/postgresql_out/ CC=&quot;/usr/local/cris/bin/gcc-cris \
-mlinux&quot; --without-readline --without-zlib</span><br> <br>&nbsp;But when I \
launch the command make it tells me :<br><br><span style="font-style: \
italic;">/usr/local/cris/bin/gcc-cris -mlinux -O2 -Wall -Wmissing-prototypes \
-Wpointer-arith -Winline -fno-strict-aliasing -I../../src/include \
-D_GNU_SOURCE&nbsp;&nbsp; -c -o localtime.o localtime.c</span><br style="font-style: \
italic;"> <span style="font-style: italic;">/usr/local/cris/bin/gcc-cris -mlinux -O2 \
-Wall -Wmissing-prototypes -Wpointer-arith -Winline -fno-strict-aliasing \
-I../../src/include -D_GNU_SOURCE&nbsp;&nbsp; -c -o strftime.o strftime.c</span><br \
style="font-style: italic;"> <span style="font-style: \
italic;">/usr/local/cris/bin/gcc-cris -mlinux -O2 -Wall -Wmissing-prototypes \
-Wpointer-arith -Winline -fno-strict-aliasing -I../../src/include \
-D_GNU_SOURCE&nbsp;&nbsp; -c -o pgtz.o pgtz.c</span><br style="font-style: italic;"> \
<span style="font-style: italic;">/usr/local/cris/cris-axis-linux-gnu/bin/ld -r -o \
SUBSYS.o localtime.o strftime.o pgtz.o</span><br style="font-style: italic;"><span \
style="font-style: italic;">/usr/local/cris/cris-axis-linux-gnu/bin/ld: localtime.o: \
uses non-prefixed symbols, but writing file with _-prefixed symbols</span><br \
style="font-style: italic;"> <span style="font-style: italic;">Bad value: failed to \
merge target specific data of file localtime.o</span><br style="font-style: \
italic;"><span style="font-style: \
italic;">/usr/local/cris/cris-axis-linux-gnu/bin/ld: strftime.o: uses non-prefixed \
symbols, but writing file with _-prefixed symbols</span><br style="font-style: \
italic;"> <span style="font-style: italic;">Bad value: failed to merge target \
specific data of file strftime.o</span><br style="font-style: italic;"><span \
style="font-style: italic;">/usr/local/cris/cris-axis-linux-gnu/bin/ld: pgtz.o: uses \
non-prefixed symbols, but writing file with _-prefixed symbols</span><br \
style="font-style: italic;"> <span style="font-style: italic;">Bad value: failed to \
merge target specific data of file pgtz.o</span><br style="font-style: italic;"><span \
style="font-style: italic;">make[2]: *** [SUBSYS.o] Erreur 1</span><br \
style="font-style: italic;"> <span style="font-style: italic;">make[2]: quittant le \
répertoire « /home/romain/postgresql-8.2.5/src/timezone »</span><br \
style="font-style: italic;"><span style="font-style: italic;">make[1]: *** [all] \
Erreur 2</span><br style="font-style: italic;"> <span style="font-style: \
italic;">make[1]: quittant le répertoire « /home/romain/postgresql-8.2.5/src \
»</span><br style="font-style: italic;"><span style="font-style: italic;">make: *** \
[all] Erreur 2</span><br><br>Do somebody have any information on how to do the \
cross-compilation and to solve my problem ?<br> <br>Thanks a lot.<br><br>Romain<br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic