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.
I have put up a mighty struggle (started over from "scratch" several times), but i keep encountering the same problem.
When i get to chapter 5.7 (adjusting the toolchain) of the online installation manual, i keep getting the following error whilst applying the "specfile" (which i copy-pasted in a file specfile.sh and adjusted a little) :
I just "read" the gcc manual and i think i found the problem.
I have to change the -mtune=pentiumpro flag to -mtune=pentium3 .
The manual didn't state however, which file(s?) needs to be edited in order to do this. I did some googling and stumbled upon a gentoo installation manual that referred to a make.conf file in the /etc directory, but there is no make.conf file on my LFS installation yet.....
You know if you use optizimation flags on critical packages like GCC binutils for example that the build has a higher chance to fail and will fail and the speed increasment is 0%.
The book doesn't warn the people without a reason..
If I was you, I'll only use optmization flags on less critical packages like mozilla products openoffice gimp media players like xine.
my 2 cents
Last edited by mr_demilord; 10-20-2005 at 02:50 PM.
Im aware of this. My problem is not how to set flags, but to how UNSET them. I have followed the book almost to the letter (and i most definately didn't specify any pentium pro flags, i don't even have a pentium pro machine), and i didn't specify any pentium pro flags, but the gcc "compiler" (if i use the right word....) magically seems to presume it.
I have reread the LFS book, but it doesn't mention how to set or unset the -mtune flag (let alone how to alter it) .
Maybe i should try to install LFS on a different machine? Or with a preinstalled linux machine (i'm using the CD as start operating system right now)?
Im aware of this. My problem is not how to set flags, but to how UNSET them. I have followed the book almost to the letter (and i most definately didn't specify any pentium pro flags, i don't even have a pentium pro machine), and i didn't specify any pentium pro flags, but the gcc "compiler" (if i use the right word....) magically seems to presume it.
I have reread the LFS book, but it doesn't mention how to set or unset the -mtune flag (let alone how to alter it) .
Maybe i should try to install LFS on a different machine? Or with a preinstalled linux machine (i'm using the CD as start operating system right now)?
Grtz
Sorry I didn't read it to well, my apologises.
It should work with the LFS cd, it's very strange
I found a way to unset it.
Open up a terminal
type in <unset CFLAGS>
and <unset CXXFLAGS>
and it should unset the optimizations flags..
hope it helps..
After a couple of retries, i discovered that my problem had something to do with the way i tried to implement the specfile.
I copy-pasted the whole section to a " specfile.s " file (on a windows xp machine...).
I then tried to execute the file with " ./specfile.s (on the LFS system)" . For some (probably very obvious) reason, this didn't work. As I couldn't think of any other way to copy - paste things, i tried to type it manually and behold: things worked.
I am well underway with my LFS installation again :P.
Open up a terminal
type in <unset CFLAGS>
and <unset CXXFLAGS>
and it should unset the optimizations flags..
hope it helps..
That fixed the problem for me, I'm using a Pentium IV.
For those who're wondering, when copying the whole line I had to include the greater than (>) symbol when I was cutting and pasting from the book examples (originally, I just assumed it was to reflect how the terminal looked.) For the record, when using the 'unset' commands, it should look like:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.