LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 10-19-2005, 10:01 PM   #1
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
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
 
Old 10-20-2005, 03:02 AM   #2
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
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.
 
Old 10-20-2005, 08:57 AM   #3
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
I think GCC is 3.3. I'm pretty sure I have everything installed. I'll have to check though
 
Old 10-20-2005, 08:34 PM   #4
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
I don't have diffutils, debian doesn't even have a diffutils package. I do however have diff(the same thing?)
 
Old 10-21-2005, 02:41 AM   #5
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
Yes it's the same as diffutils.
 
Old 10-21-2005, 09:55 AM   #6
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
then I have all of the dependencies installed. Other suggestions?
 
Old 10-22-2005, 02:19 AM   #7
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
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/

Last edited by mr_demilord; 10-22-2005 at 02:36 AM.
 
Old 10-22-2005, 11:45 AM   #8
microsoft/linux
Senior Member
 
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445

Original Poster
Blog Entries: 9

Rep: Reputation: 48
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?
 
Old 10-22-2005, 12:41 PM   #9
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
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..

Last edited by mr_demilord; 10-22-2005 at 12:46 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with binutils first pass / bison & flex installation peristaltic Linux From Scratch 3 03-20-2005 10:17 AM
binutils? orange400 Linux - Software 3 08-27-2004 11:55 AM
Installation of binutils....can't mkdir...../binutils-build hmonster Linux From Scratch 6 08-22-2004 04:07 AM
Binutils Help, what else do i do? kkj Linux - Newbie 4 04-05-2004 11:33 PM
help with binutils!!!!! AtomiCTheGr8 Linux - Software 3 07-27-2002 11:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration