NetBSD Problem Report #653
From gnats Wed Dec 21 21:42:22 1994
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id VAA09980 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Wed, 21 Dec 1994 21:42:21 -0800
Message-Id: <199412220546.VAA13393@steelhead.cs.wwu.edu>
Date: Wed, 21 Dec 1994 21:46:06 -0800
From: Phil Nelson <phil@steelhead.cs.wwu.edu>
Reply-To: phil@steelhead.cs.wwu.edu
To: gnats-bugs@NetBSD.ORG
Subject: cc -p file.c causes load error
X-Send-Pr-Version: 3.2
>Number: 653
>Category: lib
>Synopsis: cc -p file.c causes load error
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: lib-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Dec 21 21:50:03 +0000 1994
>Closed-Date: Thu Dec 22 06:31:48 +0000 1994
>Last-Modified:
>Originator: Phil Nelson
>Release: 1.0
>Organization:
"NetBSD/pc532"
>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
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: cgd
State-Changed-When: Wed Dec 21 22:31:48 PST 1994
State-Changed-Why:
"-p" is not the profile option that should be used. using "-pg", which
generates code for gprof profiling, does the right thing.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.