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.
checking for __gmpz_init in -lgmp... yes
checking for MPFR... no
configure: error: libmpfr not found or uses a different ABI.
make[1]: *** [configure-mpc] Error 1
make[1]: Leaving directory `/mnt/lfs/gcc-build'
make: *** [all] Error 2
strings@ubuntu:/mnt/lfs/gcc-build$ echo $PATH
/tools/bin:/bin:/usr/bin
GCC-4.7.1 - Pass 2 gives the above error in make file
yeah removed all the build libraries and started from the first but same error ....... and yes viewed the link u posted ............... any help ..... thanks
checking for __gmpz_init in -lgmp... yes checking for MPFR... no
configure: error: libmpfr not found or uses a different ABI.
make[1]: *** [configure-mpc] Error 1
make[1]: Leaving directory `/mnt/lfs/gcc-build'
make: *** [all] Error 2
strings@ubuntu:/mnt/lfs/gcc-build$ echo $PATH
/tools/bin:/bin:/usr/bin
Did you forget this step (done from within the gcc source directory):
Code:
tar -jxf ../mpfr-3.1.0.tar.bz2
mv -v mpfr-3.1.0 mpfr
The GCC documentation recommends building GCC outside of the source directory in a dedicated build directory:
You misunderstood that. It means:
Untar the gcc package in $LFS/sources (as usual), enter the created directory ($LFS/sources/gcc-4.7.1). This is your reference when you start reading the gcc (or any other) chapter. All the commands in a chapter are done from within the package source directory.
Important
To re-emphasize the build process:
Place all the sources and patches in a directory that will be accessible from the chroot environment such as /mnt/lfs/sources/. Do not put sources in /mnt/lfs/tools/.
Change to the sources directory.
For each package:
Using the tar program, extract the package to be built. In Chapter 5, ensure you are the lfs user when extracting the package.
Change to the directory created when the package was extracted.
Follow the book's instructions for building the package.
Change back to the sources directory.
Delete the extracted source directory and any <package>-build directories that were created in the build process unless instructed otherwise.
in other words cd gcc-4.7.1 mkdir ../gcc-build which will make a dir in /mnt/lfs/sources/gcc-build
okay understood never to be smart ...... but can u help me how can i understand all that is going ....... and strings was the name of the user i gave instead of lfs ......
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.