Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 192959 - building of chew in bfd/docs uses target CFLAGS instead of build
Summary: building of chew in bfd/docs uses target CFLAGS instead of build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: MIPS Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on: 193364
Blocks:
  Show dependency tree
 
Reported: 2007-09-18 19:39 UTC by Woodward Crim Hoffman
Modified: 2007-10-06 23:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Woodward Crim Hoffman 2007-09-18 19:39:20 UTC
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.
Comment 1 SpanKY gentoo-dev 2007-10-06 22:44:59 UTC
no, the native gcc should have been used ... the host cflags should not have been used
Comment 2 SpanKY gentoo-dev 2007-10-06 23:16:44 UTC
fixed in 2.17-r2 and 2.18-r1