# grep gperf /var/tmp/portage/sys-libs/glibc-2.12.2/work/glibc-2.12.2/FAQ -A2 * Some files are built with special tools. E.g., files ending in .gperf need a `gperf' program. The GNU version (now available in a separate package, formerly only as part of libg++) is known to work while some vendor versions do not. /usr/bin/install -c -m 644 xlocale.h /var/tmp/portage/sys-libs/glibc-2.12.2/image//usr/include/xlocale.h cd /var/tmp/portage/sys-libs/glibc-2.12.2/work/build-x86-x86_64-pc-linux-gnu-nptl && /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ar cruv libc_pic.a `cat csu/stamp.os iconv/stamp.os locale/stamp.os localedata/stamp.os iconvdata/stamp.os assert/stamp.os ctype/stamp.os intl/stamp.os catgets/stamp.os math/stamp.os setjmp/stamp.os signal/stamp.os stdlib/stamp.os stdio-common/stamp.os libio/stamp.os dlfcn/stamp.os malloc/stamp.os string/stamp.os wcsmbs/stamp.os time/stamp.os dirent/stamp.os grp/stamp.os pwd/stamp.os posix/stamp.os io/stamp.os termios/stamp.os resource/stamp.os misc/stamp.os socket/stamp.os sysvipc/stamp.os gmon/stamp.os gnulib/stamp.os wctype/stamp.os manual/stamp.os shadow/stamp.os gshadow/stamp.os po/stamp.os argp/stamp.os crypt/stamp.os nptl/stamp.os resolv/stamp.os nss/stamp.os rt/stamp.os conform/stamp.os debug/stamp.os c_stubs/stamp.os libidn/stamp.os nptl_db/stamp.os inet/stamp.os hesiod/stamp.os sunrpc/stamp.os nis/stamp.os nscd/stamp.os streams/stamp.os login/stamp.os elf/stamp.os stamp.os` /usr/bin/install -c -m 644 /var/tmp/portage/sys-libs/glibc-2.12.2/work/build-x86-x86_64-pc-linux-gnu-nptl/locale/libBrokenLocale.a /var/tmp/portage/sys-libs/glibc-2.12.2/image//usr/lib32/libBrokenLocale.a : /var/tmp/portage/sys-libs/glibc-2.12.2/image//usr/lib32/libBrokenLocale.a cd programs \ && gperf -acCgopt -k1,2,5,9,$ -L ANSI-C -N charmap_hash charmap-kw.gperf > charmap-kw.h.new /bin/sh: line 1: gperf: command not found make[2]: *** [programs/charmap-kw.h] Error 127 make[2]: *** Waiting for unfinished jobs.... : /var/tmp/portage/sys-libs/glibc-2.12.2/work/build-x86-x86_64-pc-linux-gnu-nptl/libc_pic.a make[2]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.12.2/work/glibc-2.12.2/locale' make[1]: *** [locale/subdir_install] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.12.2/work/glibc-2.12.2' make: *** [install] Error 2 emake failed * ERROR: sys-libs/glibc-2.12.2 failed (install phase): Portage 2.1.10.11 (hardened/linux/amd64, gcc-4.5.3, glibc-2.12.2-r0, 2.6.37-hardened-r7 x86_64) ================================================================= System Settings ================================================================= Timestamp of tree: Thu, 29 Sep 2011 17:15:01 +0000 app-shells/bash: 4.1_p9 dev-lang/python: 2.7.1-r1 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.8.3-r1 sys-apps/sandbox: 2.4 sys-devel/binutils: 2.21.1-r1 sys-devel/gcc: 4.5.3-r1 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r1 sys-devel/make: 3.82-r1 sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers) sys-libs/glibc: 2.12.2 Repositories: gentoo nikoli ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=atom -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=atom -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="" GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="ru en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages/core2-hardened" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/nikoli" USE="acl amd64 bash-completion bzip2 caps cli cracklib crypt cups cxx dri gd geoip gmp gnutls gpm hardened iconv idn imap ipv6 justify libwww mmx mmxext modules mudflap multilib ncurses nls nptl nptlonly openmp pam pax_kernel pcre perl pppd readline sasl session smp socks5 spell sqlite sse sse2 sse3 ssl ssse3 symlink sysfs threads truetype udev unicode xattr xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface load memory rrdtool swap syslog hddtemp sensors cpu cpufreq disk entropy network ping processes apcups nginx" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" NGINX_MODULES_HTTP="access auth_basic autoindex fastcgi gzip rewrite scgi" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS ================================================================= Package Settings ================================================================= sys-libs/glibc-2.12.2 was built with the following: USE="hardened (multilib) nls -debug -gd -glibc-omitfp -profile (-selinux) -vanilla" CFLAGS="-march=core2 -pipe -O2 -fno-strict-aliasing -fno-stack-protector" CXXFLAGS="-march=core2 -pipe -O2 -fno-strict-aliasing"
there should be no need for gperf at build time. the tarball comes with the gperf files already "compiled". it doesn't seem to be run on my system. post a full build log as an attachment.
Created attachment 288291 [details] build.log
the even weirder part is that it tries to generate the file at install time. if it needed to regenerate things, it should have done it at build time. if you edit sys-libs/glibc/files/eblits/src_install.eblit and change the `emake install_root....` line to include a "-d", then re-emerge and post a new log file, that might produce something useful. the log will be much bigger though ...
Will try. But does glibc build fine for you after removing gperf? If you are not able to reproduce 'emerge --depclean --with-bdeps=n' should help.
works fine on my hardened box # gperf bash: gperf: command not found # emerge glibc ... >>> Installing (1 of 1) sys-libs/glibc-2.12.2 ...
build.log - 8M, 627M unpacked: https://nikoli.msk.ru/fls/glibc-2.12.2_gperf_d_build.log.xz
sys-libs/glibc-2.20-r2 builds fine for me without gperf.