LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 07-20-2015, 02:33 AM   #1
yogender
LQ Newbie
 
Registered: Jul 2015
Posts: 5

Rep: Reputation: Disabled
LFS make error


Hello guys!
I am building LFS 7.7, my host is Ubuntu and when running the make command I get the following error:

GNUmakefile:43: /maint.mk: No such file or directory
make: *** No rule to make target `/maint.mk'. Stop.

Please help!!

Thanks in advance.
 
Old 07-20-2015, 05:08 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Please give more info, what chaptr you are on what version of LFS you ausing, what is the output of the version.sh script
 
Old 07-20-2015, 07:27 AM   #3
yogender
LQ Newbie
 
Registered: Jul 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Version check script result :
bash, version 4.3.11(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.24
bison (GNU Bison) 3.0.2
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.21
diff (GNU diffutils) 3.3
find (GNU findutils) 4.4.2
GNU Awk 4.0.1
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
g++ (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4
(Ubuntu EGLIBC 2.19-0ubuntu6.6) 2.19
grep (GNU grep) 2.16
gzip 1.6
Linux version 3.13.0-55-generic (buildd@brownie) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #94-Ubuntu SMP Thu Jun 18 00:27:10 UTC 2015
m4 (GNU M4) 1.4.17
GNU Make 3.81
GNU patch 2.7.1
Perl version='5.18.2';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.27.1
makeinfo (GNU texinfo) 5.2
xz (XZ Utils) 5.1.0alpha
g++ compilation OK



I am currently on 5th chapter coreutils package installation. I did a reboot but then things started going wrong with make command.
 
Old 07-20-2015, 07:38 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Check your version.sh output it contains errors fix these first then try again from scratch
This is all covered in the book, the bit about making your host system complient, please rad the documentation before reporting errors.

Last edited by Keith Hedger; 07-20-2015 at 07:39 AM.
 
Old 07-20-2015, 08:19 AM   #5
yogender
LQ Newbie
 
Registered: Jul 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Sir, I had already finished the installation of following packages successfully :

Binutils-2.25 - Pass 1
GCC-4.9.2 - Pass 1
Linux-3.19 API Headers
Glibc-2.21
Libstdc++-4.9.2
Binutils-2.25 - Pass 2
GCC-4.9.2 - Pass 2
Tcl-8.6.3
Expect-5.45
DejaGNU-1.5.2
Check-0.9.14
Ncurses-5.9
Bash-4.3.30
Bzip2-1.0.6

But after this, did a reboot and then make command did not work for coreutils and other packages. I read the host system prerequisites carefully and then only proceeded further.

Thanks
 
Old 07-20-2015, 08:27 AM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
you NEED to make your system complient otherwise it will NOT work after doing so you may be able to continue but you will probably have a messed up system so start from scratch, you are only at building the tool chain.
 
Old 07-20-2015, 09:01 AM   #7
yogender
LQ Newbie
 
Registered: Jul 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hey Keith thanks!!
Starting from scratch solved the issue. I think the reboot messed something up.
 
Old 07-20-2015, 10:04 AM   #8
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Best to build the tool chain all in one go to make sure nothing weird happens with the environment.
 
Old 07-20-2015, 08:42 PM   #9
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,558
Blog Entries: 15

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
You never should use dash shell when building a cross-compiler like the Chapter 5 Toolchain. Only use Bash.
 
Old 07-20-2015, 11:28 PM   #10
yogender
LQ Newbie
 
Registered: Jul 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thnaks Keith, ReaperX7, will keep that in mind.
 
  


Reply



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
LFS Libstdc++ make error [ Help! ] Erich Linux From Scratch 10 05-05-2015 03:32 PM
Glibc2.16.0 make error LFS 7.2 aniketmeshram Linux From Scratch 1 04-10-2013 11:28 AM
6.13 GMP-5.0.0 LFS make error SmokingSquirrel Linux - General 5 06-11-2010 12:34 PM
Patch 2.5.4 for LFS 5.0 error at make. vexer Linux From Scratch 1 11-20-2003 10:19 AM
lfs 5.0 make mrproper error meadowfair Linux From Scratch 5 10-25-2003 02:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:10 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
Open Source Consulting | Domain Registration