Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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?
Last edited by mr_demilord; 10-20-2005 at 03:08 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...
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?
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..
Last edited by mr_demilord; 10-22-2005 at 12:46 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.