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]

[ams@kemisten.nu: BFD broken on GNU/Hurd.]


Since bug-binutils@gnu.org consists of just spam in the archives, I'm
forwarding it to here.  Is bug-binutils@gnu.org used for bug reports?

------- Start of forwarded message -------
Date: Sun, 12 Oct 2003 15:02:54 +0200
From: "Alfred M. Szmidt" <ams@kemisten.nu>
To: bug-binutils@gnu.org
Subject: BFD broken on GNU/Hurd.

[Not sure if this is the correct place to report this, but it is about
bfd and the README in the bfd directory said to report bugs concerning
bfd to bug-binutils, so here goes...]

It seems that BFD (from GDB 6.0) is broken on GNU/Hurd when doing an
native compile.  Cross-compiling to GNU/Hurd from GNU/Linux works
though.  

This is because the bfd.h header is misgenerated when doing an native
compile, a bunch of duplicate declarations get pulled in during the
generation of bfd.h.  I'm not sure how all these duplicate
declarations get pulled in though since I am quite unfamiliar with
BFD.  Any help would be appericated in solving this.

I have attached only the error produced when compiling gdb-6.0.  And
instead of attaching the bfd.h header files (which are quite huge), I
put them on at the following location:

http://web.walfield.org/pub/people/ams/bfd.h-native.gz
http://web.walfield.org/pub/people/ams/bfd.h-cross.gz

