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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
08-02-2005, 02:18 PM
|
#1
|
LQ Newbie
Registered: Apr 2005
Posts: 27
Rep:
|
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
|
|
|
08-02-2005, 02:49 PM
|
#2
|
Zenwalk Admin
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258
Rep:
|
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.
|
|
|
08-02-2005, 04:02 PM
|
#3
|
LQ Newbie
Registered: Apr 2005
Posts: 27
Original Poster
Rep:
|
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
|
|
|
08-02-2005, 04:09 PM
|
#4
|
Zenwalk Admin
Registered: May 2005
Location: Louisiana, U.S.A.
Distribution: Zenwalk Gnu/Linux
Posts: 258
Rep:
|
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.
|
|
|
09-03-2005, 02:33 PM
|
#5
|
Member
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 10:15 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.
|
Latest Threads
LQ News
|
|