LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-02-2005, 02:18 PM   #1
igimaster
LQ Newbie
 
Registered: Apr 2005
Posts: 27

Rep: Reputation: 15
bin utils install problem


hello I was installing LFS 6.1
I got to the make command for binutils-2.15.94.0.2.2
I did not deviate from the commands in the book. Despite having to figure out the proper syntax for ln -s on my own box unlike the person who wrote it's box. multiple examples for the rest of us could have been helpful lol.
I am using Fedora Core 4 on a Pentium 4 box with a shuttle motherboard.
Here is the output with the output code.
Where should I start with troubleshooting this.


make[3]: Entering directory `/mnt/lfs/sources/binutils-build/gas'
gcc -DHAVE_CONFIG_H -I. -I../../binutils-2.15.94.0.2.2/gas -I. -D_GNU_SOURCE -I. -I../../binutils-2.15.94.0.2.2/gas -I../bfd -I../../binutils-2.15.94.0.2.2/gas/config -I../../binutils-2.15.94.0.2.2/gas/../include -I../../binutils-2.15.94.0.2.2/gas/.. -I../../binutils-2.15.94.0.2.2/gas/../bfd -I../../binutils-2.15.94.0.2.2/gas/../intl -I../intl -DLOCALEDIR="\"/tools/share/locale\"" -W -Wall -Wstrict-prototypes -Wmissing-prototypes -g -O2 -c ../../binutils-2.15.94.0.2.2/gas/app.c
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
lfs:/mnt/lfs/sources/binutils-build$

Any suggestions on starting to trouble shoot would be good. I've installed Gentoo and am fairly knowlegeable, but could use some help.
danny
 
Old 08-02-2005, 02:49 PM   #2
AxXium
Zenwalk Admin
 
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258

Rep: Reputation: 31
Code:
../../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
gas doesn't build with gcc4

Fedora Core 4 has been built using GCC 4.0

That's your problem.

You need another host system.

One with a gcc 3.0 or later but not gcc 4.0 or later.

Stay away from a host system built with gcc 4.

I suggest using the live cd.

http://www.linuxfromscratch.org/livecd/

It worked for me.

Last edited by AxXium; 08-02-2005 at 02:53 PM.
 
Old 08-02-2005, 04:02 PM   #3
igimaster
LQ Newbie
 
Registered: Apr 2005
Posts: 27

Original Poster
Rep: Reputation: 15
thanx for the quick response

I understand what you're saying and now know what to do. I guess as a newbie it's often frustrating to discover that the package requests a certain version or newer, and then there are in compatibilities while compiling with the newest version that are not mentioned in the dependencies when found.
Thank you for the response I'll go use a knoppix cd.
danny
 
Old 08-02-2005, 04:09 PM   #4
AxXium
Zenwalk Admin
 
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258

Rep: Reputation: 31
The beginning of the LFS book has a section called "Host System Requirments"

http://www.linuxfromscratch.org/lfs/.../hostreqs.html

Read that again if need be or search this forum for "best host"

There is a branch of LFS for gcc4............

http://www.linuxfromscratch.org/lfs/read.html

.................which states:

Code:
GCC-4 branch

This is an experimental branch of the LFS book, using GCC-4.0.x instead of the 3.4.x version in the current development version. The branch is being maintained by Matthew Burgess.

Please note that if you follow this version of the book, some BLFS packages may not compile or work correctly. If you can, find patches that fix such problems, and forward them on to the BLFS development team. A good starting point for such patches is Fedora Core's CVS repository.

GCC-4 LFS
But I wouldn't recommend it for your first run.

Good Luck!

Last edited by AxXium; 08-02-2005 at 04:46 PM.
 
Old 09-03-2005, 02:33 PM   #5
hoes
Member
 
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Rep: Reputation: 51
Possible Workaround

I am also building a LFS-system and bumped into the same problem you had.
But I think it is a very radical aproach to use another operating system or so.

After readng here that the problem was a too high version of gcc, I started thinking what could work.
I first used gcc -V 3.4 to use a lower version, but for some reason this did not work.
Luckely I had apt-get and unistalled gcc-4.0 and after making symbolic links to gcc-3.4, it worked splendid.

As you have noticed I have got Debian installed on my computer, but If remove gcc-4 is so easy on my system,
I though it might just as well be so easy using an rpmmanager in Fedora.

I hope this helps a bit.
 
  


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
Alsa Driver Utils Install-Sh Problem Kaao Linux - Hardware 4 08-12-2005 03:46 PM
Cannot install gnome-utils....Knoppix 3.2 HD install quo_vadis Debian 3 11-10-2003 07:44 AM
error installing bin utils in chapter 6 +help+sos saurav_gohain Linux From Scratch 1 07-19-2003 03:30 PM
how to install alsa driver, utils and lib using rpm ausmedia Linux - Newbie 4 05-07-2003 02:40 AM
nfs-utils install problem Griffon26 Linux - Software 1 11-03-2001 11:14 AM

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

All times are GMT -5. The time now is 02:30 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