The xc package fails to emerge due to a definition clash between WARN (defined outside the package itself) and WARN used in the Makefile as part of the CFLAGS. Reproducible: Always Steps to Reproduce: 1. emerge xc Actual Results: I would output the actual text, but having some problems after doing an emerge rsync. Basically it stops right after the first call to GCC and all the text becomes yellow. Expected Results: Should have built. Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1) ================================================================= System uname: 2.4.20-gentoo-r5 i686 AMD Athlon(tm) Processor GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="" USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg kde gnome libg++ mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline arts tetex bonobo svga tcltk java X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gtk qt motif opengl cdr" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -O3 -pipe -mmmx -m3dnow -mno-sse" CXXFLAGS="-march=athlon-tbird -O3 -pipe -mmmx -m3dnow -mno-sse" ACCEPT_KEYWORDS="x86 ~x86" MAKEOPTS="-j2" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache"
emerge sync and try again please
Calculating dependencies ...done! >>> emerge (1 of 1) net-dialup/xc-4.3.2 to / >>> md5 src_uri ;-) xc-4.3.2.tar.gz >>> Unpacking source... >>> Unpacking xc-4.3.2.tar.gz to /var/tmp/portage/xc-4.3.2/work patching file xcsubs.c patching file Makefile >>> Source unpacked. gcc -D_POSIX_SOURCE=1 -pipe -O2 -fno-strength-reduce -fomit-frame-pointer -c -o xcb+.o xcb+.c gcc: No such file or directory gcc: no input files /bin/sh: line 1: 01m: command not found make: *** [xcb+.o] Error 127 !!! ERROR: net-dialup/xc-4.3.2 failed. !!! Function src_compile, Line 23, Exitcode 2 !!! (no error message) -- Everything from -DPOSIX and on is bright yellow in the console. emerge rsync and reattempt yielded the same thing.
Fixed. net-wireless/wireless-tools had this same problem awhile back, so I looked at how that was fixed. In src_compile(), changed: make all prefix=/usr mandir=/usr/share/man || die to make WARN="" all prefix=/usr mandir=/usr/share/man || die