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: Void, Linux From Scratch, Slackware64
Posts: 3,152
Rep:
To start off, what chapter are you on?, what is the output of the version script?
If you are building the tool chain you should NOT be using root, as per the instructions in the LFS book.
This:
Code:
..configure: error: in `/lfs/gcc-builds/gcc-4.9.1/host-i686-pc-linux-gnu/lto-plugin':...
Looks like you are in the wrong directory, if you have been following the book you should be somewhere like /mnt/lfs/sources/gcc-build.
What configure/make options are you using? have you deviated from the LFS book in ANY way?
Please supply some more info otherwise we can't really help much except with general advice.
I changed the directionary but the mistake did not disappear. So I think it is not caused by a missing file because in the root mode the compiling runs well.
Okay I started to install LFS from the beginning. In the book version 7.6 GCC-4.9.1 -(Pass 1) on page 38 is a for-do operation searching for "gcc/config/linux.h". But the path on Wheezy is "/usr/lib/i486-linux-gnu/4.7/plugin/include/config/linux.h". Should I replace the path or do I misunderstand the meaning?
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,152
Rep:
By the time you run the for loop you should be in the gcc-4.9.1 folder ( /mnt/lfs/sources/gcc-4.9.1 probably ) the path to the find command does not start with a foward slash so is a relative path not absolute so find gcc/config would be, with the above path would be /mnt/lfs/sources/gcc-4.9.1/gcc/config.
Now I am on page 41 of "Linux from Scratch". It deals of installing the API Headers. I am confused about the steps to do. First I extract linux-3.16.2 into "/mnt/lfs/sources/linux-3.2.16" and changed into this path. Should I start with "make menuconfig" than "make" and "make mproper" and and at last "make INSTALL_HDR_PATH....." ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.