Linux From Scratch This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-29-2010, 04:52 PM
|
#1
|
|
LQ Newbie
Registered: Dec 2010
Posts: 3
Rep:
|
Makefile:274: *** missing separator. Stop. LFS, Chapter 5, GCC-4.5.1 Pass 2
I'm trying to follow LFS and I'm on chapter 5, GCC-4.5.1 Pass 2. When I issue the "make" command, I get the following error:
Quote:
|
Makefile:274: *** missing separator. Stop
|
I view the makefile with vi and go to line 274, it says "@SET_MAKE@".
I'm wondering what I need to do to fix this problem. Should I delete Makefile and run the configure command again, should I add in a separator, if so, what one?
Thanks for all the help!
PS Sorry in advance if this is in the wrong forum.
Last edited by b.morgan.296; 12-29-2010 at 04:53 PM.
|
|
|
|
12-29-2010, 05:02 PM
|
#2
|
|
Senior Member
Registered: Jan 2010
Posts: 1,604
|
Hi,
there is a dedicated LFS forum. I asked a moderator to move your thread accordingly.
As for your problem, you will have to post some more information. Usually the last 20 lines of output are needed to determine the error.
Which host are you using? Did you make sure that all requirements are met? Did you delete the source and build folder of the gcc pass1? You need to start with a fresh untarred source and build folder for the second pass. You cannot reuse the one from the first run.
|
|
|
|
12-29-2010, 05:15 PM
|
#3
|
|
LQ Newbie
Registered: Dec 2010
Posts: 3
Original Poster
Rep:
|
Quote:
|
Which host are you using?
|
LFS LiveCD
Quote:
|
Did you make sure that all requirements are met?
|
What do you mean all requirement?
Quote:
|
Did you delete the source and build folder of the gcc pass1?
|
Yes
Here is a link to the webpage where you can see exactly what I should do.
http://www.linuxfromscratch.org/lfs/...gcc-pass2.html
I didn't do the step for x86_64 machines because that does not apply to me. Should I try using that step?
Thanks!
|
|
|
|
12-29-2010, 06:21 PM
|
#4
|
|
Senior Member
Registered: Jan 2010
Posts: 1,604
|
If you are using the liveCD then the requirements should be no issue.
Quote:
|
Here is a link to the webpage where you can see exactly what I should do.
|
Those are the commands that should be issued. However, a typo is easily made. It would be best if you could copy+paste the commands that you actually issued. I.e. starting from the 'patch -Np1 ...' command up to 'make'.
Finally, you still need to supply more of the output which led up to this error. It is very hard to guess what could have gone wrong. Maybe a typo in the previously executed 'sed' commands, maybe something else.
Quote:
|
I didn't do the step for x86_64 machines because that does not apply to me. Should I try using that step?
|
If 'uname -m' does not return x86_64 then you can skip this step.
|
|
|
|
12-30-2010, 03:49 PM
|
#5
|
|
LQ Newbie
Registered: Dec 2010
Posts: 3
Original Poster
Rep:
|
Alright. I'm assuming it is a typo, because everything else worked fine. Could I maybe be because I didn't delete the mpfr, gmp, and mpc folders (what one do I use with the rm command, mpfr or mpfr-3.0.0 or both?)?
Finally, is there a way I could copy and paste to the LFS computer? I'm reading the instructions off a different computer.
Is there any way I could do it using PuTTY?
Thanks
Last edited by b.morgan.296; 12-30-2010 at 04:06 PM.
|
|
|
|
12-30-2010, 04:20 PM
|
#6
|
|
Senior Member
Registered: Jan 2010
Posts: 1,604
|
You delete everything after you build it, i.e. you do
rm -rf $LFS/source/gcc-4.5.1/
rm -rf $LFS/source/gcc-build/
Since mpfr-3.0.0 etc. were untarred in $LFS/source/gcc-4.5.1/ as mpfr it will get deleted, too.
You delete every source (and build-folder) after build is finished.
As for the copy+paste issue, I usually copy a html-version of the book I am building on the $LFS partition and when using the liveCD I open it in tty2 with lynx. This allows me to copy+paste critical commands, since mouse is supported. Other possibilities would be to connect via lynx to the LFS site and navigate to the version you want. If you issue startx on the liveCD you will get a desktop environment but I have never done that.
Hope this helps.
|
|
|
|
01-05-2011, 05:09 PM
|
#7
|
|
LQ Newbie
Registered: Jul 2004
Distribution: Ubuntu 10.04 (Lucid)
Posts: 25
Rep:
|
I had this exact same issue. Once I copied and pasted (removed the gcc folders and started section 5.10 from scratch) then everything went well.
Thanks to crts for pointing out that there exists a startx command on the disk!
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 08:17 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|