[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
build binutils-2.17 fails with gcc-4.1.2 because default -Werror
From: |
anirkko |
Subject: |
build binutils-2.17 fails with gcc-4.1.2 because default -Werror |
Date: |
Wed, 18 Apr 2007 15:10:48 +0200 (MET DST) |
The build of binutils-2.17 fails with gcc-4.1.2, as far as I can tell
because configure turns on -Werror by default (see output below).
Maybe gcc-4.1.2 warns about stuff that previous versions (gcc-3.x.x) did not?
Have no idea whether the warning points out a real problem or not.
Maybe not, therefore workaround: with configure, use --disable-werror
-----------------------------------------------------------------------------
...
...
gcc -DHAVE_CONFIG_H -I. -I/build/binutils-2.17/bfd -I. -I.
-I/build/binutils-2.17/bfd -I/build/binutils-2.17/bfd/../include
-I/build/binutils-2.17/bfd/../intl -I../intl -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Werror -O3 -mcpu=supersparc -mno-app-regs -c
/build/binutils-2.17/bfd/coff-apollo.c -o coff-apollo.o
cc1: warnings being treated as errors
/build/binutils-2.17/bfd/coffcode.h: In function 'coff_rtype_to_howto':
/build/binutils-2.17/bfd/coffcode.h:4928: warning: 'genrel.howto' may be used
uninitialized in this function
gmake[4]: *** [coff-apollo.lo] Error 1
gmake[4]: Leaving directory
`/build/binutils-2.17_obj0-static_g412-b214-O3-mcpu=supersparc-mno-app-regs/bfd'
...
...
- build binutils-2.17 fails with gcc-4.1.2 because default -Werror,
anirkko <=