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


  Search this Thread
Old 07-16-2005, 05:16 PM   #1
Registered: May 2005
Distribution: Suse 9.3, Gentoo
Posts: 87

Rep: Reputation: 15
binutils first pass error

When I try and compile my first pass of binutils, I get the following answer

../binutils- line 436 ./config.log: permission denied

I tried to su to fix the permissions, but now it wants a password. I am using the LFS LiveCD, so I can't get back to root to fix what I think the problem is.

Can anyone supply the password, or tell me if I am mistaken about it being a permission issue? Thanks.
Old 07-17-2005, 11:23 PM   #2
Senior Member
Registered: May 2004
Location: Sebec, ME, USA
Distribution: Debian Etch, Windows XP Home, FreeBSD
Posts: 1,445
Blog Entries: 9

Rep: Reputation: 48
it is a permission issue. Who owns the directory /mnt/lfs/sources? how about everything inside of it? I think that is what the problem is. I don't know the root password on the live cd, you could google for it.
Old 07-21-2005, 11:19 AM   #3
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,679
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
The "permission denied" message is used, ahh, rather-a-lot in Unix/Linux. ... It could simply mean that the media involved, e.g. a CD-ROM, is (by its very nature) not writeable.

Determine, first, exactly where the "current directory" is. If it's the CD, then there's your problem. Otherwise, check the permissions on this directory against your own. It must be writeable.
Old 09-04-2005, 07:23 AM   #4
LQ Newbie
Registered: Sep 2005
Posts: 6

Rep: Reputation: 0
I have the same problem. As was mentioned in a LFS 6.0 book I made: chown lfs $LFS/sources command. But I still can not compile from under the lfs user account. However root works perfect, but I guess it has different environment (paths, variables, etc). I have latest Kubuntu distributive 5.04 (Hoary) installed on hard drive. So no CD-ROM issues. I am totally lost.
Old 09-04-2005, 10:45 AM   #5
Registered: Sep 2005
Distribution: debian, linux from scratch
Posts: 190

Rep: Reputation: 51
I don't know about the CD-ROM issues, but I know a point of interest for Hard disk users.
Make sure that every file under $LFS is owned by lfs.

To you ArbuZz:
You omitted the -R switch in chown chown lfs $LFS/sources. In this way only the directory itself gets owned by lfs. To made everything IN the directory also property of lfs run:
[CODE]chown -R lfs $LFS/source[/CODE}
And apart from that you have to make sure that $LFS and everything in it is owned by lfs as well, so the program can put its executables in /lfs/tools/bin and other directories.

Good Luck
Old 09-05-2005, 01:42 AM   #6
LQ Newbie
Registered: Sep 2005
Posts: 6

Rep: Reputation: 0
I've figured it out Thank you, hoes. You were right.

The case is omitted in the LFS book and I tried to follow the exact instructions. However one has to think anyway.

I made chown -R and chgrp -R. And it works. Thank you.


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
5.14. Binutils- - Pass 2 error! Flash_G Linux From Scratch 5 08-20-2006 06:02 AM
#Error: 5.4. Binutils- - Pass 1 ukyo Linux From Scratch 2 06-02-2005 04:37 AM
binutils- first pass, error rogerslin Linux From Scratch 7 12-20-2004 05:44 PM
Binutils-2.14 - Pass 1, compiler error peok Linux From Scratch 0 08-10-2004 12:30 AM
binutils-2.14 first pass, gcc error Add1Sun Linux From Scratch 3 04-29-2004 04:27 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:47 PM.

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