Build failure after fix for pr17512 cause linking failure when cross linking libgfortran on arm-none-linux-gnueabihf

Pierre Muller pierre.muller@ics-cnrs.unistra.fr
Thu Nov 6 09:04:00 GMT 2014


  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



More information about the Binutils mailing list