LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-13-2013, 01:47 PM   #16
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412

Reinstall it I hope you have not missed anything else
 
Old 01-13-2013, 02: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, 02:08 PM   #18
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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, 02: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, 02:22 PM   #20
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Have you ever rebooted lfs while you have been building it
 
Old 01-13-2013, 02: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, 02:36 PM   #22
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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, 02: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, 02:45 PM   #24
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
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, 02:47 PM   #25
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Thks druuna you beat me to it
 
Old 01-13-2013, 03: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, 03:01 PM   #27
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Did it build this time?
 
Old 01-13-2013, 03: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, 03: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, 03:18 PM   #30
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
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



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 12:55 PM
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 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

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

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