This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: 32 bit host build failure from peXXigen.c
- From: Edjunior Barbosa Machado <emachado at linux dot vnet dot ibm dot com>
- To: Nicholas Clifton <nickc at redhat dot com>, Doug Evans <dje at google dot com>, Binutils <binutils at sourceware dot org>
- Date: Wed, 23 Apr 2014 17:18:22 -0300
- Subject: Re: 32 bit host build failure from peXXigen.c
- Authentication-results: sourceware.org; auth=none
- References: <CADPb22TrR1JijxeY0QSyusX0R4hA5c3rx1QfUmOGW_HVGfG6AA at mail dot gmail dot com> <535691A7 dot 1010701 at redhat dot com>
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.
Thanks,
--
Edjunior