Problems compiling the latest snapshot

Ian Lance Taylor ian@zembu.com
Sat Jul 10 17:52:00 GMT 1999


   From: Mark Mitchell <mark@codesourcery.com>
   Date: Sat, 10 Jul 1999 10:10:51 -0700

   >>>>> "Koundinya" == Koundinya K <kk@ddeorg.soft.net> writes:

       Koundinya> Hi all !!, As the subject says I am getting the
       Koundinya> following errors when I am trying to compile the
       Koundinya> binutils-990710 snapshot.

   These problems are almost certainly due to my recent changes, since
   they occur at lines I have touched.  However, I don't understand *why*
   they occur, and they do not occur on my machine.  It's possible that I
   missed a checkin of a generate file, but a) I can't see which one and
   b) I wouldn't expect the symptoms you're seeing.  Perhaps you could
   preprocess the source file and send it to me?

These are portability issues.

   "../../binutils-990710/bfd/elflink.h", line 2112: warning: semantics of "<" change in ANSI C; use explicit cast

You are comparing a signed value with an unsigned value.

   "../../binutils-990710/bfd/elflink.h", line 3082: operands have incompatible types: op ":"
   "../../binutils-990710/bfd/elflink.h", line 3083: operands have incompatible types: op ":"
   "../../binutils-990710/bfd/elflink.h", line 4787: operands have incompatible types: op ":"
   "../../binutils-990710/bfd/elflink.h", line 4788: operands have incompatible types: op ":"

These are telling you that a use of ?: has incompatible types.  In
this case it is because the type of bfd_put_8 is not void, unlike the
types of the other cases of the bfd_put conditional.

   "../../binutils-990710/bfd/elflink.h", line 6362: warning: argument is incompatible with prototype: arg #1

bfd_elf_hash takes a pointer to unsigned char (this seems strange to
me, but maybe most callers to call it that way).  This line is passing
it a pointer to char.

Ian


More information about the Binutils mailing list