[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gulliver] Compilation pour une autre machine avec autre libc


From "David MENTRE" <dmentre at linux-france dot org>
Subject Re: [gulliver] Compilation pour une autre machine avec autre libc
Date Mon, 31 Jul 2006 09:05:45 +0200

Salut Sylvain,

Le 30/07/06, Sylvain Collilieux<sylvain dot collilieux at wanadoo dot fr> a écrit :
- comment connaître la version de la glibc de la machine cible ?

À exécuter sur la machine cible :


David at marasai:~$ ls -l /lib/libc.so.6
lrwxrwxrwx  1 root root 13 2005-11-22 01:21 /lib/libc.so.6 -> libc-2.3.2.so

David at marasai:~$ /lib/libc.so.6
GNU C Library stable release version 2.3.2, by Roland McGrath et al.
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 3.3.5 (Debian 1:3.3.5-12).
Compiled on a Linux 2.6.0-test7 system on 2005-05-10.
Available extensions:
       GNU libio by Per Bothner
       crypt add-on version 2.1 by Michael Glad and others
       linuxthreads-0.10 by Xavier Leroy
       BIND-8.2.3-T5B
       libthread_db work sponsored by Alpha Processor Inc
       NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
Thread-local storage support included.
Report bugs using the `glibcbug' script to <bugs at gnu dot org>.

(j'ai trouvé ça tout à fait par hasard avec
http://www.google.fr/search?q=know+glibc+version&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:fr:official
;-)

- comment compiler avec cette version de la glibc voire avec la version
gcc de la plateforme cible ?

Installer sur ton pc de compilation la version de gcc et de la glibc de ta plate-forme cible. Assez galère mais "formateur". :-)

Autre solution nettement moins propre puisque tu as le même type de
processeur entre source et cible :
- faire un tar de la hiérarchie de ta plateforme cible ;
- la dé-tarrer dans un répertoire de ta machine de compilation ;
- un bon chroot dans le sus-dit répertoire et yaplukakompiler.

Pas sûr que ça marche mais ça ne coute pas cher d'essayer.

Sera cela qu'on appelle de la cross compilation ?

Chi Chegnore.



Au passage, si tu veux t'éviter toutes ces galères de cross-compil', je te conseilles vivement l'utilisation de l'option --static de gcc. ;-)

Amicalement,
d.