error compiling binutils pass 1

Albert albertwagner at
Sat Oct 1 21:30:38 PDT 2005

rblythe wrote:
> Make sure you have flex and bison installed on your host system.  With Ubuntu 
> you should be able to 'apt-get install flex bison' (w/o) the quote marks from 
> the command line or use a package manager like kpackage, synaptic, or 
> aptitude.  Also, to avoid any other errors (possibly) make sure your host 
> system has all of the packages (dependencies) installed for each one of the 
> programs you will need to build LFS.  Some distros don't have the 
> dependencies of LFS installed in a basic installation.  I am using MEPIS 
> (another Debian based distro) and I had similar problems until I made sure I 
> had the basic dependencies met.

Thank you. That got me a little farther.  All of the dependencies 
  of bintutils per the 5.3 page: Bash, Bison, Coreutils, 
Diffutils, Flex, GCC, Gettext, Glibc, Grep, M4, Make, Perl, Sed, 
and Texinfo (although Ubuntu uses the name Diff for Diffutils and 
libc6 for Glibc).  However, I now have a different error:

gcc -DHAVE_CONFIG_H -I. -I../../binutils- -I. 
-D_GNU_SOURCE -I. -I../../binutils- -I../bfd 
-I../../binutils- -I../intl 
-DLOCALEDIR="\"/tools/share/locale\""   -W -Wall 
-Wstrict-prototypes -Wmissing-prototypes -g -O2  -c 
In file included from ./targ-cpu.h:1,
                 from ./obj-format.h:1,
                 from ./targ-env.h:1,
                 from ../../binutils-,
                 from ../../binutils-
../../binutils- error: 
array type has incomplete element type
make[3]: *** [app.o] Error 1
make[3]: Leaving directory 
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
make[1]: *** [all] Error 2
make[1]: Leaving directory 
make: *** [all-gas] Error 2

Perhaps someone here has seen this before and knows specifically 
what is still missing from Ubuntu as a host.

More information about the lfs-support mailing list