When compiling 'sys-libs/uclibc-0.9.28-r1' I get the following error, I am compiling with i686-pc-linux-gnu-4.1.1 ----------- optimizing is* table.. 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 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 make: *** Waiting for unfinished jobs.... !!! ERROR: sys-libs/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. ----------- Portage 2.1.1-r2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.16.16 i686) ================================================================= System uname: 2.6.16.16 i686 AMD Athlon(tm) XP 2500+ Gentoo Base System version 1.12.6 Last Sync: Tue, 21 Nov 2006 01:30:07 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.3.5-r2, 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="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" 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 /var/qmail/alias /var/qmail/control" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig buildpkg distlocks fixpackages metadata-transfer sandbox sfperms strict usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_EXTRA_OPTS="" 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" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X X509 aac aalib aim alsa apache2 berkdb bitmap-fonts bonobo bzip2 cdda cddb cgi chroot cjk clamd cli cracklib crypt cups curl curlwrappers dbus divx4linux dlloader dri dvb dvd dvdr elibc_glibc encode esd fbdev ffmpeg flac fortran gd gdbm gif gimpprint gpm gstreamer gtk2 gtkhtml hardware-carrier httpd iconv input_devices_keyboard input_devices_mouse isdnlog jack java jpeg kernel_linux libclamav libg++ lirc lirc_devices_com1 live mad mhash mikmod ming mmx mono mozilla mp3 mpeg mysql ncurses network nls nptl nptlonly nsplugin nvidia offensive opengl openntpd oscar oss pam pcre perl php png ppds pppd print python qmail qt3 quotas readline real reflection rtc ruby samba sasl session skey soap sockets speex spell spl sse ssl stream svga swat tcl tcltk tcpd theora tiff tk transmitter truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l v4l2 vcd vfat video_cards_nv video_cards_nvidia video_cards_v4l videos vorbis wifi win32codecs xanix xml xmms xorg xpm xvid zip zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
I was looking more into this issue and it looks like it does this if "iconv" is in the USE flags, I used: USE="-iconv" emerge =sys-libs/uclibc-0.9.28-r1 and it seams to compile fine.
do not built uclibc with nls support as it isnt quite usable yet
*** Bug 159379 has been marked as a duplicate of this bug. ***
*** Bug 176606 has been marked as a duplicate of this bug. ***
*** Bug 177093 has been marked as a duplicate of this bug. ***
*** Bug 178514 has been marked as a duplicate of this bug. ***
*** Bug 183524 has been marked as a duplicate of this bug. ***
*** Bug 183984 has been marked as a duplicate of this bug. ***
*** Bug 188326 has been marked as a duplicate of this bug. ***
hmm, crossdev puts USE="-*" in USE for uclibc but it won't compile anyway
*** Bug 199559 has been marked as a duplicate of this bug. ***
*** Bug 211233 has been marked as a duplicate of this bug. ***
Well errr.... Why don't we just mask the flag?
The patch from bug 177093 is a valid fix for this. Or as in Comment #1: USE="-iconv" for uclibc packages.
I'll double check the portage overlay for uclibc 0.9.29 as well as the commited 0.9.28.3-r3 ebuild. iconv causes a fail, err... if memory serves, it was an iconv issue anyway. Native iconv in one's virtual/libc is actually the simplest sollution when you're aiming for footprint reduction and a dependancy is expecting to be able to use iconv. Several packages are ourright broken using a non-iconv virtual/libc and their ebuilds don't even take into account that something other than glibc might be installed on the system. Is there an updated version of this bug? Has anyone managed to get uclibc with iconv working for packages that need iconv?
(In reply to comment #15) >Has anyone managed to get uclibc with iconv working for packages that need iconv? Yes. Using mini-iconv and fiddling with linker flags or simply adding #include "my-iconv.c" glib:2 is an example of one such ebuild where one can bang his/her head for days if not doing something as simple as that.
(In reply to comment #16) > Yes. Using mini-iconv and fiddling with linker flags or simply adding #include > "my-iconv.c" glib:2 is an example of one such ebuild where one can bang his/her > head for days if not doing something as simple as that. This is gentoo we're talking about, that doesn't make any sense... Shouldn't the simple procedure of adding the "iconv" use flag by placcing a line with "sys-libs/uclibc iconv" in the file /etc/portage/package.use make it work right? I've tried such a method for every version of sys-libs/uclibc, including the ones that aren't considered "untested" (~some_arch) ... no success with the iconv use flag on any of them. Why is this bug marked as "RESOLVED WONTFIX" anyway?
Is anybody still working on the broken locales?