When attempting to cross build binutils for mipsel-softfloat-linux-ulibc, the compile of chew.c fails. Reproducible: Always Steps to Reproduce: 1.Create a cross dev environment for mipsel-softfloat-linux-uclibc 2.In make.conf, set CFLAGS="-Os -march=4kc -pipe" 3.emerge sys-apps/binutils Actual Results: make[4]: Entering directory `/opt/portage/tmp/portage/sys-devel/binutils-2.17/work/build/bfd/doc' gcc -o chew.$$ /opt/portage/tmp/portage/sys-devel/binutils-2.17/work/binutils-2.17/bfd/doc/chew.c \ -march=4kc -pipe -O2 \ -I.. -I/opt/portage/tmp/portage/sys-devel/binutils-2.17/work/binutils-2.17/bfd/doc/.. -I/opt/portage/tmp/portage/sys-devel/binutils-2.17/work/binutils-2.17/bfd/doc/../../include -I/opt/portage/tmp/portage/sys-devel/binutils-2.17/work/binutils-2.17/bfd/doc/../../intl -I../../intl; \ /bin/sh /opt/portage/tmp/portage/sys-devel/binutils-2.17/work/binutils-2.17/bfd/doc/../../move-if-change chew.$$ chew /opt/portage/tmp/portage/sys-devel/binutils-2.17/work/binutils-2.17/bfd/doc/chew.c:1: error: bad value (4kc) for -march= switch /opt/portage/tmp/portage/sys-devel/binutils-2.17/work/binutils-2.17/bfd/doc/chew.c:1: error: bad value (4kc) for -mtune= switch Expected Results: mipsel-softfloat-linux-uclibc-gcc should have been used instead of gcc. sys-apps/setarch, sys-apps/file, sys-python/pycrypto, and dev-python/python-fchksum all fail in a similar fashion. Most of the rest of an "emerge system" builds without problems.
no, the native gcc should have been used ... the host cflags should not have been used
fixed in 2.17-r2 and 2.18-r1