[SOLVED] gcc in CLFS section 5.8.1 does not compile without the omitted mpfr and gmp
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.
gcc in CLFS section 5.8.1 does not compile without the omitted mpfr and gmp
Hello All,
Unlike in LSF-6.4 or 6.5, section 5.8.1 omits mpfr and gmp. If I proceed so, gcc-4.4.0 does not compile, it's asking for them.
Since the website has been down, I do not have and hence I did not apply the 4.2.4 "cross_search" patch, which could or could have not been the right thing to do anyway. Is this the culprit? I did apply the "branch" patch though. Does this include the functionalities of the formerly mentioned as well?
Once I added the above two packages, the compilation took place very nicely, so I wonder whether this is a bug in the book or the configuration files, or I am doing something completelly wrong by trying to use 4.4.0?
...Since the website has been down, I do not have and hence I did not apply the 4.2.4 "cross_search" patch...
This sounds like something you could post to the GCC mailing list or lists and get better luck with an answer. Sorry, I don't have an answer for you, as I have only managed to build GCC 4.2.1 on 32-bit and 64-bit RHEL machines only at work, but not on Debian at home, but that GCC version doesn't apply to your situation.
Thanks, I'll do that. First, now that I did obtain the appropriate patches, I will verify the compilation process as in CLFS 1.1.0. If I'll get to the same conclusion, I'll try posting it there.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
I think the reason for not mentioning gmp, mpfr is
that you already know the procedure from LFS.
I.e. unpack both into gcc-4.x/ and rename to gmp/, mpfr/.
CLFS and the other "specials" are meant to be build only
when you know how to create a complete 'LFS'.
Leaving out basic stuff : Happens more than one time in
LFS, etc. LFS itself is also based upon having some
knowledge, before you build it.
... Is not meant for beginners ...
.....
Thanks again to all those who read my post, and especially to those who tried to help.
The final answer is simple. As it turns out, gcc 4.3.x and earlier versions do compile without gmp and mpfr unpacked in its source directory, but all this has been changed in the higher versions. Those do need these two packages to be readily available at the time of the compilation, since all three are built together.
As such, there is no mistake in either of the CLFS and LSF books.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.