Bug 8909 - ld can't open crt1.o
Summary: ld can't open crt1.o
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: ld.so
Version: 6.1
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Cristian Gafton
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2000-01-26 21:52 UTC by Jason A. Whittle
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2000-02-05 03:28:25 UTC

Attachments (Terms of Use)

Description Jason A. Whittle 2000-01-26 21:52:43 UTC
I'm trying to compile this file:
int main(int argc, char **argv) {
	(void) argc;
	(void) argv;

	puts("Hello, world!");
	return 0;

using this command:
gcc -g -D_GNU_SOURCE hello.c -o hello

returns this:
/usr/bin/ld: cannot open crt1.o: No such file of directory
collect2: ld returned 1 exit status

I'm using binutils- on rh6.1, and this package verifies without
issue. /usr/bin/ld --version:
GNU ld 2.9.1
Copyright 1997 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
  Supported emulations:

Can someone tell me what I'm doing wrong?

Comment 1 Jason A. Whittle 2000-01-27 18:26:59 UTC
The only file named crt1.o I could find on my system was
/usr/i386-glibc20-linux/lib and this directory wasn't included in
/etc/ld.so.conf, so I added it, then ran ldconfig. As you've probably already
guessed, this broke everything on my system. So, I'm back where I started. Is
there supposed to be anything in ld.so.conf besides /usr/X11R6/lib and
/usr/i486-linux-libc5/lib? This is the configuration that was given to me by a
clean install of RH6.1.

Comment 2 Bill Nottingham 2000-01-27 23:30:59 UTC
Do you have the glibc-devel package installed?

Comment 3 Cristian Gafton 2000-02-05 03:28:59 UTC
glibc-devel needs to be installed on the system

Comment 4 Jason A. Whittle 2000-02-07 01:26:59 UTC
Boy, do I feel foolish. Forgot that one when I made a clean install to fix
another bug. Thanks, and sorry for wasting your time.

Note You need to log in before you can comment on or make changes to this bug.