* crt1.o not found
@ 2008-08-08 20:57 Nate879
2008-08-08 22:23 ` Brian Dessent
0 siblings, 1 reply; 3+ messages in thread
From: Nate879 @ 2008-08-08 20:57 UTC (permalink / raw)
To: gcc-help
When I try to use GCC, I get the message "crt1.o: No such file: No such file
or directory". How do I fix this? I am using Debian Linux.
Some other sites say to install "glibc-devel". But AFAIK, this package isn't
available.
--
View this message in context: http://www.nabble.com/crt1.o-not-found-tp18898777p18898777.html
Sent from the gcc - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: crt1.o not found
2008-08-08 20:57 crt1.o not found Nate879
@ 2008-08-08 22:23 ` Brian Dessent
0 siblings, 0 replies; 3+ messages in thread
From: Brian Dessent @ 2008-08-08 22:23 UTC (permalink / raw)
To: Nate879; +Cc: gcc-help
Nate879 wrote:
> Some other sites say to install "glibc-devel". But AFAIK, this package isn't
> available.
The exact name of the package varies from distro to distro, but the
advice still holds. Debian calls it "libc-dev" which is a virtual
package that currently expands to something like libc6-dev.
How did you manage to install a compiler without the APT dependencies
also causing this package to be installed? It should be automatically
added. Oh, I see, it's only "recommends:" not "depends:"
<http://packages.debian.org/etch/gcc>.
Brian
^ permalink raw reply [flat|nested] 3+ messages in thread
* crt1.o not found
@ 2001-03-22 12:06 bkohlen
0 siblings, 0 replies; 3+ messages in thread
From: bkohlen @ 2001-03-22 12:06 UTC (permalink / raw)
To: gcc-help
I am using a gcc, glibc, and ld which were compiled on i686, for an arm
host, with an arm target. I packaged them by using
$ ./configure --prefix=$install_prefix (and a whole bunch of cross
compile flags)
$ make install prefix=/some/isolated/location"$install_prefix"
I noticed that libc.so still included the "/some/isolated/location" part
of the path, so I manually fixed that, because I intended to install
everything at it's respective "$install_prefix".
gcc works to compile a simple program, as long as I use the -c flag. If
it tries to link, it gives the error:
$ gcc test.c
/usr/arm-linux/bin/ld: cannot open crt1.o: No such file or directory
collect2: ld returned 1 exit status
if I manually try to link with crt1.o I get some undefined references
$ ld -o test /lib/crt1.o test.o -lc
/lib/crt1.o: In function `_start':
/lib/crt1.o(.text+0x28): undefined reference to `_fini'
/lib/crt1.o(.text+0x30): undefined reference to `_init'
I grepped the entire binutils package, looking for some reference to
"/some/isolated/location", thinking that maybe ld was playing the same
trick on me that libc.so had, but there were no hits.
ld --verbose revealed SEARCH_DIR's of (/lib) (/usr/lib) (/usr/local/lib)
and (/usr/arm-linux/lib). crt1.o is found in /lib on my system. out of
desperation i copied it to /usr/lib, but it didn't improve things.
I would appreciate any help, and I realize this is a FAQ, but I can't
resolve the problem with any of the archive searching I have done.
Thanks,
Ben
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-08-08 20:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-08 20:57 crt1.o not found Nate879
2008-08-08 22:23 ` Brian Dessent
-- strict thread matches above, loose matches on Subject: below --
2001-03-22 12:06 bkohlen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).