Bug 8909

Summary: ld can't open crt1.o
Product: [Retired] Red Hat Linux Reporter: Jason A. Whittle <jaw269>
Component: ld.soAssignee: Cristian Gafton <gafton>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-02-05 03:28:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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.