LinuxQuestions.org
Review your favorite Linux distribution.
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 09-23-2013, 07:06 AM   #16
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405

@Rodano: You can change anything you want, it is your LFS build. But.....

Nothing needs to be added, removed or changed. If you run into a problem then you made a mistake and "solving" the problem by doing things that aren't mentioned in the book will get you into trouble later on. The book works as-is and this is proven by many others that build LFS 7.4 successfully.

The above statement is a bit black and white, but I'm assuming that this is your first LFS build and you are having problems in the very early stage of the build which normally points to an invalid host or a misunderstanding of (one of) the concepts/steps that are in the book.

The only way to find out what is wrong is by eliminating stuff, one at the time. As suggested earlier, I would start with a host that hasn't been tampered with (the host glibc issue and its possible consequences).
 
1 members found this post helpful.
Old 09-23-2013, 03:18 PM   #17
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 can add stuff to LFS, but you are kinda on your own if you deviate from the boot. BLFS is where you should worry about customizations, not LFS. LFS is just an OS core, a basic and simple raw OS with just tools, and you shouldn't deviate the core outside the known working parameters.

To be honest, the tips post I wrote about specifically warned against this, because it makes diagnosis of the build issues extremely problematic.

The book is VERY specific in what it calls for. If anything, the ONLY deviation you probably could get away with and not get any issues with, might be the Kernel, such as using 3.11.1 in place of 3.10.10.
 
1 members found this post helpful.
Old 09-24-2013, 07:09 AM   #18
Rodano
Member
 
Registered: Sep 2013
Distribution: Debian Wheezy
Posts: 47

Original Poster
Rep: Reputation: Disabled
Post

Quote:
Originally Posted by druuna View Post
@Rodano: You can change anything you want, it is your LFS build. But.....

Nothing needs to be added, removed or changed. If you run into a problem then you made a mistake and "solving" the problem by doing things that aren't mentioned in the book will get you into trouble later on. The book works as-is and this is proven by many others that build LFS 7.4 successfully.

The above statement is a bit black and white, but I'm assuming that this is your first LFS build and you are having problems in the very early stage of the build which normally points to an invalid host or a misunderstanding of (one of) the concepts/steps that are in the book.

The only way to find out what is wrong is by eliminating stuff, one at the time. As suggested earlier, I would start with a host that hasn't been tampered with (the host glibc issue and its possible consequences).
I tried to install lfs on my netbook with clean wheezy but i've the same problem. Also i have a question - is this command nesessary?

sed -i -e 's/static __m128i/inline &/' sysdeps/x86_64/multiarch/strstr.c
 
Old 09-24-2013, 07:27 AM   #19
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by Rodano View Post
I tried to install lfs on my netbook with clean wheezy but i've the same problem.
Assuming that your netbooks host is compliant: You must be doing something wrong at some stage (not necessarily the glibc chapter). Without knowing which steps you did (and how/where they were done) it is hard to point you to something specific.

The learning experience aside; Once your host is compliant, LFS is basically a copy/paste exercise.

Quote:
Also i have a question - is this command nesessary?

sed -i -e 's/static __m128i/inline &/' sysdeps/x86_64/multiarch/strstr.c
I answered that already in my previous reply:
Quote:
Nothing needs to be added, removed or changed.
Stop trying to "fix" the book, there's nothing wrong that needs fixing

My advise: Remove everything LFS related and start from scratch and do start with the first chapter in the book.
 
Old 09-24-2013, 07:44 AM   #20
Rodano
Member
 
Registered: Sep 2013
Distribution: Debian Wheezy
Posts: 47

Original Poster
Rep: Reputation: Disabled
Post

Quote:
Originally Posted by druuna View Post
Assuming that your netbooks host is compliant: You must be doing something wrong at some stage (not necessarily the glibc chapter). Without knowing which steps you did (and how/where they were done) it is hard to point you to something specific.

The learning experience aside; Once your host is compliant, LFS is basically a copy/paste exercise.

I answered that already in my previous reply:

Stop trying to "fix" the book, there's nothing wrong that needs fixing

My advise: Remove everything LFS related and start from scratch and do start with the first chapter in the book.

I tried to install it from 1 stage on two notebooks and the result scratch the brain. As is written in the book:

"The LFS system will be built by using an already installed Linux distribution (such as Debian, Mandriva, Red Hat, or SUSE)."
Maybe i should use another distribution?
 
Old 09-24-2013, 07:56 AM   #21
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
I've successfully installed various LFS versions on:

- Debian
- Slackware
- Ubuntu
- Suse (old experience, talking about the 2003/2004 era)

Most hosts need to be made compliant (modern Slackware version is the exception if I recall correctly), but once they are compliant it doesn't really matter which host is used.

Debian is my personal choice (if no other LFS host is available) and I've successfully build 7.0, 7.1 and 7.2 on Squeeze and 7.4 on Wheezy.
 
Old 09-24-2013, 08:00 AM   #22
Rodano
Member
 
Registered: Sep 2013
Distribution: Debian Wheezy
Posts: 47

Original Poster
Rep: Reputation: Disabled
Post

Quote:
Originally Posted by druuna View Post
I've successfully installed various LFS versions on:

- Debian
- Slackware
- Ubuntu
- Suse (old experience, talking about the 2003/2004 era)

