LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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



Reply
 
Search this Thread
Old 12-29-2010, 05:52 PM   #1
b.morgan.296
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Rep: Reputation: 0
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 05:53 PM.
 
Old 12-29-2010, 06:02 PM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
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.
 
Old 12-29-2010, 06:15 PM   #3
b.morgan.296
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Original Poster
Rep: Reputation: 0
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!
 
Old 12-29-2010, 07:21 PM   #4
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
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.
 
Old 12-30-2010, 04:49 PM   #5
b.morgan.296
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Original Poster
Rep: Reputation: 0
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 05:06 PM.
 
Old 12-30-2010, 05:20 PM   #6
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
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.
 
Old 01-05-2011, 06:09 PM   #7
Erebus Bat
LQ Newbie
 
Registered: Jul 2004
Distribution: Ubuntu 10.04 (Lucid)
Posts: 25

Rep: Reputation: 15
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Makefile:15: *** missing separator. Stop. chakka.lokesh Linux - Software 25 12-22-2010 10:04 PM
LFS 6.6 - Chapter 5.5 - make[2]: *** [buildgetconstants.o] Error 1 - GCC Pass 1 malikcpp Linux From Scratch 3 06-29-2010 09:09 AM
Makefile:34: *** missing separator. Stop. crysty2k9 Linux - Software 12 05-07-2010 07:10 AM
makefile:4: *** missing separator. Stop klavuzkarga Programming 1 12-17-2007 12:27 PM
/root/proclist/Makefile:5: *** missing separator. Stop. raklo Programming 17 09-02-2006 09:23 AM


All times are GMT -5. The time now is 05:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration