Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] armeb-unknown-linux-uclibc - uclibc fails to build
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
n0rbi666
l33t
l33t


Joined: 04 Mar 2005
Posts: 707
Location: \Poland\Krakow

PostPosted: Sat Nov 04, 2006 11:26 pm    Post subject: [SOLVED] armeb-unknown-linux-uclibc - uclibc fails to build Reply with quote

Hi!
I'm trying to build armeb-unknown-linux-uclibc with crossdev, but - uclibc fails to build :
Quote:
gcc -O2 -Wall -D__UCLIBC_GEN_LOCALE gen_wctype.c -o gen_wctype
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_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_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-armeb-unknown-linux-uclibc/uclibc-0.9.28-r1 failed.
Call stack:
ebuild.sh, line 1568: Called dyn_compile
ebuild.sh, line 937: Called src_compile
uclibc-0.9.28-r1.ebuild, line 375: Called die

Build info:
Quote:
--------------------------------------------------------------------------------------------------------------------------------
* Host Portage ARCH: x86
* Target Portage ARCH: arm
* Target System: armeb-unknown-linux-uclibc
* Stage: 4 (C/C++ compiler)

* binutils: binutils-[latest]
* gcc: gcc-[latest]
* headers: linux-headers-[latest]
* libc: uclibc-[latest]

* PORTDIR_OVERLAY: /usr/local/portage
* PORT_LOGDIR: /var/log/portage
* PKGDIR: /usr/portage/packages/cross/armeb-unknown-linux-uclibc
* PORTAGE_TMPDIR: /var/tmp/cross/armeb-unknown-linux-uclibc
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ -
Portage 2.1.2_rc1-r3 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r3, 2.6.18-no2 i686)
=================================================================
System uname: 2.6.18-no2 i686 AMD Athlon(tm)
Gentoo Base System version 1.12.6
Last Sync: Sat, 04 Nov 2006 12:30:01 +0000
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: [Not Present]
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.50.0.6
sys-devel/gcc-config: 1.3.14
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://gentoo.zie.pg.gda.pl http://mirror.gentoo.no ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo"
LANG="pl_PL"
LC_ALL="pl_PL.UTF-8"
LINGUAS="pl"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages/cross/armeb-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/armeb-unknown-linux-uclibc"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X aac aiglx alsa audiofile berkdb bitmap-fonts bzip2 cairo cli cracklib crypt dbus dlloader dri dvd dvdr dvdread elibc_glibc encode ffmpeg flac fortran gdbm gif gpm hal iconv imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog java jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kdexdeltas kernel_linux lame libg++ linguas_pl lirc lirc_devices_devinput mad mmx mmxext motif mp3 mpeg musepack ncurses nls nptl nptlonly ogg openal opengl pam pcre perl pic png ppds pppd python qt3 qt4 quicktime readline reflection sdl session slang spell spl sse ssl tcpd threads tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU userlocales v4l v4l2 video_cards_ati video_cards_fglrx video_cards_radeon vorbis xcomposite xine xinerama xml xorg xv zlib"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

I've tried build it with older linux-headers (2.6.16), older gcc (3.4.6), older uclibc (0.9.28) and every time it fails with the same error :|
Maybe someone has an idea how to fix it ?


Last edited by n0rbi666 on Mon Nov 06, 2006 11:03 am; edited 1 time in total
Back to top
View user's profile Send private message
bender02
Tux's lil' helper
Tux's lil' helper


Joined: 05 May 2006
Posts: 82
Location: Nashville, TN, USA

PostPosted: Sun Nov 05, 2006 5:03 am    Post subject: Reply with quote

same error here, trying to get i686-pc-linux-uclibc with crossdev.
_________________
(I love deadlines. I like the whooshing sound they make as they fly by. [DA])
Back to top
View user's profile Send private message
n0rbi666
l33t
l33t


Joined: 04 Mar 2005
Posts: 707
Location: \Poland\Krakow

