LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-23-2007, 06:36 AM   #1
Santoshkb
Member
 
Registered: Sep 2007
Posts: 56

Rep: Reputation: 15
gcc Error ,executing .c file-> crt1.o not found


When compiled a C file.
gcc t.c

Error is

/usr/bin/ld: crt1.o: No such file: No such file or directory
 
Old 10-23-2007, 07:37 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
It looks like you have GCC installed but not the C libraries to link against.
Using your package manager, find the package called libc6-devel (or possibly just libc-devel or libc6) and install it.

Since you didn't say which operating system you are using, I can't give you more specific instructions, but you'll probably find a menu option called "Add/Remove Programs" or similar that will do the download and install for you.

Hope that helps,

—Robert J Lee
 
Old 06-15-2012, 11:14 PM   #3
manoj7410
Member
 
Registered: Jun 2012
Location: India
Distribution: 2.6.x
Posts: 40

Rep: Reputation: Disabled
Unhappy getting same error.

Quote:
Originally Posted by rjlee View Post
It looks like you have GCC installed but not the C libraries to link against.
Using your package manager, find the package called libc6-devel (or possibly just libc-devel or libc6) and install it.

Since you didn't say which operating system you are using, I can't give you more specific instructions, but you'll probably find a menu option called "Add/Remove Programs" or similar that will do the download and install for you.

Hope that helps,

—Robert J Lee
hi..
I am also getting the same error. tried to make files crt1.S, crti.S by myself. but those files were not supported by my target-gcc.

I am using linux-2.6.10
gcc-4.5.1
fedora 15
newlib-1.20.0
binutils-2.20.1
.
.
hope u'll help me.

thanks | Manoj
 
Old 06-22-2012, 04:55 PM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

Rep: Reputation: 76
Quote:
Originally Posted by manoj7410 View Post
hi..
I am also getting the same error. tried to make files crt1.S, crti.S by myself. but those files were not supported by my target-gcc.

I am using linux-2.6.10
gcc-4.5.1
fedora 15
newlib-1.20.0
binutils-2.20.1
.
.
hope u'll help me.

thanks | Manoj
Assuming you used the gcc that came with Fedora, you should be able to install the library using:
Code:
yum install glibc-devel
Hope that helps,

—Robert J Lee
 
Old 06-22-2012, 11:45 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
manoj7410 from your post you are using the NOW dead and End Of Line fedora 15
-- not good --
fedora 15 is unsupported , there will NEVER be any updates , no security fixes, no new nothing
it is dead.

please stay current if you are going to use fedora .
Install the current version FIRST . That is Fedora 17
THEN
figure out building software , once you have installed a SUPPORTED version
 
Old 06-23-2012, 04:49 AM   #6
manoj7410
Member
 
Registered: Jun 2012
Location: India
Distribution: 2.6.x
Posts: 40

Rep: Reputation: Disabled
Question

Quote:
Originally Posted by John VV View Post
manoj7410 from your post you are using the NOW dead and End Of Line fedora 15
-- not good --
fedora 15 is unsupported , there will NEVER be any updates , no security fixes, no new nothing
it is dead.

please stay current if you are going to use fedora .
Install the current version FIRST . That is Fedora 17
THEN
figure out building software , once you have installed a SUPPORTED version
hi..
Thanks john.. I want to switch to ubuntu now... but I am confused whether it is good for development of device drivers and compilers..??
should I switch..??
and which version of ubuntu..??
 
  


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
executing a loaded module returns "command not found" error neelay1 Linux - Software 1 05-08-2006 02:25 PM
crt1.o not found using mipsel-linux udaynag Linux - Software 0 12-08-2005 03:53 PM
can link with crt1.o error. wolver Linux From Scratch 0 01-16-2005 09:02 AM
Where do I find 'crt1.o' and 'crtn.o' for gcc 3.4.1 ? Qwirt Linux - Software 1 07-28-2004 06:08 PM
ld: cannot open crt1.o: No such file or directory PeterRanson *BSD 4 10-31-2003 11:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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