[SOLVED] Need Help with attached config.log file - has errors
Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
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
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."
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.
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.
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
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.