LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 01-13-2013, 02:47 PM   #16
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,742
Blog Entries: 1

Rep: Reputation: 244Reputation: 244Reputation: 244

Reinstall it I hope you have not missed anything else
 
Old 01-13-2013, 03:01 PM   #17
dpak.verma.maa@gmail.com
LQ Newbie
 
Registered: Jan 2013
Posts: 27

Original Poster
Rep: Reputation: Disabled
it is not getting compiled , it says c compiler cannot create executable , check in config.log
 
Old 01-13-2013, 03:08 PM   #18
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,742
Blog Entries: 1

Rep: Reputation: 244Reputation: 244Reputation: 244
Are you in the chroot enviroment

I would reboot then log back in as described in chapter 6.2.2 and 6.2.3. Make sure lfs is mounted at $LFS dont forget that lfs has to be in the root path
 
Old 01-13-2013, 03:18 PM   #19
dpak.verma.maa@gmail.com
LQ Newbie
 
Registered: Jan 2013
Posts: 27

Original Poster
Rep: Reputation: Disabled
i am in root:/ , can you please instruct me
 
Old 01-13-2013, 03:22 PM   #20
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,742
Blog Entries: 1

Rep: Reputation: 244Reputation: 244Reputation: 244
Have you ever rebooted lfs while you have been building it
 
Old 01-13-2013, 03:30 PM   #21
dpak.verma.maa@gmail.com
LQ Newbie
 
Registered: Jan 2013
Posts: 27

Original Poster
Rep: Reputation: Disabled
no i have never rebooted
 
Old 01-13-2013, 03:36 PM   #22
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,742
Blog Entries: 1

Rep: Reputation: 244Reputation: 244Reputation: 244
Did you build grub the same as you built the other packages untar grub cd into grub dir applied patch then run ./configure --prefix=usr make
 
Old 01-13-2013, 03:39 PM   #23
dpak.verma.maa@gmail.com
LQ Newbie
 
Registered: Jan 2013
Posts: 27

Original Poster
Rep: Reputation: Disabled
on running the command ./configure --prefix=usr make , it shows an error that c compiler cannot create executable
 
Old 01-13-2013, 03:45 PM   #24
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
Assuming LFS 6.3: Did you do these steps in the order shown?

logged in as root user, then:
- Mounting and Populating /dev as shown in 6.2.2
- Mounting Virtual Kernel File Systems as shown in 6.2.3
- chroot as shown in 6.60
- redo 6.34. GRUB-0.97
 
Old 01-13-2013, 03:47 PM   #25
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,742
Blog Entries: 1

Rep: Reputation: 244Reputation: 244Reputation: 244
Thks druuna you beat me to it
 
Old 01-13-2013, 04:00 PM   #26
dpak.verma.maa@gmail.com
LQ Newbie
 
Registered: Jan 2013
Posts: 27

Original Poster
Rep: Reputation: Disabled
yes, i did in the same order @dunna
 
Old 01-13-2013, 04:01 PM   #27
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debain
Posts: 1,742
Blog Entries: 1

Rep: Reputation: 244Reputation: 244Reputation: 244
Did it build this time?
 
Old 01-13-2013, 04:08 PM   #28
dpak.verma.maa@gmail.com
LQ Newbie
 
Registered: Jan 2013
Posts: 27

Original Poster
Rep: Reputation: Disabled
do i have to build the whole process again from chapter 6.2 for installing grub ?
 
Old 01-13-2013, 04:11 PM   #29
dpak.verma.maa@gmail.com
LQ Newbie
 
Registered: Jan 2013
Posts: 27

Original Poster
Rep: Reputation: Disabled
NO again same error
 
Old 01-13-2013, 04:18 PM   #30
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
Looks like something is wrong with your build.

Are you able to run this when inside the chrooted environment:
Code:
echo 'main(){}' > dummy.c
cc dummy.c -v -Wl,--verbose &> dummy.log
readelf -l a.out | grep ': /lib'
If not then your LFS system isn't build in the correct way.

Btw: It's d r u u n a (druuna).
 
  


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
Gcc 4.6.1 can't Find in /mnt/lfs/tools on LFS verison 7.0 using LFS_TGT xerofoify Linux From Scratch 20 08-03-2012 01:55 PM
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 03:26 PM
LFS newbie stuck in Linux API headers step 5.5 LFS book 6.3 Vxplus Linux From Scratch 2 11-10-2008 09:13 PM


All times are GMT -5. The time now is 08:48 PM.

Main Menu
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