Subject: lib/653: cc -p file.c causes load error
To: None <gnats-admin@sun-lamp.cs.berkeley.edu>
From: Phil Nelson <phil@steelhead.cs.wwu.edu>
List: netbsd-bugs
Date: 12/21/1994 21:50:05
>Number:         653
>Category:       lib
>Synopsis:       cc -p file.c causes load error
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 21 21:50:03 1994
>Originator:     Phil Nelson
>Organization:
"NetBSD/pc532"
>Release:        1.0
>Environment:
System: NetBSD steelhead 1.0A NetBSD 1.0A (STEELHEAD) #1: Tue Dec 20 21:51:46 PST 1994 phil@steelhead:/usr/src/sys/arch/pc532/compile/STEELHEAD pc532

Also on NetBSD 1.0 (and 1.0A) i386

>Description:
	Compiling with the "profile" option causes a ld error
	"mcrt0.o: No such file or directory"
	
>How-To-Repeat:
	echo "main(){}" > file.c
	cc -p file.c
>Fix:
	One of:
		have src/lib/csu/XXX install gcrt0.o with a link
		to mcrt0.o
	or
		change cc to use gcrt0.o insted of mcrt0.o

>Audit-Trail:
>Unformatted: