View previous topic :: View next topic |
Author |
Message |
montesq Tux's lil' helper
Joined: 28 Dec 2004 Posts: 111 Location: Paris
|
Posted: Sun Nov 05, 2006 12:40 am Post subject: [compilation croisée] crossdev |
|
|
Bonjour,
Voilà, je voudrais faire une compilation croisée x86_64 -> mips . J'ai donc fait :
Code: | emerge crossdev
crossdev --target mipsel-unknown-linux-uclibc
|
La compilation se passe bien jusqu'à uclibc où j'obtiens :
Code: | gcc -O2 -Wall -D__UCLIBC_GEN_LOCALE gen_wctype.c -o gen_wctype
gen_wctype.c: In function 'main':
gen_wctype.c:511: warning: format '%zu' expects type 'size_t', but argument 3 has type 'int'
gen_wctype.c:740:2: warning: #warning fix the upper bound on the upper/lower tables... save 200 bytes or so
gen_wctype.c:232: warning: unused variable 'last_comb'
gen_wctype.c:231: warning: unused variable 'widthtable'
gen_wctype.c: In function 'newopt':
gen_wctype.c:803: warning: format '%i' expects type 'int', but argument 2 has type 'size_t'
gen_wctype.c:833: warning: format '%zu' expects type 'size_t', but argument 2 has type 'int'
gen_wctype.c:833: warning: format '%zu' expects type 'size_t', but argument 3 has type 'int'
gen_wctype.c:858: warning: format '%zu' expects type 'size_t', but argument 2 has type 'int'
gen_wctype.c:858: warning: format '%zu' expects type 'size_t', but argument 3 has type 'int'
gen_wctype.c: In function 'main':
gen_wctype.c:636: warning: 'i1' may be used uninitialized in this function
gen_wctype.c:636: warning: 'i0' may be used uninitialized in this function
gen_wctype.c:635: warning: 'sc' may be used uninitialized in this function
gen_wctype.c:635: warning: 'n' may be used uninitialized in this function
./gen_wctype en_US
setlocale(LC_CTYPE,en_US) failed!
make: *** [wctables.h] Segmentation fault
make: *** Deleting file `wctables.h' |
Il s'agit de la version 0.9.27-r1 de uclibc qui est stable pour mips...
Je poste l'autre log /var/log/portage/cross-mipsel-unknown-linux-uclibc-info.log éventuellement :
Code: | --------------------------------------------------------------------------------
[32;01m*[0m Host Portage ARCH: amd64
[32;01m*[0m Target Portage ARCH: mips
[32;01m*[0m Target System: mipsel-unknown-linux-uclibc
[32;01m*[0m Stage: 4 (C/C++ compiler)
[32;01m*[0m binutils: binutils-[latest]
[32;01m*[0m gcc: gcc-[latest]
[32;01m*[0m headers: mips-headers-[latest]
[32;01m*[0m libc: uclibc-[latest]
[32;01m*[0m PORTDIR_OVERLAY: /usr/local/portage
[32;01m*[0m PORT_LOGDIR: /var/log/portage
[32;01m*[0m PKGDIR: /usr/portage/packages/cross/mipsel-unknown-linux-uclibc
[32;01m*[0m PORTAGE_TMPDIR: /var/tmp/cross/mipsel-unknown-linux-uclibc
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ -
Portage 2.1.2_rc1-r3 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gentoo x86_64)
=================================================================
System uname: 2.6.18-gentoo x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.6
Last Sync: Sat, 04 Nov 2006 10:20:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python: 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: 2.4-r6
dev-util/confcache: [Not Present]
sys-apps/sandbox: 1.2.18.1
sys-devel/autoconf: 2.13, 2.60
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils: 2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="fr_FR.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="fr fr_FR"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages/cross/mipsel-unknown-linux-uclibc"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp/cross/mipsel-unknown-linux-uclibc"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.fr.gentoo.org/gentoo-portage"
USE="amd64 X alsa apache2 avi berkdb bitmap-fonts browserplugin cdr cli cracklib crypt cups dbus divx4linux dlloader dri dvd dvdr elibc_glibc esd gdbm gif gnome gpm gtk gtk2 hal iconv input_devices_keyboard input_devices_mouse ipv6 isdnlog java jpeg jpg kerberos kernel_linux ldap libg++ linguas_fr linguas_fr_FR mikmod mozilla mp3 mpeg mpg mysql ncurses nls nptl nptlonly nsplugin ogg opengl oss pam pcre pdf perl php png ppds pppd python readline reflection session spell spl ssl symlink tcpd tetex truetype-fonts type1-fonts udev unicode userland_GNU userlocales video_cards_nvidia videos xinerama xorg xvid zlib"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS |
Si quelqu'un a un petit coup de pouce pour moi je suis preneur!!!
Merci d'avance |
|
Back to top |
|
|
CryoGen Veteran
Joined: 11 Feb 2004 Posts: 1426 Location: Bamako - Mali - Afrique
|
Posted: Sun Nov 05, 2006 1:06 am Post subject: |
|
|
Problème de locale apparemment.
Rajoute la locale en_US à ton /etc/locale.gen
un petit "locale-gen" pour la générer et ca devrait aller.
En esperant que ca resolve ton soucis
EDIT: D'ailleur ton emerge info renvoi un truc bizarre pour les locales... un coup en fr_FR.UTF-8, un coup en en_US.UTF-8 _________________ - CryoGen` on #gentoofr@irc.freenode.net
- ~amd64 / KDE4
- I'm the bone of my sword... |
|
Back to top |
|
|
titoucha Advocate
Joined: 21 Jul 2005 Posts: 2374 Location: Genève
|
Posted: Sun Nov 05, 2006 3:55 am Post subject: |
|
|
@CryoGen, c'est pas que bizarre c'est l'erreur de configuration qui fait que sa compilation plante Code: | LANG="fr_FR.UTF-8"
LC_ALL="en_US.UTF-8" | soit tu mets tout en en_US ou tout en fr_FR. |
|
Back to top |
|
|
montesq Tux's lil' helper
Joined: 28 Dec 2004 Posts: 111 Location: Paris
|
Posted: Sun Nov 05, 2006 4:59 pm Post subject: |
|
|
Quote: | @CryoGen, c'est pas que bizarre c'est l'erreur de configuration qui fait que sa compilation plante
Code:
LANG="fr_FR.UTF-8"
LC_ALL="en_US.UTF-8"
soit tu mets tout en en_US ou tout en fr_FR. |
Comme je me doutais que c'était un coup des locales j'ai bidouillé /etc/env.d/02locale et /etc/locale-gen, mais à l'origine avec tout en fr_FR ça marchait pas (peut-être aussi parce qu'il n'y avait pas en en_US dans locale.gen, je me souviens plus...)
Pour info j'ai mis :
[quote=/etc/locale.gen]
en_US UTF-8
[/quote]
[quote=/etc/env.d/02locale]
LANG="en_US"
LC_ALL="en_US"
[/quote]
Avec ça, le problème précédent est résolu = merci
Mais juste après j'obtiens une nouvelle erreur , à savoir :
Quote: | @CryoGen, c'est pas que bizarre c'est l'erreur de configuration qui fait que sa compilation plante
Code:
LANG="fr_FR.UTF-8"
LC_ALL="en_US.UTF-8"
soit tu mets tout en en_US ou tout en fr_FR. |
Comme je me doutais que c'était un coup des locales j'ai bidouillé /etc/env.d/02locale et /etc/locale-gen, mais à l'origine avec tout en fr_FR ça marchait pas (peut-être aussi parce qu'il n'y avait pas en en_US dans locale.gen, je me souviens plus...)
Pour info j'ai mis :
[quote=/etc/locale.gen]
en_US UTF-8
[/quote]
[quote=/etc/env.d/02locale]
LANG="en_US"
LC_ALL="en_US"
[/quote]
Avec ça, le problème précédent est résolu = merci
Mais juste après j'obtiens une nouvelle erreur , à savoir :
Code: |
make -C libc/sysdeps/linux/common headers
make[1]: Entering directory `/var/tmp/cross/mipsel-unknown-linux-uclibc/portage/cross-mipsel-unknown-linux-uclibc/uclibc-0.9.27-r1/work/uClibc-0.9.27/libc/sysdeps/linux/common'
ln -fs ../libc/sysdeps/linux/common/fpu_control.h ../../../..//include/
make[1]: Leaving directory `/var/tmp/cross/mipsel-unknown-linux-uclibc/portage/cross-mipsel-unknown-linux-uclibc/uclibc-0.9.27-r1/work/uClibc-0.9.27/libc/sysdeps/linux/common'
make -C libc/sysdeps/linux/mips headers
make[1]: Entering directory `/var/tmp/cross/mipsel-unknown-linux-uclibc/portage/cross-mipsel-unknown-linux-uclibc/uclibc-0.9.27-r1/work/uClibc-0.9.27/libc/sysdeps/linux/mips'
ln -fs ../libc/sysdeps/linux/mips/sgidefs.h ../../../..//include/
ln -fs ../libc/sysdeps/linux/mips/fpu_control.h ../../../..//include/
make[1]: Leaving directory `/var/tmp/cross/mipsel-unknown-linux-uclibc/portage/cross-mipsel-unknown-linux-uclibc/uclibc-0.9.27-r1/work/uClibc-0.9.27/libc/sysdeps/linux/mips'
QA Notice: USE Flag 'crosscompile_opts_headers-only' not in IUSE for cross-mipsel-unknown-linux-uclibc/uclibc-0.9.27-r1
rm -f *.[oa] *~ core
rm -f gen_wc8bit gen_wctype gen_locale gen_ldc gen_collate
rm -f c8tables.h wctables.h locale_tables.h lt_defines.h locale_collate.h
rm -f gen_mmap locale.mmap lmmtolso
rm -f locale_data.c uClibc_locale_data.h
/var/tmp/cross/mipsel-unknown-linux-uclibc/portage/cross-mipsel-unknown-linux-uclibc/uclibc-0.9.27-r1/work/uClibc-0.9.27/extra/locale
gcc -O2 -Wall -DCTYPE_PACKED=1 -DDO_WIDE_CHAR=1 -D__UCLIBC_GEN_LOCALE gen_wc8bit.c -o gen_wc8bit
gen_wc8bit.c: In function 'main':
gen_wc8bit.c:462: warning: pointer targets in assignment differ in signedness
gen_wc8bit.c:613: warning: pointer targets in assignment differ in signedness
./gen_wc8bit `cat codesets.txt`
processing ./charmaps/ISO-8859-10.pairs... 256 lines done
processing ./charmaps/ISO-8859-1.pairs... 256 lines done
processing ./charmaps/ISO-8859-8.pairs... 220 lines done
processing ./charmaps/GEORGIAN-PS.pairs... 256 lines done
processing ./charmaps/ISO-8859-2.pairs... 256 lines done
processing ./charmaps/TIS-620.pairs... 215 lines done
processing ./charmaps/ISO-8859-9.pairs... 256 lines done
processing ./charmaps/CP1255.pairs... 233 lines done
processing ./charmaps/ASCII.pairs... 128 lines done
processing ./charmaps/ISO-8859-3.pairs... 249 lines done
processing ./charmaps/KOI8-R.pairs... 256 lines done
processing ./charmaps/ISO-8859-13.pairs... 256 lines done
processing ./charmaps/ISO-8859-4.pairs... 256 lines done
processing ./charmaps/ISO-8859-14.pairs... 256 lines done
processing ./charmaps/ISO-8859-5.pairs... 256 lines done
processing ./charmaps/KOI8-T.pairs... 237 lines done
processing ./charmaps/CP1251.pairs... 255 lines done
processing ./charmaps/ISO-8859-15.pairs... 256 lines done
processing ./charmaps/ISO-8859-6.pairs... 211 lines done
processing ./charmaps/KOI8-U.pairs... 256 lines done
processing ./charmaps/ARMSCII-8.pairs... 254 lines done
processing ./charmaps/ISO-8859-16.pairs... 256 lines done
processing ./charmaps/ISO-8859-7.pairs... 250 lines done
tt_num = 216 ti_num = 67
max_wchar = 0x25a0
size is 216 * 16 + 67 * 16 + 38 * 23 = 5402
ctype - CTYPE_IDX_SHIFT = 3 -- 23 * 16 + 105 * 4 = 788
uplow - UPLOW_IDX_SHIFT = 3 -- 23 * 16 + 63 * 8 = 872
c2wc - C2WC_IDX_SHIFT = 3 -- 23 * 16 + 2 * 220 * 8 = 3888
total size = 10950
gcc -O2 -Wall -D__UCLIBC_GEN_LOCALE gen_wctype.c -o gen_wctype
gen_wctype.c: In function 'main':
gen_wctype.c:511: warning: format '%zu' expects type 'size_t', but argument 3 has type 'int'
gen_wctype.c:740:2: warning: #warning fix the upper bound on the upper/lower tables... save 200 bytes or so
gen_wctype.c:232: warning: unused variable 'last_comb'
gen_wctype.c:231: warning: unused variable 'widthtable'
gen_wctype.c: In function 'newopt':
gen_wctype.c:803: warning: format '%i' expects type 'int', but argument 2 has type 'size_t'
gen_wctype.c:833: warning: format '%zu' expects type 'size_t', but argument 2 has type 'int'
gen_wctype.c:833: warning: format '%zu' expects type 'size_t', but argument 3 has type 'int'
gen_wctype.c:858: warning: format '%zu' expects type 'size_t', but argument 2 has type 'int'
gen_wctype.c:858: warning: format '%zu' expects type 'size_t', but argument 3 has type 'int'
gen_wctype.c: In function 'main':
gen_wctype.c:636: warning: 'i1' may be used uninitialized in this function
gen_wctype.c:636: warning: 'i0' may be used uninitialized in this function
gen_wctype.c:635: warning: 'sc' may be used uninitialized in this function
gen_wctype.c:635: warning: 'n' may be used uninitialized in this function
./gen_wctype en_US
typecount[ 0] = 95084 C_unclassified
typecount[ 1] = 88837 C_alpha_nonupper_nonlower
typecount[ 2] = 756 C_alpha_lower
typecount[ 3] = 4 C_alpha_upper_lower
typecount[ 4] = 745 C_alpha_upper
typecount[ 5] = 10 C_digit
typecount[ 6] = 11088 C_punct
typecount[ 7] = 2 C_graph
typecount[ 8] = 0 C_print_space_nonblank
typecount[ 9] = 15 C_print_space_blank
typecount[10] = 0 C_space_nonblank_noncntrl
typecount[11] = 0 C_space_blank_noncntrl
typecount[12] = 6 C_cntrl_space_nonblank
typecount[13] = 1 C_cntrl_space_blank
typecount[14] = 60 C_cntrl_nonspace
typecount[15] = 0 empty_slot
optimizing is* table..
ishift 1 tshift 0 size 49441
ishift 2 tshift 0 size 25561
ishift 3 tshift 0 size 14365
ishift 4 tshift 0 size 9845
ishift 5 tshift 0 size 8453
ishift 6 tshift 0 size 7909
ishift 1 tshift 1 size 25302
ishift 2 tshift 1 size 13560
ishift 3 tshift 1 size 8228
ishift 4 tshift 1 size 5996
ishift 5 tshift 1 size 4956
ishift 6 tshift 1 size 4796
ishift 1 tshift 2 size 13746
ishift 2 tshift 2 size 8008
ishift 3 tshift 2 size 5356
ishift 4 tshift 2 size 4068
ishift 5 tshift 2 size 3604
ishift 1 tshift 3 size 8642
ishift 2 tshift 3 size 5780
ishift 3 tshift 3 size 4368
ishift 4 tshift 3 size 3752
ishift 5 tshift 3 size 3704
ishift 1 tshift 4 size 7070
ishift 2 tshift 4 size 5596
ishift 3 tshift 4 size 4904
ishift 4 tshift 4 size 4688
ishift 1 tshift 5 size 7078
ishift 2 tshift 5 size 6348
ishift 3 tshift 5 size 6048
ishift 4 tshift 5 size 5984
ishift 1 tshift 6 size 7222
ishift 2 tshift 6 size 6880
ishift 3 tshift 6 size 6752
ishift 4 tshift 6 size 6752
ishift 1 tshift 7 size 8016
ishift 2 tshift 7 size 7856
ishift 3 tshift 7 size 7808
ishift 1 tshift 8 size 10488
ishift 2 tshift 8 size 10416
ishift 3 tshift 8 size 10416
ishift 1 tshift 9 size 14472
ishift 2 tshift 9 size 14448
ishift 1 tshift 10 size 20560
ishift 2 tshift 10 size 20556
smallest = 3604
setting ishift 5 tshift 2
make: *** [wctables.h] Segmentation fault
!!! ERROR: cross-mipsel-unknown-linux-uclibc/uclibc-0.9.27-r1 failed.
Call stack:
ebuild.sh, line 1568: Called dyn_compile
ebuild.sh, line 937: Called src_compile
uclibc-0.9.27-r1.ebuild, line 309: Called die
!!! could not make locales
|
Segmentation fault :/
Je renouvelle donc mon appel à l'aide (en espérant que ce soit le dernier)! Merci d'avance |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|