LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-20-2005, 06:30 PM   #1
StevePhM
Member
 
Registered: Oct 2003
Distribution: SuSE10.1
Posts: 36

Rep: Reputation: 15
LFS6.1 Section6.13 - Binutils : Error on "make tooldir=/usr"


Like I said in the subject I am having trouble on section 6.13 of LFS6.1 "Installation of Binutils".

The "expect -c "spawn ls"" check works fine, but I'm having problems configuring and making.

Make tooldir=/usr results in the following error,
Code:
make[3]: *** [arlex.o] Error 1
and I found the following in config.log
Code:
configure:2241: gcc -c -g -02   conftest.c 1>&5
configure:2231:17:  gmp.h: No such file or directory
I have found advice on other threads to make sure bison and flex were installed in chapter 5, which I did, and I also jumped ahead to install them in the chroot environment, so this is not the problem.

I have followed the instructions word for word.

If anyone can give me advice on how to proceed I will be very grateful.

Thanks

EDIT:: Apologies. Subject should read section 6.13, and NOT 3.13

Last edited by StevePhM; 07-20-2005 at 06:33 PM.
 
Old 07-20-2005, 07:44 PM   #2
StevePhM
Member
 
Registered: Oct 2003
Distribution: SuSE10.1
Posts: 36

Original Poster
Rep: Reputation: 15
UPDATE:
I searched /mnt/lfs for gmp.h and found two instances of it -- one in sources/glibc-2.3.4/include/ and another in sources/glibc-2.3.4/stdlib/. Funnily enough the two versions of gmp.h are different sizes!! The one in ...../include is 789bytes and the one in ...../stdlib is 23K. What's going on here??

Should these folders be in my PATH?? Should I cp one of these into /mnt/ls/usr/include/??

I would be very grateful if someone could provide a pointer or two to get me back on the right path.

Many thanks.
 
Old 07-20-2005, 10:04 PM   #3
StevePhM
Member
 
Registered: Oct 2003
Distribution: SuSE10.1
Posts: 36

Original Poster
Rep: Reputation: 15
UPDATE2:
I downloaded gmp from http://www.swox.com/gmp/#DOWNLOAD and then moved it to /mnt/lfs/sources and installed it with
Code:
./configure --prefix=/usr
make
make install
I can now see gmp.h in /mnt/lfs/usr/include and /mnt/lfs/usr/local/include, but the ./configure and make of binutils still results in the same errors as I reported in my original post. I also tried to install gmp without the --prefix=/usr option, but the result was the same.

I've pretty much run out of ideas, and REALLY don't want to get stuck here. All help is greatly appreciated!!
 
Old 07-21-2005, 12:34 AM   #4
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Quote:
Originally posted by StevePhM
UPDATE2:
I downloaded gmp from http://www.swox.com/gmp/#DOWNLOAD and then moved it to /mnt/lfs/sources and installed it with
Code:
./configure --prefix=/usr
make
make install
I can now see gmp.h in /mnt/lfs/usr/include and /mnt/lfs/usr/local/include, but the ./configure and make of binutils still results in the same errors as I reported in my original post. I also tried to install gmp without the --prefix=/usr option, but the result was the same.

I've pretty much run out of ideas, and REALLY don't want to get stuck here. All help is greatly appreciated!!
1. Binutils doesn't depend on gmp, I think
2. Whats printed before (about 20 lines): make[3]: *** [arlex.o] Error 1

Cheers,
GH
 
Old 07-21-2005, 01:22 AM   #5
StevePhM
Member
 
Registered: Oct 2003
Distribution: SuSE10.1
Posts: 36

Original Poster
Rep: Reputation: 15
Thanks for your reply freegianghu.

I am SO confused. I re-ran the make tooldir=..... command so I could get the information to answer your question, and now the bloody thing works!!! With no failures. And "make check" worked fine as well.

I'm sorry to have wasted your time, but thanks for reading my posts.

*confused*
 
  


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
Binutils Pass 1 error make LDFLAGS="-all-static" Phyrexicaid Linux From Scratch 5 08-25-2005 11:43 AM
5.12. Binutils-2.15.94.0.2.2 - Pass 2 - erron on "make" satimis Linux From Scratch 4 08-02-2005 06:26 PM
problem "make"ing gtk+ "/usr/bin/env: perl -w" caid Linux - Newbie 8 07-29-2005 05:51 AM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-29-2004 12:33 AM
LFS 4.1: Stalled at Perl, "missing seperator" error from "make" SparceMatrix Linux From Scratch 1 06-07-2003 04:31 PM


All times are GMT -5. The time now is 10:18 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration