LinuxQuestions.org
Review your favorite Linux distribution.
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 06-01-2010, 12:02 PM   #1
Krol_:)
LQ Newbie
 
Registered: Jun 2010
Location: Boston, MA
Distribution: Ubuntu 9.04 (Jaunty Jackalope)
Posts: 4

Rep: Reputation: 0
LFS 6.6 Binutils install error Pass 1 on Ubuntu Jaunty


Hello!
I am relatively new to linux (have been sucessfully running ubuntu since Sept of 2009) and wanted to see how an OS works.

I am making an LFS disribution from a host Ubuntu Jaunty system.
Here is the output of the version check script from Chapter 1 of the LFS v6.6 book:
"ilia@ilia-laptop:~$ bash version-check.sh
bash, version 3.2.48(1)-release
/bin/sh -> /bin/dash
Binutils: (GNU Binutils for Ubuntu) 2.19.1
bison (GNU Bison) 2.3
/usr/bin/yacc -> /usr/bin/bison.yacc
bzip2, Version 1.0.5, 10-Dec-2007.
Coreutils: 6.10
diff (GNU diffutils) 2.8.1
find (GNU findutils) 4.4.0
GNU Awk 3.1.6
/usr/bin/awk -> /usr/bin/gawk
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
GNU C Library stable release version 2.9
GNU grep 2.5.3
gzip 1.3.12
Linux version 2.6.28-18-generic (buildd@rothera) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #60-Ubuntu SMP Fri Mar 12 04:40:52 UTC 2010
m4 (GNU M4) 1.4.11
GNU Make 3.81
patch 2.5.9
Perl version='5.10.0';
GNU sed version 4.1.5
tar (GNU tar) 1.20
Texinfo: makeinfo (GNU texinfo) 4.11
Compilation OK"

I am at the first pass of installing BinUtils and the configuration and compilation seem to run fine (see logs below) but when I type "make install" I get the following error:

Code:
lfs@ilia-laptop:/mnt/lfs/sources/binutils-build$ make install
make[1]: Entering directory `/mnt/lfs/sources/binutils-build'
/bin/bash ../binutils-2.20/mkinstalldirs /tools /tools
mkdir -p -- /tools /tools
mkdir: cannot create directory `/tools': File exists
mkdir: cannot create directory `/tools': File exists
make[1]: *** [installdirs] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/binutils-build'
make: *** [install] Error 2


Here's the link to the folder containing the config.log, MakeFile and config.status:
http://www.mediafire.com/?sharekey=2...c99885da44e881

Here's what I found about this error and I made sure to follow all the suggestions from these links but had no success anyway.
LFS mailing list:
http://www.linuxfromscratch.org/pipe...ry/035346.html
http://www.linuxfromscratch.org/pipe...ne/035855.html
This was cited in one of the mailing lists, if anyone could translate again what was said here that would be great:
http://www.absolinux.net/forums/ip.p...503e4f3da7406e

Now my questions are:
1) What is the source of the error?
2) How do I make sure the directory binutils is being installed to is actually located in /mnt/lfs as opposed to the root directory of my ubuntu system? I have made sure the variable LFS is /mnt/lfs. See the following:
Code:
lfs@ilia-laptop:~$ $LFS
bash: /mnt/lfs: is a directory

Last edited by Krol_:); 06-01-2010 at 12:03 PM.
 
Old 06-02-2010, 02:44 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

I must assume you are trying to install LFS 6.6 (please tell us this information).

Your host system is not up to specs (especially: bash vs dash vs sh), which you should have noticed (you did post the output of the version check script).

To make sure you have a sane host environment I would suggest using the LFS liveCD. This way you will not have any problems with your host system requirements and you don't have to change your current host (Ubuntu), which might have side effects.

Hope this helps.

Last edited by druuna; 06-03-2010 at 03:29 PM. Reason: fixed spelling
 
Old 06-03-2010, 11:04 AM   #3
Krol_:)
LQ Newbie
 
Registered: Jun 2010
Location: Boston, MA
Distribution: Ubuntu 9.04 (Jaunty Jackalope)
Posts: 4

Original Poster
Rep: Reputation: 0
Hi druuna,

Thanks for the response. The version of the LFS book is mentioned in the Subject of my post, it is indeed 6.6

I will give LiveLFS a shot and see how that goes.

Cheers!
Krol_
 
Old 06-03-2010, 11:53 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,
Quote:
The version of the LFS book is mentioned in the Subject of my post, it is indeed 6.6
Sorry about that, my bad!
 
  


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
LFS 6.5 -- Binutils-2.19.1 - Pass 2 gives error: cannot run C compiled programs kamleshk1 Linux From Scratch 7 11-16-2010 09:57 AM
LFS 6.4 Chapter 5.4. Binutils-2.18 - Pass 1 gazza1z Linux From Scratch 2 01-23-2009 12:16 PM
LFS binutils-build error : Pass 1 ramlnx Linux From Scratch 1 07-12-2006 08:06 AM
building Binutils-2.14 pass 1 (LFS 5.1.1) alihamza Linux From Scratch 1 10-10-2005 08:37 AM
binutils first pass make install failure in LFS-6.0 dibyadeep Linux From Scratch 3 01-05-2005 04:34 PM


All times are GMT -5. The time now is 05:25 AM.

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