This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug bootstrap/25672] [4.5 Regression] cross build's libgcc picks up CFLAGS


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25672

--- Comment #31 from Pawel Sikora <pluto at agmk dot net> 2012-03-27 18:39:37 UTC ---
(In reply to comment #30)
> Does this bug prevail in GCC 4.6.x, 4.7.x and/or trunk?

i've configured 4.7.0-RC2 for sparc64 target on x86_64 host with:

CFLAGS="-O1 -g0 -march=corei7-avx" ./configure....

and the build fails in libgcc as usual:

(...)
checking for sparc64-gnu-linux-gcc... 
/home/users/pluto/toolchain/trunk/sparc64-gnu-linux/gcc-4.7.0-RC-20120314/BUILDDIR/./gcc/xgcc
-B/home/users/pluto/toolchain/trunk/sparc64-gnu-linux/gcc-4.7.0-RC-20120314/BUILDDIR/./gcc/
-B/opt/gcc47-sparc64/sparc64-gnu-linux/bin/
-B/opt/gcc47-sparc64/sparc64-gnu-linux/lib/ -isystem
/opt/gcc47-sparc64/sparc64-gnu-linux/include -isystem
/opt/gcc47-sparc64/sparc64-gnu-linux/sys-include   
checking for suffix of object files... configure: error: in
`/home/users/pluto/toolchain/trunk/sparc64-gnu-linux/gcc-4.7.0-RC-20120314/BUILDDIR/sparc64-gnu-linux/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make: *** [configure-target-libgcc] Error 1

config.log says:

xgcc: error: unrecognized command line option '-march=corei7-avx'

so, the toplevel CFLAGS are pulled into target cflags.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]