During stage3, while emerging portage, it failed at =sys-devel/gettext-0.18.1.1-r3, with messages like this: /bin/sh ../libtool --tag=CC --mode=compile gcc -m64 -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I.. -I../intl -I../intl -I.. -I.. -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -I../intl -I///Users/yanll/Gentoo/usr/include/libxml2 -I./libcroco -DNO_LARGEFILE_SOURCE -I/Users/yanll/Gentoo/usr/include -march=nocona -c -o stpncpy.lo stpncpy.c libtool: compile: gcc -m64 -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DEXEEXT=\"\" -I. -I.. -I../intl -I../intl -I.. -I.. -DDEPENDS_ON_LIBICONV=1 -DDEPENDS_ON_LIBINTL=1 -I../intl -I///Users/yanll/Gentoo/usr/include/libxml2 -I./libcroco -DNO_LARGEFILE_SOURCE -I/Users/yanll/Gentoo/usr/include -march=nocona -c stpncpy.c -fno-common -DPIC -o .libs/stpncpy.o stpncpy.c:34: error: expected declaration specifiers or '...' before '__builtin_object_size' stpncpy.c:35: warning: conflicting types for built-in function '__builtin___stpncpy_chk' make[4]: *** [stpncpy.lo] Error 1 make[4]: Leaving directory `/Users/yanll/Gentoo/var/tmp/portage/sys-devel/gettext-0.18.1.1-r3/work/gettext-0.18.1.1/gettext-tools/gnulib-lib' make[3]: *** [all] Error 2 make[3]: Leaving directory `/Users/yanll/Gentoo/var/tmp/portage/sys-devel/gettext-0.18.1.1-r3/work/gettext-0.18.1.1/gettext-tools/gnulib-lib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/Users/yanll/Gentoo/var/tmp/portage/sys-devel/gettext-0.18.1.1-r3/work/gettext-0.18.1.1/gettext-tools' make[1]: *** [all] Error 2 make[1]: Leaving directory `/Users/yanll/Gentoo/var/tmp/portage/sys-devel/gettext-0.18.1.1-r3/work/gettext-0.18.1.1/gettext-tools' make: *** [all-recursive] Error 1 emake failed Reproducible: Always yanll@yanll-mac ~/Gentoo $ emerge --info Portage 2.2.7-prefix (prefix/darwin/macos/10.9/x64, gcc-4.2.1, unavailable, 13.0.0 x86_64) ================================================================= System uname: Darwin-13.0.0-x86_64-i386-64bit Timestamp of tree: Sat, 09 Nov 2013 23:06:07 +0000 app-shells/bash: 4.2_p39-r1 dev-util/pkgconfig: 0.28 sys-devel/autoconf: 2.69 sys-devel/automake: 1.12.4 sys-devel/gcc-config: 1.8-r00.1 sys-devel/libtool: 2.4.2 sys-devel/make: 3.82-r4 Repositories: gentoo_prefix ACCEPT_KEYWORDS="~x64-macos" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-apple-darwin13" CFLAGS="-march=nocona" CHOST="x86_64-apple-darwin13" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/gentoo-release /etc/terminfo" CPPFLAGS="-I/Users/yanll/Gentoo/usr/include -I/Users/yanll/Gentoo/tmp/usr/include" CXXFLAGS="" DISTDIR="/Users/yanll/Gentoo/usr/portage/distfiles" FCFLAGS="" FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LDFLAGS="-Wl,-search_paths_first -L/Users/yanll/Gentoo/usr/lib -L/Users/yanll/Gentoo/lib -L/Users/yanll/Gentoo/tmp/usr/lib" PKGDIR="/Users/yanll/Gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/Users/yanll/Gentoo/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/Users/yanll/Gentoo/var/tmp" PORTDIR="/Users/yanll/Gentoo/usr/portage" PORTDIR_OVERLAY="" USE="aqua bootstrap coreaudio cracklib cxx internal-glib ipv6 modules ncurses objc objc++ prefix x64-macos zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="Darwin" 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" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" 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: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
I copied the gettext-0.18.1.1-r3.ebuild to new one and changed a liitle: --- gettext-0.18.1.1-r3.ebuild 2012-10-27 19:18:01.000000000 +0800 +++ gettext-0.18.1.1-r4.ebuild 2013-11-13 23:17:06.000000000 +0800 @@ -41,7 +41,7 @@ "${S}"/gettext-tools/misc/convert-archive.in || die # work around problem in gnulib on OSX Lion and Mountain Lion - if [[ ${CHOST} == *-darwin1[12] ]] ; then + if [[ ${CHOST} == *-darwin1[123] ]] ; then sed -i -e '/^#ifndef weak_alias$/a\# undef __stpncpy' \ gettext-tools/gnulib-lib/stpncpy.c || die sed -i -e '/^# undef __stpncpy$/a\# undef stpncpy' \ Now, stage3 (emerging portage) could keep going on.
thanks, committed