Most hosts need to be made compliant (modern Slackware version is the exception if I recall correctly), but once they are compliant it doesn't really matter which host is used.

Debian is my personal choice (if no other LFS host is available) and I've successfully build 7.0, 7.1 and 7.2 on Squeeze and 7.4 on Wheezy.
Can it depends on hardware or different gnu's? On 1st machine i've installed cinnamon, on 2nd - xfce.
 
Old 09-24-2013, 08:09 AM   #23
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by Rodano View Post
Can it depends on hardware
LFS is based on AMD/Intel x86 (32-bit) and x86_64 (64-bit) CPU architecture. If I look at the output posted by you then I see i686, which would point to a 32 bit x86 cpu. No problem there.

Quote:
or different gnu's? On 1st machine i've installed cinnamon, on 2nd - xfce.
Nope.

I've installed using CLI, Gnome, KDE and Xfce. I do prefer the CLI, but that is a personal choice.
 
Old 09-24-2013, 03:40 PM   #24
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
Not to poke a dead horse, but honestly, it gets rather annoying and tediously bothersome attempting to diagnose an issue when someone deviates from the instructions of the authors LFS and neglects to say so.

The point of the book is to help you build a "Core GNU/Linux OS" that you can later customize using BLFS, or your own stuff. The authors poured over bugs in the development stage SVN books to make sure anything published publicly denotes a successful compile on their part for the release stage book.

When you deviate, honestly, we can not help you, because we don't know what you did.

Sorry to be blunt and direct, but honestly, I feel like saying at times, "Start over, read, and follow the damn book this time!"
 
Old 09-24-2013, 09:07 PM   #25
Rodano
Member
 
Registered: Sep 2013
Distribution: Debian Wheezy
Posts: 47

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by ReaperX7 View Post
Not to poke a dead horse, but honestly, it gets rather annoying and tediously bothersome attempting to diagnose an issue when someone deviates from the instructions of the authors LFS and neglects to say so.

The point of the book is to help you build a "Core GNU/Linux OS" that you can later customize using BLFS, or your own stuff. The authors poured over bugs in the development stage SVN books to make sure anything published publicly denotes a successful compile on their part for the release stage book.

When you deviate, honestly, we can not help you, because we don't know what you did.

Sorry to be blunt and direct, but honestly, I feel like saying at times, "Start over, read, and follow the damn book this time!"
I haven't deviated the book instructions when built lfs. I just asked a question about the possibility, so u are not right here.
 
Old 09-25-2013, 06:25 PM   #26
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
Then I have to ask... do you have the proper *-dev packages for the requires packages installed on your system and are you using BASH as the primary shell?
 
1 members found this post helpful.
Old 09-25-2013, 09:27 PM   #27
Rodano
Member
 
Registered: Sep 2013
Distribution: Debian Wheezy
Posts: 47

Original Poster
Rep: Reputation: Disabled
Post

Quote:
Originally Posted by ReaperX7 View Post
Then I have to ask... do you have the proper *-dev packages for the requires packages installed on your system and are you using BASH as the primary shell?
I find binutils without "-dev". Maybe there are another programs without dev. i'll seach them...

I find a strange thing: when a lfs user and group are added to system and i try to log in it in an other tty it writes there is not such user in a system.

Last edited by Rodano; 09-25-2013 at 09:45 PM.
 
Old 09-25-2013, 09:58 PM   #28
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
Does your system have Sudo installed and enabled by default with the root user account blocked from login?

Last edited by ReaperX7; 09-25-2013 at 10:06 PM.
 
Old 09-25-2013, 10:14 PM   #29
Rodano
Member
 
Registered: Sep 2013
Distribution: Debian Wheezy
Posts: 47

Original Poster
Rep: Reputation: Disabled
Post

Quote:
Originally Posted by ReaperX7 View Post
Does your system have Sudo installed and enabled by default with the root user account blocked from login?
Sudo is installed. hm.. When i try to use "sudo + cmd" in not root account there is an error: #name is not in sudoers file. This incident will be reported.

Also i find there is a package "linux-image-3.2.0-4-686-pae installed but linux-headers packege isn't installed on my system. Should i install it?

Also should i install "debug" packages or it is unnecessary?

Last edited by Rodano; 09-25-2013 at 10:22 PM.
 
Old 09-25-2013, 10:34 PM   #30
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
Yes you may want the headers. In fact the headers ARE required by compilers for building stuff as they link against them.

Debug packages, staging, and documentation packages are not needed.

I think it's safe to say that out of the box, Debian and it's clones are not LFS friendly.

Last edited by ReaperX7; 09-25-2013 at 10:37 PM.
 
1 members found this post helpful.
  


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 6.5 : Step 6.7 Installing Linux API headers : make headers_check/install error tsong99 Linux From Scratch 12 12-25-2012 04:26 PM
step by step guide for installing LFS 6.6 on kubuntu 9.10 smkh Linux From Scratch 6 04-07-2010 03:34 PM
LFS newbie stuck in Linux API headers step 5.5 LFS book 6.3 Vxplus Linux From Scratch 2 11-10-2008 08:13 PM
LFS step 5.7 Shadows91 Linux From Scratch 2 01-01-2007 10:12 PM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM

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

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