Greets all. What better time for a new build than winter? So I dove in using 4.1.1/2.4/2.17
binutils Pass 2 of temptools crapped out on the make with:
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.17/gas -I. -D_GNU_SOURCE -I. -I../../binutils- 2.17/gas -I../bfd -I../../binutils-2.17/gas/config -I../../binutils-2.17/gas/../include -I../../binutils-2.17/gas/.. -I../../binutils-2.17/gas/../bfd -I../../binutils-2.17/gas/../intl -I../intl -DLOCALEDIR="\"/temptools/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -march=i686 -mtune=i686 -O3 -pipe -c ../../binutils- 2.17/gas/subsegs.c
cc1: warnings being treated as errors
../../binutils-2.17/gas/read.c: In function 'equals':
../../binutils-2.17/gas/read.c:5013: warning: 'stopc' may be used uninitialized in this function
make[4]: *** [read.o] Error 1
make[4]: *** Waiting for unfinished jobs....
Took me 5 seconds of google till I found something. Seems -O3 is the culprit somehow. Passing -O2 fixes it. You can also keep -O3 and use --disable-werror but the test suite supposedly bombs horribly doing that. Checked all but the test suite so I can confirm the resolution.
Perhaps it's time to rethink my indiscriminate/rampant use of CFLAGS... Not a show-stopper but thought I'd report it all the same.
Jon
Yep. Came up again recently. Here's some comment from a Binutils dev:
http://lists.gnu.org/archive/html/bug-binutils/2007-01/msg00034.html
> Perhaps it's time to rethink my indiscriminate/rampant use of CFLAGS...
Indeed. My general rule of thumb for optimizing toolchain components is to
do only what the pros do.
Regards
Greg
The test is
*expected* to fail hence the (ignored) message.