LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   5.3.1 Installation of Binutils (http://www.linuxquestions.org/questions/linux-from-scratch-13/5-3-1-installation-of-binutils-374879/)

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
Code:

In file included from ./targ-cpu.h:1,
                from ../../binutils-2.15.94.0.2.2/gas/config/obj-elf.h:42,
                from ./obj-format.h:1,
                from ../../binutils-2.15.94.0.2.2/gas/config/te-linux.h:4,
                from ./targ-env.h:1,
                from ../../binutils-2.15.94.0.2.2/gas/as.h:625,
                from ../../binutils-2.15.94.0.2.2/gas/app.c:30:
../../binutils-2.15.94.0.2.2/gas/config/tc-i386.h:443: 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

Quote:

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
http://www.linuxfromscratch.org/patc...oads/binutils/

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-2.15.94.0.2.2-gcc4-1.patch


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 11:35 PM.