🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #42103

Profiling on Solaris x.86 ... Aaarrgh!

#42103
From: Steve Sullivan
Date: Thu, 11 Jan 1996 00:00
28 lines
1433 bytes
Hi - When I use -p or -pg with gcc 2.7.2 it fails to link.
Have you any suggestions on how I can get this working?

The details are:
When I issue:  gcc -p -o testa testa.c
I get:
ld: fatal: file mcrt1.o: cannot open file; errno=2
ld: fatal: File processing errors.  No output written to testa
 
I get the same results when I use g++, or when I try -pg.
However, using cc and CC with -p or -pg all work.
 
When I try:  gcc -p -o testa testa.c  /export/opt/SUNWspro/SC2.0.1/mcrt1.o 
I STILL get the error messages: cannot open mcrt1.o.
Yet I can browse the file mcrt1.o.
 
Can you give me any hints on getting profiling running with gcc or g++?
 
I'm running gcc 2.7.2 with Solaris 2.4 x.86 on a Pentium.
I installed gcc with:   ./configure --with-gnu-as --with-stabs
and am using gnu "as" version 2.6.
However, the gnu loader does not support this platform, so it is
not installed.  I had to use the gnu assembler and the gcc stabs
option to get debugging "-g" to work.
 
Many thanks for any suggestions ...
 
Steve Sullivan
Technical Details
Message-ID: <DL1CrK.KqA.0.net@indra.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,854d3fc9394faf6b,start
X-Google-Attributes: gid11318c,public
From: sullivan@indra.com (Steve Sullivan)
Subject: Profiling on Solaris x.86 ... Aaarrgh!
Date: 1996/01/11
Message-ID: <DL1CrK.KqA.0.net@indra.com>
X-Deja-AN: 135045620
organization: Indra's Net - Public Internet Access
newsgroups: gnu.gcc.help