PostPosted: Sun Nov 05, 2006 9:07 am    Post subject: Reply with quote

bender02 - can you post your emerge --info ? Maybe we should post it on bugs.gentoo.org ?
Back to top
View user's profile Send private message
bender02
Tux's lil' helper
Tux's lil' helper


Joined: 05 May 2006
Posts: 82
Location: Nashville, TN, USA

PostPosted: Sun Nov 05, 2006 9:43 pm    Post subject: Reply with quote

My emerge --info:
Code:
Gentoo Base System version 1.12.5
Portage 2.1.1-r1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.16-suspend2-r8 i686)
=================================================================
System uname: 2.6.16-suspend2-r8 i686 AMD Athlon(tm) XP-M (LV) 2000+
Last Sync: Thu, 02 Nov 2006 02:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/data/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en sk cz cs"
PKGDIR="/usr/portage/packages"
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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/sunrise /usr/portage/local/layman/science"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa berkdb bitmap-fonts bzip2 cli cracklib crypt cups djvu dlloader dri dvd elibc_glibc encode esd exif flac fortran gdbm gif gpm gtk gtk2 iconv imap input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 isdnlog jpeg kernel_linux latex libg++ linguas_cs linguas_cz linguas_en linguas_sk mmx mp3 ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png ppds pppd python qt3 readline reflection sdl session spell spl sse ssl svga tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_radeon video_cards_vesa vim vorbis xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS


I did some googling, and it seems that the problem is with generating locales. Using use flag "pregen" (should download a pre-generated set of locales; works only for x86 target), it produced a different error (basically that it cannot find the file with pregenerated locales), so I modified the ebuild to copy that file to the right location with the right name; but it still didn't compile, even different error, now during real compiling. Anyway - wrap up is that it's a problem with generating locales. BTW, just emerging uclibc as a package works fine.
_________________
(I love deadlines. I like the whooshing sound they make as they fly by. [DA])
Back to top
View user's profile Send private message
n0rbi666
l33t
l33t


Joined: 04 Mar 2005
Posts: 707
Location: \Poland\Krakow

PostPosted: Sun Nov 05, 2006 10:11 pm    Post subject: Reply with quote

I was googling too, but I did'nt found any solution, so I've posted here my problem ...
And I've posted it to bgo : https://bugs.gentoo.org/show_bug.cgi?id=154154
Maybe they will find some solution ...
Back to top
View user's profile Send private message
n0rbi666
l33t
l33t


Joined: 04 Mar 2005
Posts: 707
Location: \Poland\Krakow

PostPosted: Mon Nov 06, 2006 11:03 am    Post subject: Reply with quote

USE="-nls -userlocales -iconv -ipv6" crossdev -s4 -t armeb-unkbown-linux-uclibc works for me
USE="-nls -userlocales" crossdev -s4 -t armeb-unkbown-linux-uclibc Didn't worked, so it might be iconv problem?
Back to top
View user's profile Send private message
wazow
Apprentice
Apprentice


Joined: 08 Jan 2004
Posts: 182
Location: Rødovre, Denmark

PostPosted: Mon Nov 06, 2006 11:14 am    Post subject: Reply with quote

n0rbi666 wrote:
USE="-nls -userlocales -iconv -ipv6" crossdev -s4 -t armeb-unkbown-linux-uclibc works for me
USE="-nls -userlocales" crossdev -s4 -t armeb-unkbown-linux-uclibc Didn't worked, so it might be iconv problem?


I have heard some rumours (can't remember where) that iconv does not compile with uclibc.
Back to top
View user's profile Send private message
bender02
Tux's lil' helper
Tux's lil' helper


Joined: 05 May 2006
Posts: 82
Location: Nashville, TN, USA

PostPosted: Tue Nov 07, 2006 6:43 am    Post subject: Reply with quote

Thanks, that worked for me as well.
_________________
(I love deadlines. I like the whooshing sound they make as they fly by. [DA])
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
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