Article View: gnu.gcc.help
Article #42155gnu gcc -p and -pg fail
From: Steve Sullivan
Date: Mon, 08 Jan 1996 00:00
Date: Mon, 08 Jan 1996 00:00
26 lines
1294 bytes
1294 bytes
Hi - 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 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 sullivan@mathcom.com
Technical Details
Message-ID:
<DKuK49.5o4.0.net@indra.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,2b75bdafbc6fa994,start X-Google-Attributes: gid11318c,public From: sullivan@indra.com (Steve Sullivan) Subject: gnu gcc -p and -pg fail Date: 1996/01/08 Message-ID: <DKuK49.5o4.0.net@indra.com> X-Deja-AN: 134453590 organization: Indra's Net - Public Internet Access newsgroups: gnu.gcc.help