This is the mail archive of the binutils@sources.redhat.com 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: HEAD b0rked re coff-tic80?


----Original Message----
>From: Nick Clifton
>Sent: 26 April 2005 17:57

> Hi Dave,
> 
>>   Just did a cvsup not half an hour ago.  After configuring with
>> --enable-targets=all, (which I don't usually bother with), my build
>> failed with....
> 
>> In file included from /usr/build/binutils-src/src/bfd/coff-tic80.c:31:
>> /usr/build/binutils-src/src/include/coff/tic80.h:71:1: "_CONST" redefined

> This does not happen for me, but I can certainly see how the problem
> might arise.  Since _CONST is not actually used in the tic80 specific
> sources the simplest thing seems to be to remove it.  So... please could
> you try out the patch and let me know if you have any problems with it.
> 
> Cheers
>    Nick
> 
> Index: include/coff/tic80.h
> ===================================================================


  That helped, but now it falls apart a bit further along, and this time
with a different target:

gcc -DHAVE_CONFIG_H -I. -I/usr/build/binutils-src/src/gas -I. -D_GNU_SOURCE
-I.
-I/usr/build/binutils-src/src/gas -I../bfd
-I/usr/build/binutils-src/src/gas/con
fig -I/usr/build/binutils-src/src/gas/../include
-I/usr/build/binutils-src/src/g
as/.. -I/usr/build/binutils-src/src/gas/../bfd
-I/usr/build/binutils-src/src/gas
/../intl -I../intl -DLOCALEDIR="\"/usr/build/install/share/locale\""   -W
-Wall
-Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c
/usr/build/binutils-s
rc/src/gas/config/obj-coff.c
In file included from /usr/build/binutils-src/src/gas/config/obj-multi.h:26,
                 from obj-format.h:1,
                 from /usr/build/binutils-src/src/gas/config/te-pe.h:7,
                 from targ-env.h:1,
                 from /usr/build/binutils-src/src/gas/as.h:631,
                 from /usr/build/binutils-src/src/gas/config/obj-coff.c:25:
/usr/build/binutils-src/src/gas/config/obj-coff.h:73:1: "TARGET_FORMAT"
redefine
d
In file included from targ-cpu.h:1,
                 from /usr/build/binutils-src/src/gas/config/obj-coff.h:38,
                 from /usr/build/binutils-src/src/gas/config/obj-multi.h:26,
                 from obj-format.h:1,
                 from /usr/build/binutils-src/src/gas/config/te-pe.h:7,
                 from targ-env.h:1,
                 from /usr/build/binutils-src/src/gas/as.h:631,
                 from /usr/build/binutils-src/src/gas/config/obj-coff.c:25:
/usr/build/binutils-src/src/gas/config/tc-i386.h:72:1: this is the location
of t
he previous definition
make[3]: *** [obj-coff.o] Error 1
make[3]: Leaving directory `/usr/build/binutils-obj-new/gas'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/build/binutils-obj-new/gas'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/build/binutils-obj-new/gas'
make: *** [all-gas] Error 2
dk@mace /usr/build/binutils-obj-new>


  There's something more fundamental here, isn't there?  Presumably
obj-coff.h and tc-i386.h have not previously been being included in the same
compilation unit.  Previously it was coff-tic80.h and the system's
/usr/include/_ansi.h, so something's now pulling lots of coff-related
headers into places they didn't used to be, perhaps?


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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