Why is the "--with-mpfr-include" flag used in CLFS necessary?
Hello,
I've read both of the LFS and CLFS books and I have a question regarding the different procedures used in the two books when building the GCC compiler. In the both the LFS & CLFS books, the "mpfr", "gmp", and "mpc" packages are extracted into the GCC source directory. However, the CLFS book specifies the "--with-mpfr-include=$(pwd)/../gcc-x.y.z/mpfr/src" option when configuring GCC, while the LFS book didn't use this option at all. Why is this option necessary? I thought that the GCC build system will automatically build gmp, mpfr, and mpc if they are present inside the source directory. And, if for some reason the location of mpfr needs to be specified manually in CLFS, why is there no need to specify the location of mpc and gmp? Thanks! |
They put a lot of work into CLFS to get it going and have the procedure down fairly well. The book usually explains the options in detail. What does the explanation say?
CLFS is radically different because LFS can rely on your local stuff in /usr/include, /usr/lib, etc. CLFS is different because /usr/include and /usr/lib are hostile territory, and you have to exclude them at any cost. Think of the situation where you're using an (x86-64) gcc-arm and compiling for arm64. Very different machines that have to be totally separate. They've probably learned the hard way. Disobey them, and you can learn the hard way too :scratch: |
The last gcc requiring "--with-mpfr-include" was gcc-4.8.4
... Your question doesn't specify gcc version. gcc configure, overview https://drive.google.com/drive/folde...nO?usp=sharing |
Hello,
Regarding the "--with-mpfr-include" option, the CLFS book just said that it "Tells configure how to find the mpfr headers". I'm using the CLFS book from here. In the book they are using GCC-6.2.0 I mean, if the mpfr paths were explicitly specified to avoid contamination from the host, then shouldn't the paths to mpc and gmp be specified as well? Thanks for the help! |
That is a generic book. You no doubt have seen the abbreviation FBBG. It means "Follow Book, Book Good." Your build is raising questions in your head. That's good. The time to post here is when you follow the book and it doesn't work. It prtobably hasd to do with what they're installing, as the source will get deleted later.
|
Ok thanks. I have a few other questions related to the general build process of LFS. Should I post them in this forum? They aren't related to any specific problems that I encountered while following the book, just about how the build process works.
|
Ok thanks. I have a few other questions related to the general build process of LFS. Should I post them in this forum? They aren't related to any specific problems that I encountered while following the book, just about how the build process works.
|
Quote:
|
@hazel Thanks!
I found some information from https://gcc.gnu.org/install/configure.html and here's what it says: Quote:
|
All times are GMT -5. The time now is 11:37 PM. |