When I try to emerge fluxbox with CDPATH=/usr/portage, CDPATH=/usr or CDPATH=/ (in fact anything) I get the error shown on the referenced web document. It appears that make is failing to change directory. See these urls for (possibly) related discussion: http://sources.redhat.com/ml/bug-automake/1999/msg00124.html http://www.monkey.org/openbsd/archive/misc/9810/msg00134.html Clearing CDPATH (export CDPATH=) results in a successful compilation. Reproducible: Always Steps to Reproduce: 1. Set CDPATH to something 2. type 'emerge fluxbox' Actual Results: See referenced HTML document. make fails to change to directory 'doc'. Also, a manual 'make' invokation from /var/tmp/portage/fluxbox-0.1.14-r2/work fails as well. Expected Results: Properly built fluxbox with no error. $ emerge info Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22-xfs) ================================================================= System uname: 2.4.22-xfs i686 AMD Athlon(TM) XP 1800+ ccache version 2.2 [enabled] ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="sandbox autoaddcvs ccache" GENTOO_MIRRORS="ftp://ftp.citylink.co.nz/gentoo http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow acl acpi alsa apm avi crypt dga doc encode gdbm gif gtk gtk2 guile imlib jpeg mbox mmx motif mozilla mpeg ncurses oggvorbis opengl oss pam pdflib perl plotutils png python qt quicktime readline ruby sasl sdl slang spell ssl svga tc ltk tcpd tetex tiff truetype X xmms xv zlib x86"
Check out: http://www.caliban.org/bash/index.shtml#bashtips for more info on CDPATH. What this does is tells cd where to look, so when make does a 'cd doc' it looks in /usr or whatever you set. You need to add . (the current dir) to your cdpath to let make find the folder under its current directory and not some totally unrelated path. hth --tseng