This is the mail archive of the mailing list for the binutils 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]

Re: 32 bit host build failure from peXXigen.c

On 04/22/2014 12:58 PM, Nicholas Clifton wrote:
> Hi Doug,
>> and I'm getting build failures.
>> peigen.c: In function 'abs_finder':
>> peigen.c:215:3: error: left shift count >= width of type [-Werror]
>>     return (sec->vma <= abs_val) && ((sec->vma + (1L << 32)) > abs_val);
>>     ^
>> peigen.c: In function '_bfd_pei_swap_sym_out':
>> peigen.c:239:7: error: left shift count >= width of type [-Werror]
>>         && in->n_value > ((1L << 32) - 1)
>>         ^
>> peigen.c:239:22: error: comparison between signed and unsigned integer
>> expressions [-Werror=sign-compare]
>>         && in->n_value > ((1L << 32) - 1)
>> Nick, can you fix?
> Should be fixed now.

Hi Nick,

now I'm facing this build issue with peigen.c on x86:

libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I../../bfd -DTRAD_CORE -I. -I../../bfd -I../../bfd/../include -DHAVE_bfd_elf32_i386_vec -DHAVE_i386linux_vec -DHAVE_i386pei_vec -DHAVE_bfd_elf32_little_generic_vec -DHAVE_bfd_elf32_big_generic_vec -DBINDIR=\"/usr/local/bin\" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Werror -g -O2 -MT peigen.lo -MD -MP -MF .deps/peigen.Tpo -c peigen.c -o peigen.o
peigen.c: In function â_bfd_pei_swap_sym_outâ:
peigen.c:240:7: error: comparison is always false due to limited range of data type [-Werror=type-limits]
cc1: all warnings being treated as errors
make[4]: *** [peigen.lo] Error 1

This problem was introduced on commit d5f59c10fc37e325d3fbad4ae7970c7cf0857b46.


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