Linux From ScratchThis 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.
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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Quote:
The use of $(pwd) solve the probem. But I don't understand why
A little late ... but I have an answer now :
When you run '../gcc-4.5.1/configure .....' : then $(pwd) is actually the build/ folder. The gmp/ and mpfr/ <required-files> are copied to build/gmp/ and build/mpfr/ .
Using $(pwd) also allows any naming for the build-gcc/ folder.
( build-gcc/ or gcc-build/, etc., your preferred naming will work.)
I am building LFS 6.8 version. While installing gcc-4.5.2 I am getting an error like gmp.h header not found. Please tell me how to resolve this. My problem is similar to above but I didn't understand the solution given above.
Code:
checking if charset has consecutive values... yes
checking for math/round... yes
checking for math/trunc... yes
checking for math/floor... yes
checking for math/ceil... yes
checking for math/rint... yes
checking for long double... yes
checking format of `long double' floating point... IEEE extended, little endian
checking for gmp.h... no
configure: error: gmp.h can't be found, or is unusable.
make[1]: *** [configure-mpfr] Error 1
make[1]: Leaving directory `/mnt/lfs/gcc-4.5.2'
make: *** [all] Error 2
lfs@itventures:/mnt/lfs/gcc-4.5.2$ D
Although this looks similar and might have the same solution, it would be wise to start a new thread for this. For one, the above is LFS 6.7 and you are building LFS 6.8, they might (slightly) differ in the way things are done. This thread is also marked as [SOLVED].
You also need to give us a bit more info:
- Which chapter are you working on (gcc is build 3 times, twice in chapter 5 and once in chapter 6),
- Which host are you using (and if not the LFS liveCD, did you make it compliant),
- Did you encounter any other problems before reaching this point,
Assuming you are at chapter 5.5:
- Did you extract the 3 packages (among which is gmp) in the correct location?
- It looks like you did not create the gcc-build directory and work from there.
First of all I am grateful to you for your concern.
-> I am working in 5th chapter i.e. section 5.5 on building 1st pass of GCC 4.5.2.
->I am using Ubuntu 10.10 as my host.
-> And till this point I haven't encountered any problems.
-> Ya I have extracted the three packages i.e. MPC-0.8.2, MPFR-3.0.0 and and GMP-5.0.1 inside GCC directory.
-> And about gcc-build directory, where should I create it. I am confused about it. I am installing the package from /mnt/lfs/sources/gcc-4.5.2.
And if you need more information I can provide you.
But my friend is also doing the same project Linux From Scratch v6.8 in Debian 6.0 (SQUEEZE) which is compliant to the host system specified by LFS. He is also getting the same error no?
But my friend is also doing the same project Linux From Scratch v6.8 in Debian 6.0 (SQUEEZE) which is compliant to the host system specified by LFS.
No it is not.
Debian (personal experience with: 6 and the previous stable and testing) _do_ need changes/additions to make it compliant.
Quote:
He is also getting the same error no?
I don't know what errors he's getting, but looking at the errors you are seeing, I think you are not following the book and that is why things go wrong in this instance.
The book assumes that you have unpacked the package and are standing in the newly created directory when you start a new building chapter. Mentioned here, bottom of the page. In this case: especially 3 a, b and c.
Please suggest me the version and flavor of Linux which I can use as host system for building LFS v6.8.I searched a lot about which host system I can use but I found nothing useful.......
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.