#1589 closed defect (invalid)
binutils won't compile
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | lowest | Milestone: | |
Component: | Book | Version: | 6.0 |
Severity: | normal | Keywords: | |
Cc: |
Description
I'm just at the beginning of the Linux From Scratch process where I'm compiling binutils-2.15.91.0.2 (pass 1) in section 5.4.
The "host" OS is Fedora Core 4 (kernel 2.6.12, gcc 4.0.0).
When I type in make LDFLAGS="-all-static" and during the compile of gas, when it was compiling app.c, I get
gcc -DHAVE_CONFIG_H -I. -I. -I. -D_GNU_SOURCE -I. -I. -I../bfd -I./config -I./../include -I./.. -I./../bfd -I./../intl -I../intl -DLOCALEDIR="\"/tools/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c app.c In file included from ./targ-cpu.h:1,
from ./config/obj-elf.h:42, from ./obj-format.h:1, from ./config/te-linux.h:4, from targ-env.h:1, from as.h:629, from app.c:30:
./config/tc-i386.h:457: error: array type has incomplete element type
I've looked at tc-i386.h and there is an array defined there of struct relax_type but what I should do to get this to compile is beyond me at this point. Suggestions welcome.
GCC-4 is an unstable compiler still. Please search the FAQ and the mailing lists and then post a support question if you still have problems. This is all outlined in the book. The easiest solution would be to use another distribution.