View previous topic :: View next topic |
Author |
Message |
txboy Tux's lil' helper
Joined: 01 Apr 2004 Posts: 86 Location: La Isla - Cádiz (Spain)
|
Posted: Thu Nov 23, 2006 7:45 pm Post subject: Crossdev & uclibc fail |
|
|
I'm trying to get a toolchain for arm-xscale processor in order to make my own system and install it in my palm tx.
I've installed precompiled packages in it an run linux, so I know it works.
After reading some forums, wikis and webs, I 'm trying to get the toolchain for this arch and using crossdev to do it.
I've tried with different versions of gcc but always same error when compiling uclibc: Code: | Using kernel headers from 2.6.17 for architecture 'arm'
provided in directory /usr/arm-palm-linux-uclibc/usr
+ TOPDIR=.
+ CC=' arm-palm-linux-uclibc-gcc'
+ /bin/sh extra/scripts/gen_bits_syscall_h.sh
+ cmp include/bits/sysnum.h include/bits/sysnum.h.new
+ mv -f include/bits/sysnum.h.new include/bits/sysnum.h
make -C libc/sysdeps/linux/common headers
make[1]: Entering directory `/var/tmp/cross/arm-palm-linux-uclibc/portage/uclibc-0.9.28-r1/work/uClibc-0.9.28/libc/sysdeps/linux/common'
ln -fs ../libc/sysdeps/linux/common/fpu_control.h ../../../..//include/
make[1]: Leaving directory `/var/tmp/cross/arm-palm-linux-uclibc/portage/uclibc-0.9.28-r1/work/uClibc-0.9.28/libc/sysdeps/linux/common'
make -C libc/sysdeps/linux/arm headers
make[1]: Entering directory `/var/tmp/cross/arm-palm-linux-uclibc/portage/uclibc-0.9.28-r1/work/uClibc-0.9.28/libc/sysdeps/linux/arm'
ln -fs ../libc/sysdeps/linux/arm/fpu_control.h ../../../..//include/
make[1]: Leaving directory `/var/tmp/cross/arm-palm-linux-uclibc/portage/uclibc-0.9.28-r1/work/uClibc-0.9.28/libc/sysdeps/linux/arm'
QA Notice: USE Flag 'crosscompile_opts_headers-only' not in IUSE for cross-arm-palm-linux-uclibc/uclibc-0.9.28-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/arm-palm-linux-uclibc/portage/uclibc-0.9.28-r1/work/uClibc-0.9.28/extra/locale
gcc -O2 -Wall -DCTYPE_PACKED=1 -DDO_WIDE_CHAR=1 -D__UCLIBC_GEN_LOCALE gen_wc8bit.c -o gen_wc8bit
gcc -O2 -Wall -D__UCLIBC_GEN_LOCALE gen_wctype.c -o gen_wctype
gcc -O2 -Wall gen_collate.c -o gen_collate
gen_wctype.c:752:2: warning: #warning fix the upper bound on the upper/lower tables... save 200 bytes or so
gen_wctype.c: In function 'main':
gen_wctype.c:236: warning: unused variable 'last_comb'
gen_wctype.c:235: warning: unused variable 'widthtable'
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_wctype.c:648: warning: 'i1' may be used uninitialized in this function
gen_wctype.c:648: warning: 'i0' may be used uninitialized in this function
gen_wctype.c:647: warning: 'sc' may be used uninitialized in this function
gen_wctype.c:647: warning: 'n' may be used uninitialized in this function
gen_collate.c:317:2: warning: #warning devel code
gen_collate.c:328:2: warning: #warning devel code
./gen_wc8bit `cat codesets.txt`
gen_collate.c:703:2: warning: #warning devel code
gen_collate.c: In function 'processfile':
gen_collate.c:805: warning: unused variable 'p'
gen_collate.c:1238:2: warning: #warning mult by 2 for rule indecies
gen_collate.c:1461:2: warning: #warning need to update last in order and position or check
gen_collate.c:1547:2: warning: #warning devel code
gen_collate.c:1690:2: warning: #warning devel code
gen_collate.c:1811:2: warning: #warning need to add section to weight list?
gen_collate.c:1891:2: warning: #warning have to use rule for current section!!!
gen_collate.c:1942:2: warning: #warning devel code
gen_collate.c:1945:2: warning: #warning hack to get around hu_HU reorder-after problem
gen_collate.c:2352:2: warning: #warning devel code
gen_collate.c: In function 'dump_section':
gen_collate.c:2466: warning: unused variable 'i'
gen_collate.c:2618:2: warning: #warning fix the index2weight check!!
gen_collate.c:2655:2: warning: #warning check ko_kR and 9
gen_collate.c:2662:2: warning: #warning check ko_kR and 9
gen_collate.c:2686:2: warning: #warning check ko_kR and 9
gen_collate.c:2708:2: warning: #warning check
gen_collate.c:3193:2: warning: #warning handle UNDEFINED idx specially? what if in only some of derived?
gen_collate.c: In function 'finalize_base':
gen_collate.c:2601: warning: unused variable 'n'
gen_collate.c:2600: warning: unused variable 'p'
gen_collate.c: In function 'print_starter_all_node':
gen_collate.c:3253: warning: unused variable 'x'
gen_collate.c:3252: warning: unused variable 'n'
gen_collate.c:3251: warning: unused variable 'p'
gen_collate.c:3250: warning: unused variable 'ci'
gen_collate.c: In function 'add_rule':
gen_collate.c:3638: warning: unused variable 'j'
gen_collate.c: In function 'add_range_rule':
gen_collate.c:3715: warning: unused variable 'j'
gen_collate.c: In function 'dump_collate':
gen_collate.c:3939: warning: format '%d' expects type 'int', but argument 3 has type 'long unsigned int'
gen_collate.c: At top level:
gen_collate.c:3792: warning: 'dump_base_locale' defined but not used
gen_collate.c:3828: warning: 'dump_der_locale' defined but not used
gen_collate.c:850: warning: 'print_colnode' defined but not used
gen_collate.c:2584: warning: 'print_starter_node' defined but not used
gen_collate.c:3248: warning: 'print_starter_all_node' defined but not used
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 gen_locale.c -o gen_locale
./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..
gen_locale.c:20: warning: pointer targets in initialization differ in signedness
gen_locale.c:21: warning: pointer targets in initialization differ in signedness
gen_locale.c:22: warning: pointer targets in initialization differ in signedness
gen_locale.c:23: warning: pointer targets in initialization differ in signedness
gen_locale.c:24: warning: pointer targets in initialization differ in signedness
gen_locale.c:25: warning: pointer targets in initialization differ in signedness
gen_locale.c: In function 'do_locale_names':
gen_locale.c:196: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
gen_locale.c:206: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
gen_locale.c:207: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
gen_locale.c:210: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
gen_locale.c:1060:2: warning: #warning fix the char entries for monetary... target signedness of char may be different!
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] Violación de segmento
make: *** Se espera a que terminen otras tareas....
!!! ERROR: cross-arm-palm-linux-uclibc/uclibc-0.9.28-r1 failed.
Call stack:
ebuild.sh, line 1546: Called dyn_compile
ebuild.sh, line 937: Called src_compile
uclibc-0.9.28-r1.ebuild, line 375: Called die
!!! make locales failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! This ebuild is from an overlay: '/usr/local/portage'
... done!
>>> Emerging (1 of 1) cross-arm-palm-linux-uclibc/uclibc-0.9.28-r1 to /
* uClibc-0.9.28.tar.bz2 MD5 ;-) ... [ ok ]
* uClibc-0.9.28.tar.bz2 RMD160 ;-) ... [ ok ]
* uClibc-0.9.28.tar.bz2 SHA1 ;-) ... [ ok ]
* uClibc-0.9.28.tar.bz2 SHA256 ;-) ... [ ok ]
* uClibc-0.9.28.tar.bz2 size ;-) ... [ ok ]
* uClibc-0.9.28-patches-1.5.tar.bz2 MD5 ;-) ... [ ok ]
* uClibc-0.9.28-patches-1.5.tar.bz2 RMD160 ;-) ... [ ok ]
* uClibc-0.9.28-patches-1.5.tar.bz2 SHA1 ;-) ... [ ok ]
* uClibc-0.9.28-patches-1.5.tar.bz2 SHA256 ;-) ... [ ok ]
* uClibc-0.9.28-patches-1.5.tar.bz2 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* checking uClibc-0.9.28.tar.bz2 ;-) ... [ ok ]
* checking uClibc-0.9.28-patches-1.5.tar.bz2 ;-) ... [ ok ]
|
The lines Code: | smallest = 3604
setting ishift 5 tshift 2
make: *** [wctables.h] Violación de segmento | are the same with gcc-3.4.6 and gcc-4.1.1.
For those who don't speak a little bit of spanish, violación de segmento means segmentation fault.
I think I'm something bad in my uclibc config, but don't know what.
Any help ? |
|
Back to top |
|
|
Chewi Developer
Joined: 01 Sep 2003 Posts: 886 Location: Edinburgh, Scotland
|
Posted: Fri Nov 24, 2006 12:58 pm Post subject: |
|
|
I think you need to generate your own locales on the machine itself. Unfortunately the way the uclibc ebuild handles locales is a bit broken at the moment but basically, you need to create a file called uClibc-0.9.28-arm-full-locale.tar.gz and put it in /usr/portage/distfiles. This file should contain the following...
c8tables.h
locale_data.c
locale_mmap.h
lt_defines.h
uClibc_locale_data.h
wctables.h
Read the file in extra/locale/README for more info on how to generate these. You also need to build uclibc with USE="pregen -userlocales". Sorry I can't be more specific but I found it pretty confusing myself and even though my uclibc successfully built, I haven't built much with it yet so I'm still not sure whether I did it right or not. |
|
Back to top |
|
|
txboy Tux's lil' helper
Joined: 01 Apr 2004 Posts: 86 Location: La Isla - Cádiz (Spain)
|
Posted: Fri Nov 24, 2006 1:40 pm Post subject: |
|
|
Thank you very much, Chewi.
I hope that helps me.
By the way, do you know what could happen if I select gnu glibc instead of uclibc for building an arm toolchain ? |
|
Back to top |
|
|
Chewi Developer
Joined: 01 Sep 2003 Posts: 886 Location: Edinburgh, Scotland
|
Posted: Fri Nov 24, 2006 2:11 pm Post subject: |
|
|
I don't know anything about the system you're building for but assuming glibc supports it and it has enough RAM and storage space, it should work okay. It sounds like the sort of system that would suit uclibc better though. |
|
Back to top |
|
|
Abraxa Apprentice
Joined: 14 Jun 2005 Posts: 174 Location: Germany
|
Posted: Sun Dec 31, 2006 6:40 pm Post subject: |
|
|
Apologies for bumping this old thread - I just wanted to put a link to https://forums.gentoo.org/viewtopic-t-513587.html here since it describes the solution to the problem discussed in this thread.
Summary: iconv doesn't work with uClibc and thus needs to be removed from the USE flags.
-Abraxa |
|
Back to top |
|
|
Chewi Developer
Joined: 01 Sep 2003 Posts: 886 Location: Edinburgh, Scotland
|
Posted: Sun Dec 31, 2006 10:05 pm Post subject: |
|
|
If you're serious about using uclibc, it's probably better to use an SVN snapshot since 0.9.29 isn't too far away. I'm not sure what the status of iconv is but my recent snapshot successfully compiled with it enabled. |
|
Back to top |
|
|
|