gcc-3.3.2-r7 fails to compile due to improper CFLAG adjustment in ebuild. When using -Os in CFLAGS the flag is rewriten to -O2s (or something similar) which causes gcc to fail. Changing: export CFLAGS="$(echo "${CFLAGS}" | sed -e 's|-O[0123456789]\?|-O2|g')" to export CFLAGS="$(echo "${CFLAGS}" | sed -e 's|-O[0123456789s]\?|-O2|g')" (and the same for CXXFLAGS etc.) worked ok for me. For reference my CFLAGS are: CFLAGS="-march=athlon-xp -Os -pipe -fomit-frame-pointer" Reproducible: Always Steps to Reproduce: 1. Use -Os in CFLAGS 2. Compile gcc-3.3.2-r7 3.
Missed that one, thanks. Changed it to '[0-9s]'.