LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-29-2011, 11:39 AM   #1
liajeava
LQ Newbie
 
Registered: Oct 2011
Posts: 13

Rep: Reputation: Disabled
Exclamation 6.22. E2fsprogs-1.41.14 - unable to create exceutables


Hello,

I am at "6.22. E2fsprogs-1.41.14" section of the LFS book.
Code:
PKG_CONFIG=/tools/bin/true LDFLAGS=-lblkid \
    ../configure --prefix=/usr --with-root-prefix="" \
    --enable-elf-shlibs --disable-libblkid --disable-libuuid \
    --disable-uuidd --disable-fsck
On running above, i get error, that the compiler cannot create executables.

Please help how to resolve this.

Host: Ubuntu 11.10 x86.
 
Old 10-30-2011, 06:32 AM   #2
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
Hi,

Is this the first time you get this specific error? I'm asking because you would expect this error to show up when building the first package in chapter 6 (all of chapter 6 uses what has been build in chapter 5).

Only thing that I can come up with right now: Did you restart (reboot) before you started working on e2fsprogs? If that is the case: Did you set up the environment and re-enter the chrooted correctly? (see 6.4. Entering the Chroot Environment (Note at the bottom)).

Hope this helps.
 
Old 10-30-2011, 06:38 AM   #3
liajeava
LQ Newbie
 
Registered: Oct 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
Yes, this is the first i have got this error.
No, i have not rebooted at all.
 
Old 10-30-2011, 06:47 AM   #4
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
Hi,

Assuming you did create and enter the build directory: Please post the log file that was created, so we can have a more detailed look.

BTW: Did you try re-doing this package? If so: Did you completely remove the source directory before retrying (point 3E, second Important box)?

Hope this helps.
 
Old 10-31-2011, 07:52 AM   #5
liajeava
LQ Newbie
 
Registered: Oct 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
yes, i had created the build dir, as specified that it should be a sub directory.

config.log: https://gist.github.com/58aba73ca091b5e8a9c0

Yes, i tried re-doing the package. The error persists.

Last edited by liajeava; 10-31-2011 at 07:57 AM.
 
Old 10-31-2011, 10:21 AM   #6
magiknight
Member
 
Registered: Oct 2003
Posts: 37

Rep: Reputation: 4
did you follow the directions carefully when chrooting into the environment?
from the log:
Code:
hostname = ubuntu
uname -m = i686
uname -r = 3.0.0-12-generic
uname -s = Linux
uname -v = #50-Ubuntu SMP Sat Mar 17 03:45:11 UTC 2009
Ubuntu shouldnt show up has the hostname.

Last edited by magiknight; 10-31-2011 at 10:39 AM.
 
0 members found this post helpful.
Old 10-31-2011, 10:42 AM   #7
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
Hi,

From the config.log file:
Quote:
configure:3099: checking whether the C compiler works
configure:3121: gcc -lblkid conftest.c >&5
/usr/bin/ld: cannot find -lblkid
collect2: ld returned 1 exit status
Is blkid present in your chrooted environment? It should have been installed during the build of util-linux (previous package).

Hope this helps.
 
1 members found this post helpful.
Old 10-31-2011, 01:24 PM   #8
liajeava
LQ Newbie
 
Registered: Oct 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
Thank-you very much druuna, for going through the 'long' log and pin-pointing the issue.

I re-did the util-linux package, and then the e2fsprogs package did not give any error.

I must have missed some error that util-linux might have given before.

Thanks again. (saved me a lot of time, was preparing to re-do everything on a different host)
 
Old 10-31-2011, 01:31 PM   #9
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
You're welcome
 
  


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
Updating e2fsprogs Prasanna_Adhikari Slackware 19 03-07-2011 01:39 AM
5.19 E2fsprogs-1.41.3 chmod jpeters Linux From Scratch 2 03-28-2009 04:50 PM
i am unable to load mappingtable by using dmsetup and unable to create vitualdevice varunsharma35 Linux - Software 0 12-20-2008 09:52 AM
e2fsprogs = defrag? ninja master Linux - Software 3 06-04-2008 06:12 AM
Can't Compile e2fsprogs 1.34 TruckStuff Linux - Software 0 02-16-2004 05:59 PM

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

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