Bonjour a tous.

J'ai pour objectif de faire de la compilation croisée, développé du C++ sur du x86, et de compiler sur du arm9.

J'ai trouvé une solution Eclipse + CDT.

Et pour pouvoir déboguer en ethernet j'ai voulu utiliser gdb sur ma machine x86
et gdbserver sur le arm9.

Et c'est la que tout le probleme se pose.

J'ai télécharger l'archive gdb 7.2 :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
tar xvf gdb-6.8.tar.gz 
cd gdb-6.8 
./configure --build=x86 --host=x86 --target=arm-linux

La configuration s'est bien déroulée mais impossible de procéder a un make ...

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
...
configure: creating ./config.status
config.status: creating Makefile
config.status: creating doc/Makefile
config.status: creating bfd-in3.h
config.status: creating po/Makefile.in
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing default-1 commands
config.status: executing bfd_stdint.h commands
config.status: executing default commands
make[2]: entrant dans le répertoire « /home/marco/Téléchargements/gdb-7.2/libiberty »
echo ./regex.o ./cplus-dem.o ./cp-demangle.o ./md5.o ./sha1.o ./alloca.o ./argv.o ./choose-temp.o ./concat.o ./cp-demint.o ./crc32.o ./dyn-string.o ./fdmatch.o ./fibheap.o ./filename_cmp.o ./floatformat.o ./fnmatch.o ./fopen_unlocked.o ./getopt.o ./getopt1.o ./getpwd.o ./getruntime.o ./hashtab.o ./hex.o ./lbasename.o ./lrealpath.o ./make-relative-prefix.o ./make-temp-file.o ./objalloc.o ./obstack.o ./partition.o ./pexecute.o ./physmem.o ./pex-common.o ./pex-one.o ./pex-unix.o ./safe-ctype.o ./sort.o ./spaces.o ./splay-tree.o ./strerror.o ./strsignal.o ./unlink-if-ordinary.o ./xatexit.o ./xexit.o ./xmalloc.o ./xmemdup.o ./xstrdup.o ./xstrerror.o ./xstrndup.o > required-list
make[3]: entrant dans le répertoire « /home/marco/Téléchargements/gdb-7.2/libiberty/testsuite »
make[3]: Rien à faire pour « all ».
make[3]: quittant le répertoire « /home/marco/Téléchargements/gdb-7.2/libiberty/testsuite »
make[2]: quittant le répertoire « /home/marco/Téléchargements/gdb-7.2/libiberty »
make[2]: entrant dans le répertoire « /home/marco/Téléchargements/gdb-7.2/intl »
make[2]: Rien à faire pour « all ».
make[2]: quittant le répertoire « /home/marco/Téléchargements/gdb-7.2/intl »
make[2]: entrant dans le répertoire « /home/marco/Téléchargements/gdb-7.2/bfd »
Making info in doc
...
 
checking for iconv declaration... install-shextern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for library containing waddstr... no
configure: WARNING: no enhanced curses library found; disabling TUI
checking for library containing tgetent... no
configure: error: no termcap library found
make[1]: *** [configure-gdb] Erreur 1
make[1]: quittant le répertoire « /home/marco/Téléchargements/gdb-7.2 »
make: *** [all] Erreur 2

J'ai essayer d'installer certaines librairies manquantes a la ./configure ...
mais rien n'y fait, je n'arrive a rien.

Et pour le arm, j'ai tenter de compiler gdbserver :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
tar xvf gdb-6.8.tar.gz 
cd gdb-6.8 
./configure --host=arm-linux 
make
Mais j'ai les mêmes erreurs ....
Auriez vous des suggestions ?

merci,
Marc