===File ~/gdb-error=========================================
cd /obj/devel/ams/gdb-6.0/
make
make[1]: Entering directory `/obj/devel/ams/gdb-6.0/libiberty'
make[2]: Entering directory `/obj/devel/ams/gdb-6.0/libiberty/testsuite'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/obj/devel/ams/gdb-6.0/libiberty/testsuite'
make[1]: Leaving directory `/obj/devel/ams/gdb-6.0/libiberty'
make[1]: Entering directory `/obj/devel/ams/gdb-6.0/intl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/obj/devel/ams/gdb-6.0/intl'
make[1]: Entering directory `/obj/devel/ams/gdb-6.0/bfd'
make  all-recursive
make[2]: Entering directory `/obj/devel/ams/gdb-6.0/bfd'
Making all in doc
make[3]: Entering directory `/obj/devel/ams/gdb-6.0/bfd/doc'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/obj/devel/ams/gdb-6.0/bfd/doc'
Making all in po
make[3]: Entering directory `/obj/devel/ams/gdb-6.0/bfd/po'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/obj/devel/ams/gdb-6.0/bfd/po'
make[3]: Entering directory `/obj/devel/ams/gdb-6.0/bfd'
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I/src/local/gdb-6.0/bfd -I. -D_GNU_SOURCE     -I. -I/src/local/gdb-6.0/bfd -I/src/local/gdb-6.0/bfd/../include  -I/src/local/gdb-6.0/bfd/../intl -I../intl   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c /src/local/gdb-6.0/bfd/archive.c
rm: cannot remove `': Invalid argument
gcc -DHAVE_CONFIG_H -I. -I/src/local/gdb-6.0/bfd -I. -D_GNU_SOURCE -I. -I/src/local/gdb-6.0/bfd -I/src/local/gdb-6.0/bfd/../include -I/src/local/gdb-6.0/bfd/../intl -I../intl -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c /src/local/gdb-6.0/bfd/archive.c -o archive.o
In file included from /src/local/gdb-6.0/bfd/archive.c:130:
bfd.h:4212: warning: no semicolon at end of struct or union
bfd.h:4212: parse error before "PARAM"
bfd.h:4271: redefinition of `struct bfd_preserve'
bfd.h:4334: redeclaration of `enum bfd_flavour'
bfd.h:4335: conflicting types for `bfd_target_unknown_flavour'
bfd.h:4099: previous declaration of `bfd_target_unknown_flavour'
bfd.h:4336: conflicting types for `bfd_target_aout_flavour'
bfd.h:4100: previous declaration of `bfd_target_aout_flavour'
bfd.h:4337: conflicting types for `bfd_target_coff_flavour'
bfd.h:4101: previous declaration of `bfd_target_coff_flavour'
bfd.h:4338: conflicting types for `bfd_target_ecoff_flavour'
bfd.h:4102: previous declaration of `bfd_target_ecoff_flavour'
bfd.h:4339: conflicting types for `bfd_target_xcoff_flavour'
bfd.h:4103: previous declaration of `bfd_target_xcoff_flavour'
bfd.h:4340: conflicting types for `bfd_target_elf_flavour'
bfd.h:4104: previous declaration of `bfd_target_elf_flavour'
bfd.h:4341: conflicting types for `bfd_target_ieee_flavour'
bfd.h:4105: previous declaration of `bfd_target_ieee_flavour'
bfd.h:4342: conflicting types for `bfd_target_nlm_flavour'
bfd.h:4106: previous declaration of `bfd_target_nlm_flavour'
bfd.h:4343: conflicting types for `bfd_target_oasys_flavour'
bfd.h:4107: previous declaration of `bfd_target_oasys_flavour'
bfd.h:4344: conflicting types for `bfd_target_tekhex_flavour'
bfd.h:4108: previous declaration of `bfd_target_tekhex_flavour'
bfd.h:4345: conflicting types for `bfd_target_srec_flavour'
bfd.h:4109: previous declaration of `bfd_target_srec_flavour'
bfd.h:4346: conflicting types for `bfd_target_ihex_flavour'
bfd.h:4110: previous declaration of `bfd_target_ihex_flavour'
bfd.h:4347: conflicting types for `bfd_target_som_flavour'
bfd.h:4111: previous declaration of `bfd_target_som_flavour'
bfd.h:4348: conflicting types for `bfd_target_os9k_flavour'
bfd.h:4112: previous declaration of `bfd_target_os9k_flavour'
bfd.h:4349: conflicting types for `bfd_target_versados_flavour'
bfd.h:4113: previous declaration of `bfd_target_versados_flavour'
bfd.h:4350: conflicting types for `bfd_target_msdos_flavour'
bfd.h:4114: previous declaration of `bfd_target_msdos_flavour'
bfd.h:4351: conflicting types for `bfd_target_ovax_flavour'
bfd.h:4115: previous declaration of `bfd_target_ovax_flavour'
bfd.h:4352: conflicting types for `bfd_target_evax_flavour'
bfd.h:4116: previous declaration of `bfd_target_evax_flavour'
bfd.h:4353: conflicting types for `bfd_target_mmo_flavour'
bfd.h:4117: previous declaration of `bfd_target_mmo_flavour'
bfd.h:4354: conflicting types for `bfd_target_mach_o_flavour'
bfd.h:4118: previous declaration of `bfd_target_mach_o_flavour'
bfd.h:4355: conflicting types for `bfd_target_pef_flavour'
bfd.h:4119: previous declaration of `bfd_target_pef_flavour'
bfd.h:4356: conflicting types for `bfd_target_pef_xlib_flavour'
bfd.h:4120: previous declaration of `bfd_target_pef_xlib_flavour'
bfd.h:4358: conflicting types for `bfd_target_sym_flavour'
bfd.h:4122: previous declaration of `bfd_target_sym_flavour'
bfd.h:4360: redeclaration of `enum bfd_endian'
bfd.h:4360: conflicting types for `BFD_ENDIAN_BIG'
bfd.h:4124: previous declaration of `BFD_ENDIAN_BIG'
bfd.h:4360: conflicting types for `BFD_ENDIAN_LITTLE'
bfd.h:4124: previous declaration of `BFD_ENDIAN_LITTLE'
bfd.h:4360: conflicting types for `BFD_ENDIAN_UNKNOWN'
bfd.h:4124: previous declaration of `BFD_ENDIAN_UNKNOWN'
bfd.h:4363: redefinition of `_bfd_link_info'
bfd.h:4127: `_bfd_link_info' previously declared here
make[3]: *** [archive.lo] Error 1
make[3]: Leaving directory `/obj/devel/ams/gdb-6.0/bfd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/obj/devel/ams/gdb-6.0/bfd'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/obj/devel/ams/gdb-6.0/bfd'
make: *** [all-bfd] Error 2

Compilation exited abnormally with code 2 at Sun Oct 12 11:57:37
============================================================
------- End of forwarded message -------


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