build failure

Tom Tromey tromey@redhat.com
Thu Mar 12 19:41:00 GMT 2009


On x86 Fedora 9, with --enable-targets=all, the CVS head build fails
as appended.

On this machine, bfd_vma is a 32 bit type.

Tom

/bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../src/bfd -I. -DTRAD_CORE   -I. -I../../src/bfd -I../../src/bfd/../include    -g3 -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g3 -c -o elf32-score.lo ../../src/bfd/elf32-score.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../src/bfd -I. -DTRAD_CORE -I. -I../../src/bfd -I../../src/bfd/../include -g3 -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g3 -c ../../src/bfd/elf32-score.c -o elf32-score.o
cc1: warnings being treated as errors
../../src/bfd/elf32-score.c: In function ‘score3_bfd_putl48’:
../../src/bfd/elf32-score.c:290: error: right shift count >= width of type
../../src/bfd/elf32-score.c:291: error: right shift count >= width of type
../../src/bfd/elf32-score.c: At top level:
../../src/bfd/elf32-score.c:957: error: large integer implicitly truncated to unsigned type
../../src/bfd/elf32-score.c:957: error: large integer implicitly truncated to unsigned type
../../src/bfd/elf32-score.c:972: error: large integer implicitly truncated to unsigned type
../../src/bfd/elf32-score.c:972: error: large integer implicitly truncated to unsigned type
../../src/bfd/elf32-score.c: In function ‘score_elf_final_link_relocate’:
../../src/bfd/elf32-score.c:2199: error: right shift count >= width of type
../../src/bfd/elf32-score.c:2212: error: left shift count >= width of type
../../src/bfd/elf32-score.c:2226: error: right shift count >= width of type
../../src/bfd/elf32-score.c:2232: error: left shift count >= width of type
../../src/bfd/elf32-score.c: In function ‘s3_bfd_score_elf_relocate_section’:
../../src/bfd/elf32-score.c:2521: error: right shift count >= width of type
../../src/bfd/elf32-score.c:2530: error: left shift count >= width of type
../../src/bfd/elf32-score.c:2541: error: right shift count >= width of type
../../src/bfd/elf32-score.c:2557: error: left shift count >= width of type
make[2]: *** [elf32-score.lo] Error 1



More information about the Binutils mailing list