CFLAGS="-fdirectives-only" may not be used for net-dns/libidn-1.13: Essential from build.log: libtool: compile: i686-pc-linux-gnu-gcc -std=gnu99 -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I./gl -Igl -DLIBIDN_BUILDING -Wall -W -Wformat-y2k -Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-include-dirs -Wswitch-default -Wswitch-enum -Wunused -Wunknown-pragmas -Wstrict-aliasing -Wstrict-overflow -Wfloat-equal -Wdeclaration-after-statement -Wundef -Wshadow -Wunsafe-loop-optimizations -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -Wmissing-format-attribute -Wpacked -Wpadded -Wredundant-decls -Wnested-externs -Winline -Winvalid-pch -Wlong-long -Wvla -Wvolatile-register-var -Wdisabled-optimization -Wstack-protector -Wattributes -Wcoverage-mismatch -Wmultichar -Wunused-macros -Wno-missing-field-initializers -fdiagnostics-show-option -fvisibility=hidden -march=athlon-xp -O2 -funswitch-loops -fpredictive-commoning -fgcse-after-reload -ftree-vectorize -fomit-frame-pointer -pipe -fdirectives-only -MT toutf8.lo -MD -MP -MF .deps/toutf8.Tpo -c toutf8.c -fPIC -DPIC -o .libs/toutf8.o cc1: error: -fdirectives-only is incompatible with -Wunused_macros cc1: error: -fdirectives-only is incompatible with -Wunused_macros make[3]: *** [nfkc.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: *** [toutf8.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/net-dns/libidn-1.13/work/libidn-1.13/lib' make[2]: *** [all] Error 2 make[2]: Leaving directory `/var/tmp/portage/net-dns/libidn-1.13/work/libidn-1.13/lib' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/net-dns/libidn-1.13/work/libidn-1.13' make: *** [all] Error 2 Solution: filter this flag.
Created attachment 186013 [details, diff] Proposed fix.
Sorry, we can't accomodate all the possible CFLAGS combinations that exist. I suggest you add -Wno-unused-macros to your CFLAGS so you won't encounter this issue.