TSIA. This had not happened with the previous version (i.e. 8.28-r1). $ emerge --info !!! No gcc found. You probably need to 'source /etc/profile' !!! to update the environment of this terminal and possibly !!! other terminals also. Portage 2.3.18-prefix (python 3.5.4-final-0, prefix/darwin/macos/10.13/x64, [unavailable], unavailable, 17.4.0 x86_64) ================================================================= System uname: Darwin-17.4.0-x86_64-i386-64bit Timestamp of repository gentoo_prefix: Thu, 15 Feb 2018 10:26:40 +0000 sh bash 4.3_p48-r1 app-shells/bash: 4.3_p48-r1::gentoo_prefix dev-lang/perl: 5.26.1-r1::gentoo_prefix dev-lang/python: 2.7.14::gentoo_prefix, 3.5.4::gentoo_prefix dev-util/cmake: 3.10.2::gentoo_prefix dev-util/pkgconfig: 0.29.2::gentoo_prefix sys-devel/autoconf: 2.69-r4::gentoo_prefix sys-devel/automake: 1.15.1-r1::gentoo_prefix sys-devel/libtool: 2.4.6-r4::gentoo_prefix sys-devel/make: 4.2.1-r1::gentoo_prefix Repositories: gentoo_prefix location: /Users/jsteward/Gentoo/usr/portage sync-type: rsync sync-uri: rsync://mirrors.tuna.tsinghua.edu.cn/gentoo-portage-prefix priority: -1000 sync-rsync-extra-opts: ACCEPT_KEYWORDS="~x64-macos" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-apple-darwin17" CC="x86_64-apple-darwin17-clang" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-apple-darwin17" CONFIG_PROTECT="/Users/jsteward/Gentoo/etc" CONFIG_PROTECT_MASK="/Users/jsteward/Gentoo/etc/ca-certificates.conf /Users/jsteward/Gentoo/etc/env.d /Users/jsteward/Gentoo/etc/gconf /Users/jsteward/Gentoo/etc/gentoo-release /Users/jsteward/Gentoo/etc/revdep-rebuild /Users/jsteward/Gentoo/etc/terminfo" CXX="x86_64-apple-darwin17-clang++" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/Users/jsteward/Gentoo/usr/portage/distfiles" FCFLAGS="" FEATURES="assume-digests binpkg-logs case-insensitive-fs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync multilib-strict news nostrip parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans unprivileged" FFLAGS="" GENTOO_MIRRORS="https://mirrors.tuna.tsinghua.edu.cn/gentoo/" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-dead_strip_dylibs" MAKEOPTS="-j8" PKGDIR="/Users/jsteward/Gentoo/usr/portage/packages" PORTAGE_CONFIGROOT="/Users/jsteward/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 --exclude=/.git" PORTAGE_TMPDIR="/Users/jsteward/Gentoo/var/tmp" USE="aqua coreaudio cxx ipv6 modules ncurses nls objc objc++ prefix prefix-guest readline ssl unicode x64-macos zlib" ABI_X86="64" 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" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="Darwin" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" L10N="en ja zh" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby24" 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: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
I have the same problem. Relvant lines in build log: $ cat build.log | grep libstdbuf x86_64-apple-darwin16-clang -I. -I./lib -Ilib -I./lib -Isrc -I./src -I/Volumes/Data/gentoo/usr/include -fPIC -march=native -O2 -pipe -c -o src/src_libstdbuf_so-libstdbuf.o `test -f 'src/libstdbuf.c' || echo './'`src/libstdbuf.c x86_64-apple-darwin16-clang -fPIC -march=native -O2 -pipe -shared -Wl,-dead_strip_dylibs -o src/libstdbuf.so src/src_libstdbuf_so-libstdbuf.o -L/Volumes/Data/gentoo/usr/lib -lintl -Wl,-framework -Wl,CoreFoundation src/ginstall -c src/libstdbuf.so '/Volumes/Data/gentoo/var/tmp/portage/sys-apps/coreutils-8.29/image//Volumes/Data/gentoo/usr/libexec/coreutils' [33;01m*[0m QA Notice: invalid self-reference install_name src/libstdbuf.so in /Volumes/Data/gentoo/usr/libexec/coreutils/libstdbuf.so $ otool -L libstdbuf.so libstdbuf.so: src/libstdbuf.so (compatibility version 0.0.0, current version 0.0.0) /Volumes/Data/gentoo/usr/lib/libintl.8.dylib (compatibility version 10.0.0, current version 10.5.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.60.2)
These lines can be found in eariler versions of coreutils ebuild: if [[ ${CHOST} == *-darwin* ]] ; then sed -i \ -e "/src_libstdbuf_so_LDFLAGS = -shared/s:-shared:-dynamiclib -install_name ${EPREFIX}/usr/libexec/coreutils/libstdbuf.dylib:" \ Makefile.in \ || die But it is missing in coreutils-8.29, however.
indeed, thanks!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=592f652fd2387627411c99bdbb203bbe2339c587 commit 592f652fd2387627411c99bdbb203bbe2339c587 Author: Fabian Groffen <grobian@gentoo.org> AuthorDate: 2018-02-17 07:15:54 +0000 Commit: Fabian Groffen <grobian@gentoo.org> CommitDate: 2018-02-17 07:15:54 +0000 sys-apps/coreutils: add back libstdbuf fixes, bug #647708 Closes: https://bugs.gentoo.org/647708 Package-Manager: Portage-2.3.18-prefix, Repoman-2.3.6 sys-apps/coreutils/coreutils-8.29.ebuild | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)