lot of error messages on the console/terminals /bin/bash: warning: setlocale: LC_ALL: cannot change locale (hu_HU.UTF8) # locale-gen * Generating 7 locales (this might take a while) with 1 jobs * (1/7) Generating hu_HU.UTF-8 ... /usr/sbin/locale-gen: line 264: 25712 Segmentation fault "${DESTDIR}"usr/bin/localedef ${LOCALEDEF_OPTS} -i "${input}" -f "${charmap}" -A "${ALIAS}" --prefix "${DESTDIR}" "${locale}" [ !! ] * (2/7) Generating en_US.ISO-8859-1 ... /usr/sbin/locale-gen: line 264: 25716 Segmentation fault "${DESTDIR}"usr/bin/localedef ${LOCALEDEF_OPTS} -i "${input}" -f "${charmap}" -A "${ALIAS}" --prefix "${DESTDIR}" "${locale}" [ !! ] * (3/7) Generating en_US.UTF-8 ... /usr/sbin/locale-gen: line 264: 25720 Segmentation fault "${DESTDIR}"usr/bin/localedef ${LOCALEDEF_OPTS} -i "${input}" -f "${charmap}" -A "${ALIAS}" --prefix "${DESTDIR}" "${locale}" [ !! ] * (4/7) Generating en_GB.ISO-8859-1 ... /usr/sbin/locale-gen: line 264: 25724 Segmentation fault "${DESTDIR}"usr/bin/localedef ${LOCALEDEF_OPTS} -i "${input}" -f "${charmap}" -A "${ALIAS}" --prefix "${DESTDIR}" "${locale}" [ !! ] * (5/7) Generating en_GB.UTF-8 ... /usr/sbin/locale-gen: line 264: 25728 Segmentation fault "${DESTDIR}"usr/bin/localedef ${LOCALEDEF_OPTS} -i "${input}" -f "${charmap}" -A "${ALIAS}" --prefix "${DESTDIR}" "${locale}" [ !! ] * (6/7) Generating hu_HU.ISO-8859-2 ... [ ok ] * (7/7) Generating hu_HU.ISO-8859-15 ... [ ok ] * Generation complete after some updates, it became like this. It's been working with this config for years. Reproducible: Always Steps to Reproduce: 1. run localedef or locale-gen 2. 3. Actual Results: segfault Expected Results: should work fine, like in the past Portage 2.1.6.13 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r6 i686) ================================================================= System uname: Linux-2.6.30-gentoo-r6-i686-Intel-R-_Core-TM-2_Duo_CPU_T7300_@_2.00GHz-with-gentoo-1.12.11.1 Timestamp of tree: Thu, 24 Sep 2009 01:45:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.8-r1 dev-lang/python: 2.4.6, 2.5.4-r3, 2.6.2-r1 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 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.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -mtune=core2 -march=core2 -mmmx -msse3 -msse2 -msse -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/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CPPFLAGS="-O2 -mtune=core2 -march=core2 -mmmx -msse3 -msse2 -msse -pipe -fomit-frame-pointer" CXXFLAGS="-O2 -mtune=core2 -march=core2 -mmmx -msse3 -msse2 -msse -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.inode.at/ http://gentoo.inf.elte.hu/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://gentoo.mneisen.org/ http://gentoo.mirror.dkm.cz/pub/gentoo/ http://mirror.jamit.de/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/ ftp://gentoo.inode.at/source/ http://mirror.switch.ch/ftp/mirror/gentoo/" LANG="hu_HU.UTF8" LC_ALL="C" LDFLAGS="-Wl,-O1" LINGUAS="hu en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_EXTRA_OPTS="-z" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="7zip X X509 a52 aac acl acpi administrator aio akode alsa amarok amr amrnb amrwb ao arts audiofile avi bash-completion bdf berkdb bidi bitmap-fonts bluetooth branding bzip2 cairo caps cardbus catalogs cdda cddb cdio cdparanoia cdr chroot cli console consolekit contrast cracklib crypt cups curl custom-cxxflags custom-optimization dbus dell dirac disk-partition divx divx4linux djvu dlloader dmi dri dts dv dvd dvdcss dvdnav dvdr dvdread eap-tls ebook emboss encode erandom exif fam fbsplash ffmpeg firefox flac font-server fontconfig foomaticdb fortran fuse galago gdbm gif gimp gimpprint glibc-omitfp gmedia gmp gnutls gphoto2 gpm gsm gstreamer gtk gtk2 hal hybrid hybrid-auth iconv icotools id3 id3tag idea idn imagemagick imlib irda irmc isdnlog jbig jpeg jpeg2k kde kdepim kipi lame laptop ldap libass libdvdcss libdvdread libg++ libgcrypt libnotify libsysfs libv4l2 libwww linuxthreads-tls live logitech-mouse logrotate lzma lzo mad matroska mbox md5sum mjpeg mmap mmx mmx2 mmxext mng modules mozcalendar mozilla moznoirc moznoroaming mozsvg mp2 mp3 mp4 mpeg mplayer msn mudflap musepack musicbrainz nat ncur ncurses ndiswrapper network nls no-old-linux nojoystick nptl nptlonly nsplugin ntp nvidia ogg oggvorbis old-crypt openal openct openexr opengl openldap openmp opensc oss pam pango parport pcmcia pcre pcsc-lite pdf pdflib pentium4 perl phonon png portaudio ppds pppd pptp python qt qt3 qt3support qt4 query-browser quicktime rc5 rdesktop readline realmedia reflection resolvconf restrict-javascript rtc rtsp samba sane scanner schroedinger sdl sdl-image seamonkey server ses session shout skype slang smartcard snmp sound spell spl splugin sse sse2 sse3 ssl ssse3 startup-notification stream svg swat sysfs syslog tcl tcltk tcpd theora threads thumbnail thunar thunderbird tiff timezone tk tordns truetype truetype-fonts twolame type1-fonts ucs2 udev unicode upnp urandom usb userlocales utempter v4l v4l2 vcd vcdinfo vcdx vcfinfo video vidix vim-pager vim-syntax vim-with-x vorbis vorbis-psy wavpack webkit wifi win32codecs winbind winetools wmf wmp workbench wpa x264 x86 xcomposite xext xine xinerama xinetd xml xml2 xorg xosd xpm xprint xscreensaver xulrunner xv xvid xvmc zlib zrtp" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="hu en" USERLAND="GNU" VIDEO_CARDS="fbdev nv v4l vesa" Unset: CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTDIR_OVERLAY
[I--] [ ] sys-libs/glibc-2.9_p20081201-r2 [I--] [ ] sys-devel/gettext-0.17 (0) # locale locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory LANG=hu_HU.UTF8 LC_CTYPE="hu_HU.UTF8" LC_NUMERIC="hu_HU.UTF8" LC_TIME="hu_HU.UTF8" LC_COLLATE="hu_HU.UTF8" LC_MONETARY="hu_HU.UTF8" LC_MESSAGES="hu_HU.UTF8" LC_PAPER="hu_HU.UTF8" LC_NAME="hu_HU.UTF8" LC_ADDRESS="hu_HU.UTF8" LC_TELEPHONE="hu_HU.UTF8" LC_MEASUREMENT="hu_HU.UTF8" LC_IDENTIFICATION="hu_HU.UTF8" LC_ALL=hu_HU.UTF8
Try with hu_HU.UTF-8.
after some googling, on a forum one said, glibc with -fomit-frame-pointer causes this segfault. I've been using this USE flag for years. Now I've turned this off, re-compiled glibc, then magic happens: # locale-gen * Generating 7 locales (this might take a while) with 1 jobs * (1/7) Generating hu_HU.UTF-8 ... [ ok ] * (2/7) Generating en_US.ISO-8859-1 ... [ ok ] * (3/7) Generating en_US.UTF-8 ... [ ok ] * (4/7) Generating en_GB.ISO-8859-1 ... [ ok ] * (5/7) Generating en_GB.UTF-8 ... [ ok ] * (6/7) Generating hu_HU.ISO-8859-2 ... [ ok ] * (7/7) Generating hu_HU.ISO-8859-15 ... [ ok ] * Generation complete I think the glibc ebuild should disable this use flag by default, or fix the problem about the segfault.
now I've changed my profile locales to -8 # locale LANG=hu_HU.UTF-8 LC_CTYPE="hu_HU.UTF-8" LC_NUMERIC="hu_HU.UTF-8" LC_TIME="hu_HU.UTF-8" LC_COLLATE="hu_HU.UTF-8" LC_MONETARY="hu_HU.UTF-8" LC_MESSAGES="hu_HU.UTF-8" LC_PAPER="hu_HU.UTF-8" LC_NAME="hu_HU.UTF-8" LC_ADDRESS="hu_HU.UTF-8" LC_TELEPHONE="hu_HU.UTF-8" LC_MEASUREMENT="hu_HU.UTF-8" LC_IDENTIFICATION="hu_HU.UTF-8" LC_ALL=hu_HU.UTF-8 /etc/locale.gen has always been like this: hu_HU.UTF-8 UTF-8
Duplicate of #214687. *** This bug has been marked as a duplicate of bug 214687 ***