LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS6.1 Section3.13 - Binutils : Error on "make tooldir=/usr" (http://www.linuxquestions.org/questions/linux-from-scratch-13/lfs6-1-section3-13-binutils-error-on-make-tooldir%3D-usr-345146/)

StevePhM 07-20-2005 05:30 PM

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:o

StevePhM 07-20-2005 06:44 PM

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.

StevePhM 07-20-2005 09:04 PM

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!!

freegianghu 07-20-2005 11:34 PM

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

StevePhM 07-21-2005 12:22 AM

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*


All times are GMT -5. The time now is 07:09 AM.