This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Build failure after fix for pr17512 cause linking failure when cross linking libgfortran on arm-none-linux-gnueabihf
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: "'Nicholas Clifton'" <nickc at redhat dot com>, "'Jiong Wang'" <jiong dot wang at arm dot com>
- Cc: <binutils at sourceware dot org>
- Date: Thu, 6 Nov 2014 10:04:35 +0100
- Subject: Build failure after fix for pr17512 cause linking failure when cross linking libgfortran on arm-none-linux-gnueabihf
- Authentication-results: sourceware.org; auth=none
- References: <5458AAB8 dot 7050302 at arm dot com> <5458BDBC dot 8080007 at redhat dot com> <5458DB83 dot 9010903 at arm dot com> <5458F573 dot 5030409 at redhat dot com> <5458F5FF dot 8060907 at arm dot com> <5458F87E dot 5050601 at redhat dot com>
Hi Nick,
I think that this commit is what triggered this new failure:
Cross compilation using cygwin-32 to generate a 64-bit mingw64 GDB binary:
make[2]: Entering directory '/home/Pierre/git/build/mult-mingw64/bfd'
/bin/sh ./libtool --tag=CC --mode=compile x86_64-w64-mingw32-gcc
-DHAVE_CONFIG_H -I. -I../../../binutils-gdb/bfd -I.
-I../../../binutils-gdb/bfd -I../../../binutils-gdb/bfd/../include
-DHAVE_all_vecs -I./../intl -DBINDIR='"/usr/local/bin"' -W -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wno-format -Werror
-gdwarf-4 -O0 -D__USE_MINGW_ACCESS -MT pex64igen.lo -MD -MP -MF
.deps/pex64igen.Tpo -c -o pex64igen.lo pex64igen.c
libtool: compile: x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I.
-I../../../binutils-gdb/bfd -I. -I../../../binutils-gdb/bfd
-I../../../binutils-gdb/bfd/../include -DHAVE_all_vecs -I./../intl
-DBINDIR=\"/usr/local/bin\" -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wshadow -Wno-format -Werror -gdwarf-4 -O0
-D__USE_MINGW_ACCESS -MT pex64igen.lo -MD -MP -MF .deps/pex64igen.Tpo -c
pex64igen.c -o pex64igen.o
pex64igen.c: In function 'pe_print_idata':
pex64igen.c:1470:34: error: comparison between signed and unsigned integer
expressions [-Werror=sign-compare]
else if (member - adj + 2 >= datasize)
^
cc1: all warnings being treated as errors
Makefile:1605: recipe for target 'pex64igen.lo' failed
make[2]: *** [pex64igen.lo] Error 1
Compiler is x86_64-w64-mingw32-gcc
x86_64-w64-mingw32-gcc --version returns:
x86_64-w64-mingw32-gcc (GCC) 4.8.3
Should there be some explicit typecasts to avoid this warning
or is a better fix possible?
Pierre Muller
> -----Message d'origine-----
> De : binutils-owner@sourceware.org [mailto:binutils-
> owner@sourceware.org] De la part de Nicholas Clifton
> Envoyé : mardi 4 novembre 2014 17:02
> À : Jiong Wang
> Cc : binutils@sourceware.org
> Objet : Re: pr17512 cause linking failure when cross linking
> libgfortran on arm-none-linux-gnueabihf
>
> Hi Jiong,
>
> > I verified the patch fixed the issue on my local environment.
>
> Great. There were no regressions in my local tests, so I have checked
> the patch into the master branch.
>
> Cheers
> Nick