Same result with 1.6.2 and 1.6.3: >>> Compiling source in /var/tmp/portage/pngcrush-1.6.3/work/pngcrush-1.6.3 ... gcc -c -I. "-O2 pngcrush.c gcc -c -I. "-O2 png.c /bin/sh: -c: line 0: unexpected EOF while looking for matching `"' /bin/sh: -c: line 1: syntax error: unexpected end of file make: *** [png.o] Error 2 make: *** Waiting for unfinished jobs.... /bin/sh: -c: line 0: unexpected EOF while looking for matching `"' /bin/sh: -c: line 1: syntax error: unexpected end of file make: *** [pngcrush.o] Error 2 !!! ERROR: media-gfx/pngcrush-1.6.3 failed. Call stack: ebuild.sh, line 1546: Called dyn_compile ebuild.sh, line 937: Called src_compile pngcrush-1.6.3.ebuild, line 22: Called die !!! (no error message) !!! If you need support, post the topmost build error, and the call stack if relevant. If I then go into the directory where portage unpacked it and run "make" it builds fine. Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.18-suspend2 i686) ================================================================= System uname: 2.6.18-suspend2 i686 AMD Athlon(tm) XP 1900+ Gentoo Base System version 1.12.5 Last Sync: Thu, 05 Oct 2006 20:50:01 +0000 ccache version 2.3 [enabled] app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.2.11-r1 dev-lang/python: 2.3.5, 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.3 dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 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="-O2 -march=athlon-xp -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 /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo" CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch prelink sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.itdnet.net/gentoo/ http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="bg_BG.utf8" LINGUAS="us en_US en_us bg bg_BG bg_bg" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" 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 /usr/portage/local/layman/portage-xgl /usr/local/gentopia" SYNC="rsync://rsync2.bg.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext X aalib alsa apache2 arts bash-completion berkdb bitmap-fonts bzip2 caca cairo cdr cli crypt cscope cups dbus dlloader dri eds elibc_glibc emboss encode fam firefox flac foomaticdb fortran gdbm gif gpm gstreamer gzip hal imlib input_devices_keyboard input_devices_mouse ipv6 isdnlog java jpeg kde kdeenablefinal kernel_linux ldap libcaca libg++ linguas_bg linguas_bg_BG linguas_bg_bg linguas_en_US linguas_en_us linguas_us logitech-mouse mad mikmod mmx mozdevelop mp3 mpeg musicbrainz ncurses nls nptl nptlonly offensive ogg opengl oss pam pcre perl png ppds pppd python qt qt3 qt4 quicktime readline reflection sdl session spell spl sse ssl svg tcpd tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa visualization vorbis win32codecs xcomposite xine xml xmms xorg xprint xv xvid zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Sorry, turns out it was my fault, I had inadvertently specified an invalid value for CFLAGS in the shell. Emerges fine now.