This is the mail archive of the binutils@sourceware.org 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: can not compile binutils with mingw-w64 (64 bits)


On Fri, Mar 16, 2012 at 1:28 PM, Vincent Torri <vincent.torri@gmail.com> wrote:
> Hey
>
> i'm trying to compile binutils (latest release) with mingw-w64
> targetting 64 bits builds. I get that error:
>
> bucomm.c: In function 'print_arelt_descr':
> bucomm.c:425:7: error: passing argument 2 of
> 'abfd->xvec->_bfd_stat_arch_elt' from incompatible pointer type
> [-Werror]
> bucomm.c:425:7: note: expected 'struct stat *' but argument is of type
> 'struct _stat64 *'

It comes from a forward declaration of struct stat instead of
including <sys/stat.h>, you need the patch from
http://sourceware.org/ml/binutils-cvs/2011-10/msg00118.html

Dave


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