build binutils-2.17 fails with gcc-4.1.2 because default -Werror
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' ... ... ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
Re: build binutils-2.17 fails with gcc-4.1.2 because default -Werror
Hi anirkko, /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 The attached patch should take care of this problem. Please could you try it out. Cheers Nick Index: bfd/coffcode.h === RCS file: /cvs/src/src/bfd/coffcode.h,v retrieving revision 1.136 diff -c -3 -p -r1.136 coffcode.h *** bfd/coffcode.h 26 Mar 2007 12:22:59 - 1.136 --- bfd/coffcode.h 18 Apr 2007 15:14:23 - *** coff_rtype_to_howto (bfd *abfd ATTRIBUTE *** 4950,4955 --- 4950,4956 { arelent genrel; + genrel.howto = NULL; RTYPE2HOWTO (&genrel, rel); return genrel.howto; } ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
Re: build binutils-2.17 fails with gcc-4.1.2 because default -Werror
On Wed, Apr 18, 2007 at 03:10:48PM +0200, [EMAIL PROTECTED] wrote: > > 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. It's a real problem, but would only be triggered with a corrupted object file. coff-apollo.c:apollo_rtype2howto doesn't always assign howto. -- Alan Modra IBM OzLabs - Linux Technology Centre ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
Build binutils-2.17 with --enable-targets=all fails (Solaris)
Hi Building binutils-2.17 with --enable-targets=all fails, apparently because of a missing stdint.h file (see output below), which I can't find anywhere on my system (Solaris 2.6). Should the configure script not check for the presence of this, and possibly substitute if missing? Or are you supposed to supply a whole cross compilation environment with all foreign includes when building for all targets? Greets, Arto - ... ... gcc -DHAVE_CONFIG_H -I. -I/_mnt/hd32/package/build/binutils-2.17/opcodes -I. -D_GNU_SOURCE -I. -I/_mnt/hd32/package/build/binutils-2.17/opcodes -I../bfd -I/_mnt/hd32/package/build/binutils-2.17/opcodes/../include -I/_mnt/hd32/package/build/binutils-2.17/opcodes/../bfd -I/_mnt/hd32/package/build/binutils-2.17/opcodes/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -O3 -mcpu=supersparc -mno-app-regs -c /_mnt/hd32/package/build/binutils-2.17/opcodes/m32c-asm.c -o m32c-asm.o In file included from /_mnt/hd32/package/build/binutils-2.17/opcodes/m32c-opc.h:31, from /_mnt/hd32/package/build/binutils-2.17/opcodes/m32c-asm.c:35: /_mnt/hd32/package/build/binutils-2.17/opcodes/cgen-types.h:26:20: error: stdint.h: No such file or directory In file included from /_mnt/hd32/package/build/binutils-2.17/opcodes/m32c-opc.h:31, from /_mnt/hd32/package/build/binutils-2.17/opcodes/m32c-asm.c:35: /_mnt/hd32/package/build/binutils-2.17/opcodes/cgen-types.h:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'QI' /_mnt/hd32/package/build/binutils-2.17/opcodes/cgen-types.h:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'UQI' /_mnt/hd32/package/build/binutils-2.17/opcodes/cgen-types.h:30: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'HI' ... ... (tons of similar output) ... gmake[4]: *** [m32c-asm.lo] Error 1 gmake[4]: Leaving directory `/build/binutils-2.17_obj0-static_g412-b214-O3-mcpu=supersparc/opcodes' gmake[3]: *** [all-recursive] Error 1 gmake[3]: Leaving directory ... ... ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
Build binutils-2.17 fails with --enable-64-bit-bfd (Sparc/Solaris)
Hi again Building binutils-2.17 also fails with --enable-64-bit-bfd (see output below) on an Ultra-1 (ultrasparc, running Solaris 2.6 on a 32bit-kernel). Best regards, Arto - ... ... gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -O3 -mcpu=supersparc -mno-app-regs -o size size.o bucomm.o version.o filemode.o ../bfd/.libs/libbfd.a ../libiberty/libiberty.a ../bfd/.libs/libbfd.a(elfxx-sparc.o)(.text+0x1430): In function `_bfd_sparc_elf_finish_dynamic_sections': : undefined reference to `bfd_elf64_swap_dyn_in' ../bfd/.libs/libbfd.a(elfxx-sparc.o)(.text+0x14c4): In function `_bfd_sparc_elf_finish_dynamic_sections': : undefined reference to `bfd_elf64_swap_dyn_out' ../bfd/.libs/libbfd.a(elfxx-sparc.o)(.text+0x1508): In function `_bfd_sparc_elf_finish_dynamic_sections': : undefined reference to `bfd_elf64_swap_dyn_out' ../bfd/.libs/libbfd.a(elfxx-sparc.o)(.text+0x1898): In function `sparc_elf_append_rela_64': : undefined reference to `bfd_elf64_swap_reloca_out' ../bfd/.libs/libbfd.a(elfxx-sparc.o)(.text+0x1ff0): In function `_bfd_sparc_elf_finish_dynamic_symbol': : undefined reference to `bfd_elf64_swap_reloca_out' collect2: ld returned 1 exit status gmake[4]: *** [size] Error 1 gmake[4]: Leaving directory `/build/binutils-2.17_obj0-static_g412-b214-O3-mcpu=supersparc/binutils' gmake[3]: *** [all-recursive] Error 1 ... ... ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils