Welcome to Tech Support Forum home to more then 136,000 problems solved. Issues have included: Spyware, Malware, Virus Issues, Windows, Microsoft, Linux, Networking, Security, Hardware, and Gaming Getting your problem solved is as easy as:
1. Registering for a free account
2. Asking your question
3. Receiving an answer

Registered members:
* Get free support
* Communicate privately with other members (PM).
* Removal of this message
* See fewer ads.
* And much more..

 



Want to know how to post a question? click here Having problems with spyware and pop-ups? First Steps
Go Back   Tech Support Forum > Alternative Computing > Linux Support
User Name
Password
Site Map Register Donate Rules Blogs Mark Forums Read


Linux Support Linux - Operating Systems and Applications Support

Reply
 
LinkBack Thread Tools
Old 07-29-2008, 01:40 AM   #1 (permalink)
Registered User
 
Join Date: Jul 2008
Posts: 30
OS: Ubuntu 8.04 LTS


LFS problems

i'm trying out LFS and i'm disappointed that i was unable to get past the first requisite without an error, can someone help me configure what this means after running this sequence:

cd /tmp
tar zxvf e2fsprogs-1.40.2
cd e2fsprogs-1.40.2
mkdir -v build
cd build
../configure

and i got the error remark..

root@home-desktop:/tmp/e2fsprogs-1.40.2/build# mk dir /usr/bin/ld
-bash: mk: command not found
root@home-desktop:/tmp/e2fsprogs-1.40.2/build# mkdir /usr/bin/ld
mkdir: cannot create directory `/usr/bin/ld': File exists
root@home-desktop:/tmp/e2fsprogs-1.40.2/build# ../configure
Generating configuration file for e2fsprogs version 1.40.2
Release date is July, 2007
checking build system type... i686-pc-linux-gnulibc1
checking host system type... i686-pc-linux-gnulibc1
CC defaults to cc
checking for gcc... cc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

the config.log file shows this:

configure:2366: $? = 1
configure:2389: checking for C compiler default output file name
configure:2416: cc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2419: $? = 1
configure:2457: result:
configure: failed program was:
| /* confdefs.h. */

Last edited by iconicmoronic; 07-29-2008 at 01:42 AM.
iconicmoronic is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Important Information
Join the #1 Tech Support Forum Today - It's Totally Free!

TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free.

Join TechSupportforum.com Today - Click Here

Old 07-30-2008, 09:33 PM   #2 (permalink)
Manager
 
shuuhen's Avatar
 
Join Date: Sep 2004
Location: Colorado
Posts: 986
OS: Mac OS 9.1, Mac OS X 10.5.8, WinXP Pro, FreeBSD 6.0, Gentoo Linux

My System

Re: LFS problems

Could you tell us the page of the book? Since it's a free document, being able to see the page number may help.

The key line as far as I can determine would be:
/usr/bin/ld: crt1.o: No such file: No such file or directory

equery (a nice command on Gentoo systems) tells me crt1.o belongs to the glibc package (which is called libc6 on *buntus and probably most other Debian-based systems). Here are some packages you should make sure are installed on your system (if this error is happening from an Ubuntu system):

libc6
libc6-dev
gcc


If you search for gcc, you'll get sdf list with gcc, gcc-3.3, gcc-3.3-base, gcc-4.1, gcc-4.1-base, etc. The one that's only "gcc" should be installed and at least one pair of "gcc-m.n" and "gcc-m.n-base" (where m and n are the major and minor version numbers) are installed. You can have multiple gcc versions installed, although typically it's only expected to happen on developer installs.
__________________


Has it been a few days since I replied to your thread? Don't panic! I'm a busy college student and may forget a post if I'm extra busy (or it might just take me a while to be able to do a decent reply). If you still need help and are awaiting my reply after a few days, PM me about it.

When posting what errors you get, please give the full message. It makes helping you much easier.
shuuhen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-30-2008, 10:41 PM   #3 (permalink)
Registered User
 
Join Date: Oct 2007
Location: Littleton, Colorado USA
Posts: 470
OS: xp 64 sp2 Fedora Core 8 (vmware xp core 8 x32) Minix


Re: LFS problems

crt1.o is the file that sets up and saves the registers when a main routine calls a subroutine. So when the subroutine finishes, it knows how to unwind the stack and get back to the main.

The gcc development system is not installed.

Here is the "objdump" of crt1.o:
0000000000000000 <_start>:
0: 31 ed xor %ebp,%ebp
2: 49 89 d1 mov %rdx,%r9
5: 5e pop %rsi
6: 48 89 e2 mov %rsp,%rdx
9: 48 83 e4 f0 and $0xfffffffffffffff0,%rsp
d: 50 push %rax
e: 54 push %rsp
f: 49 c7 c0 00 00 00 00 mov $0x0,%r8
16: 48 c7 c1 00 00 00 00 mov $0x0,%rcx
1d: 48 c7 c7 00 00 00 00 mov $0x0,%rdi
24: e8 00 00 00 00 callq 29 <_start+0x29>
29: f4 hlt
2a: 90 nop
2b: 90 nop

This is probably more that you every wanted to know.
lensman3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Old 07-30-2008, 10:43 PM   #4 (permalink)
Registered User
 
Join Date: Oct 2007
Location: Littleton, Colorado USA
Posts: 470
OS: xp 64 sp2 Fedora Core 8 (vmware xp core 8 x32) Minix


Re: LFS problems

Quote:
Originally Posted by lensman3 View Post
crt1.o is the file that sets up and saves the registers when a main routine calls a subroutine. So when the subroutine finishes, it knows how to unwind the stack and get back to the main.

The gcc development system is not installed.

Here is the "objdump" of crt1.o:
0000000000000000 <_start>:
0: xor %ebp,%ebp
2: mov %rdx,%r9
5: pop %rsi
6: mov %rsp,%rdx
9: and $0xfffffffffffffff0,%rsp
d: push %rax
e: push %rsp
f: mov $0x0,%r8
16: mov $0x0,%rcx
1d: mov $0x0,%rdi
24: callq 29 <_start+0x29>
29: hlt
2a: nop
2b: nop


This is probably more that you every wanted to know and is for a 64 bit machine
lensman3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -7. The time now is 02:53 AM.



Copyright 2001 - 2009, Tech Support Forum
Home Tips Plus | Outdoor Basecamp | Automotive Support Forum

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85