Package: binutils
Severity: normal
Tags: patch

When building 'binutils' on amd64 with gcc-4.0,
I get the following error:

make[4]: Leaving directory `/binutils-2.15/builddir-single/gas/po'
make[4]: Entering directory `/binutils-2.15/builddir-single/gas'
gcc -DHAVE_CONFIG_H -I. -I../../gas -I. -D_GNU_SOURCE -I. -I../../gas -I../bfd 
-I../../gas/config -I../../gas/../include -I../../gas/.. -I../../gas/../bfd 
-I../../gas/../intl -I../intl -DLOCALEDIR="\"/usr/share/locale\""   -W -Wall 
-Wstrict-prototypes -Wmissing-prototypes -g -O2 -c ../../gas/app.c
In file included from ./targ-cpu.h:1,
                 from ../../gas/config/obj-elf.h:42,
                 from ./obj-format.h:1,
                 from ../../gas/config/te-linux.h:4,
                 from ./targ-env.h:1,
                 from ../../gas/as.h:626,
                 from ../../gas/app.c:30:
../../gas/config/tc-i386.h:451: error: array type has incomplete element type
make[4]: *** [app.o] Error 1
make[4]: Leaving directory `/binutils-2.15/builddir-single/gas'

With the attached patch 'binutils' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/binutils-2.15/gas/config/tc-i386.c ./gas/config/tc-i386.c
--- ../tmp-orig/binutils-2.15/gas/config/tc-i386.c      2004-05-17 
21:36:09.000000000 +0200
+++ ./gas/config/tc-i386.c      2005-03-15 19:54:56.000000000 +0100
@@ -363,7 +363,7 @@
    prefix), and doesn't work, unless the destination is in the bottom
    64k of the code segment (The top 16 bits of eip are zeroed).  */
 
-const relax_typeS md_relax_table[] =
+const relax_typeS *md_relax_table =
 {
   /* The fields are:
      1) most positive reach of this state,
diff -urN ../tmp-orig/binutils-2.15/gas/config/tc-i386.h ./gas/config/tc-i386.h
--- ../tmp-orig/binutils-2.15/gas/config/tc-i386.h      2004-05-17 
21:36:09.000000000 +0200
+++ ./gas/config/tc-i386.h      2005-03-15 19:53:50.000000000 +0100
@@ -448,7 +448,7 @@
 
 #define md_operand(x)
 
-extern const struct relax_type md_relax_table[];
+extern const struct relax_type *md_relax_table;
 #define TC_GENERIC_RELAX_TABLE md_relax_table
 
 extern int optimize_align_code;
diff -urN ../tmp-orig/binutils-2.15/bfd/coff-alpha.c ./bfd/coff-alpha.c
--- ../tmp-orig/binutils-2.15/bfd/coff-alpha.c  2003-06-25 08:40:18.000000000 
+0200
+++ ./bfd/coff-alpha.c  2005-03-15 20:03:13.035136784 +0100
@@ -1455,7 +1455,7 @@
          amt = sizeof (struct ecoff_section_tdata);
          lita_sec_data = ((struct ecoff_section_tdata *)
                           bfd_zalloc (input_bfd, amt));
-         ecoff_section_data (input_bfd, lita_sec) = lita_sec_data;
+         lita_sec->used_by_bfd = lita_sec_data;
        }
 
       if (lita_sec_data->gp != 0)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to