-   Linux From Scratch (
-   -   5.3.1 Installation of Binutils (

microsoft/linux 10-19-2005 11:01 PM

5.3.1 Installation of Binutils
ok, so I'm trying to build LFS 6.1, from a debian etch host system. I get to the first binutils installation(the first installation of anything) and I get the following error

In file included from ./targ-cpu.h:1,
                from ../../binutils-,
                from ./obj-format.h:1,
                from ../../binutils-,
                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 `/mnt/lfs/sources/binutils-build/gas'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/binutils-build/gas'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build/gas'
make: *** [all-gas] Error 2

Thoughts? Suggestions? Funny Stories or Anecdotes?

Advanced thanks

mr_demilord 10-20-2005 04:02 AM

Do you have installed all the required packages on Debian?
Installation depends on: Bash, Bison, Coreutils, Diffutils, Flex, GCC, Gettext, Glibc, Grep, M4, Make, Perl, Sed, and Texinfo

What version of GCC does your host run?

microsoft/linux 10-20-2005 09:57 AM

I think GCC is 3.3. I'm pretty sure I have everything installed. I'll have to check though

microsoft/linux 10-20-2005 09:34 PM

I don't have diffutils, debian doesn't even have a diffutils package. I do however have diff(the same thing?)

mr_demilord 10-21-2005 03:41 AM

Yes it's the same as diffutils.

microsoft/linux 10-21-2005 10:55 AM

then I have all of the dependencies installed. Other suggestions?

mr_demilord 10-22-2005 03:19 AM


Originally posted by microsoft/linux
then I have all of the dependencies installed. Other suggestions?
Only thing I can think of that you can check is.
How is the partition mounted, check it with: <mount> it should only give (r/w)
Other thing is to check if gcc is using some flags unset them if it is using optizimation flags..

You are boulding outside the source directory right?

I never saw this error and the only thing google comes with if that error comes up the person uses GCC 4.0...

There is a patch for gcc4

microsoft/linux 10-22-2005 12:45 PM

I went back and checked again, turns out, I am using gcc 4.0, but I also have gcc 3.3 installed(debian packages). I must have remembered incorrectly. Will I run into more problems due to this? Also, how do I apply the patch?

mr_demilord 10-22-2005 01:41 PM

cd to the source directory not the build directory.

patch -Np1 -i ../binutils-

you will apply more patches in the next chapter :)

BTW It's better to uninstall gcc 4 and to be sure reinstall GCC 3 because it's saver to avoid further mysterious problems. Just stick to GCC 3, I think GCC 4 will be mainstream a half year later..

All times are GMT -5. The time now is 09:23 AM.