LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-09-2017, 11:43 PM   #1
joecoc1916
LQ Newbie
 
Registered: Feb 2017
Location: West Palm Beach, Florida
Distribution: Ubuntu 16.04
Posts: 18

Rep: Reputation: 0
Need Help with attached config.log file - has errors


I got passed chapter 5.4. Binutils-2.27 - Pass 1 - seemed to compile.

I work on Ubuntu 16.04, and I am having issues with permissions for user lfs. I always seem to not have the required permissions for lfs. I have to go back to my own admin account and sudo most commands.

I don't know if that is a part of my current issue, but I proceeded onto chapter 5.5. GCC-6.2.0 - Pass 1 - and got a few errors.

Look for help reviewing the config.log file attached?

Any one willing?
Attached Files
File Type: txt config.log.txt (31.0 KB, 15 views)
 
Old 02-10-2017, 05:37 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
I don't know what's causing the immediate error but I can tell you that building in Chapter 5 has to be done as the lfs user to ensure a clean environment. If you don't follow the book at this point, you will just find yourself in more and more trouble. Your real problem therefore is the unsuitable permissions setup that is forcing you to diverge from the book. If you can get that cleaned up, the rest will follow.

Please read again section 3.1, which sets out the correct permissions for $LFS/sources, and Section 4.3, which deals with the lfs user's access to $LFS/sources and $LFS/tools.
 
1 members found this post helpful.
Old 02-10-2017, 05:39 AM   #3
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 should never have to use sudo when building the tool chain, if you have to then you have done somthing wrong and you need to correct the mistakes other wise you will have problems later on, as you are now finding out
 
1 members found this post helpful.
Old 02-10-2017, 05:40 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
Sorry Hazel you type faster than me!
 
1 members found this post helpful.
Old 02-10-2017, 07:15 AM   #5
joecoc1916
LQ Newbie
 
Registered: Feb 2017
Location: West Palm Beach, Florida
Distribution: Ubuntu 16.04
Posts: 18

Original Poster
Rep: Reputation: 0
Ok, all, I will redo the process fixing the logon issue as you all say would be required.

As they say when in doubt follow the directions.

I am making progress here so I appreciate you all hanging in with me.
 
Old 02-10-2017, 08:02 AM   #6
joecoc1916
LQ Newbie
 
Registered: Feb 2017
Location: West Palm Beach, Florida
Distribution: Ubuntu 16.04
Posts: 18

Original Poster
Rep: Reputation: 0
I am going to read on Ubuntu security issues with users and groups.

I will not move forward again till I have that issue resolved. I will post a comment when I run into issues with the permissions thing.

Thanks so much for your feedback!!
 
Old 02-10-2017, 08:09 AM   #7
joecoc1916
LQ Newbie
 
Registered: Feb 2017
Location: West Palm Beach, Florida
Distribution: Ubuntu 16.04
Posts: 18

Original Poster
Rep: Reputation: 0
Quick question, should the lfs be placed in the sudo group?

Please be patient with me on these user and security questions
 
Old 02-10-2017, 08:23 AM   #8
joecoc1916
LQ Newbie
 
Registered: Feb 2017
Location: West Palm Beach, Florida
Distribution: Ubuntu 16.04
Posts: 18

Original Poster
Rep: Reputation: 0
As Hazel recommended I will first resolve the inconsistancies with "Please read again section 3.1, which sets out the correct permissions for $LFS/sources, and Section 4.3, which deals with the lfs user's access to $LFS/sources and $LFS/tools."
 
Old 02-10-2017, 10:48 AM   #9
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Quote:
Originally Posted by joecoc1916 View Post
Quick question, should the lfs be placed in the sudo group?

Please be patient with me on these user and security questions
No. You will only be working as the lfs user during Chapter 5. The rest of the book is done as root. And, as Keith has pointed out, chapter 5 does not require any use of sudo.
 
1 members found this post helpful.
Old 02-10-2017, 06:02 PM   #10
joecoc1916
LQ Newbie
 
Registered: Feb 2017
Location: West Palm Beach, Florida
Distribution: Ubuntu 16.04
Posts: 18

Original Poster
Rep: Reputation: 0
Found out an interesting point on ubuntu from my experience.

The original user the OS installer creates, ALWAYS requires the sudo prefix to execute commands. Even thought the user us an administrator. I created a standard user in ubuntu and that user is not being required to use sudo constantly, as I previously was.

So I do not know why this is the situation with ubuntu's initial user, but I like what I have found out here. Hopefully it will carry over when I face issues with the user lfs and the group lfs.

I will keep you informed of my progress regarding these permission issues.
 
Old 02-11-2017, 01:17 AM   #11
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,572
Blog Entries: 19

Rep: Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451Reputation: 4451
Quote:
Originally Posted by joecoc1916 View Post
Found out an interesting point on ubuntu from my experience.

The original user the OS installer creates, ALWAYS requires the sudo prefix to execute commands. Even thought the user us an administrator. I created a standard user in ubuntu and that user is not being required to use sudo constantly, as I previously was.

So I do not know why this is the situation with ubuntu's initial user, but I like what I have found out here. Hopefully it will carry over when I face issues with the user lfs and the group lfs.

I will keep you informed of my progress regarding these permission issues.
Of course the first user has to use sudo with every command he wants to execute as root. If that wasn't so, he would be root. And working all the time as root is very dangerous. That's why, when Ubuntu was designed, they decided not to allow root logins at all. Only sudo access would be allowed. Having to use the sudo prefix all the time keeps your mind focused on the potential dangers of what you are doing.

The lfs user is quite different. It is a normal, unprivileged user with no sudo access. Nothing that this user does in Chapter 5 requires any special privileges. Instead the very special ownership and permissions assigned to $LS/sources and $LFS/tools allow this user to do what is necessary.

I suspect from your last post that you need to read up a bit about root privileges and their purpose before you go any further with LFS.

PS: I hope you are not using sudo with literally every command. You are only supposed to use it with commands that need to be executed as root.

Last edited by hazel; 02-11-2017 at 01:25 AM. Reason: Added PS
 
Old 02-22-2017, 03:14 PM   #12
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
Here's an example of how to follow Chapter 5 instructions properly if you're using say... a Debian LiveDVD:

login: user
passw: live

sudo passwd root
<new root password twice>

If you're in the console (no gui), then logout and back in as root.

If you're in an xterm, kconsole, etc. then "su - root" and use the new root password.

From there you should be able to follow chapter 5 without issue. Just make sure that if you logout you su to root before doing anything the book shows being done from root.

Sudo, on the other hand, does things differently depending on how it is used. In some cases it carries environment variables with it and this is something you do not want when building an LFS system.

Last edited by Luridis; 02-22-2017 at 03:17 PM.
 
  


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
Checking the config file…FAILEDThe configuration file contains errors troya Linux - Networking 2 06-13-2013 05:43 AM
Errors (override) with .config file phar0z Linux - Kernel 1 08-03-2009 10:34 AM
Scan log file for errors huskerharry Linux - Newbie 7 10-20-2006 01:43 AM
How do I log on-screen errors to file skunkburner Linux - General 9 06-02-2005 02:51 AM
Multiple errors in config.log after ./configure for GLIB 2.4.4 eckerww Linux - Software 0 07-22-2004 10:55 PM

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

All times are GMT -5. The time now is 10:38 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