Article View: gnu.g++.help
Article #120Config problems, /usr/tmp files in error
From: Don R. Maszle
Date: Tue, 11 Aug 1992 22:09
Date: Tue, 11 Aug 1992 22:09
41 lines
2382 bytes
2382 bytes
My sys admin recently installed g++ 1.40 because he had problems
getting a 2.0 version working on our machine.
>> maze@bea: cpp>uname -a --> SunOS bea.lbl.g 4.1 1 sun4
>> maze@bea: cpp>mach --> sparc
Apparently the intermediate files that the compiler creates are not
parsable by the latter pass of the compiler. A verbose listing of
the compiler diagnostics appears at the end. My simplistic test file
appear after this introduction.
Incidentally, `a.out' is actually produced after the errors but as one
might expect, all it is good for is dumping core. Thanks in advance
for any clues. E-mail replies are preferred of course.
----- hello.C -----
// hello.cpp
#include <ostream.h>
int main (void)
{
cout << "Hello C++\n";
return 0;
} /* main */
--------------------
>> maze@bea: cpp>g++ -v hello.C
>> g++ version 1.40.3 (based on GCC 1.40)
>> /usr/local/lib/gcc-cpp -+ -v -undef -D__GNUC__ -D__GNUG__ -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ hello.C /usr/tmp/cca01621.cpp
>> GNU CPP version 1.40
>> /usr/local/lib/gcc-cc1plus /usr/tmp/cca01621.cpp -quiet -dumpbase hello.C -version -o /usr/tmp/cca01621.s
>> GNU C++ version 1.40.3 (based on GCC 1.40) (sparc) compiled by GNU C version 2.0.
>> default target switches: -mfpu -mepilogue
>> as -o hello.o /usr/tmp/cca01621.s
>> /usr/local/lib/gcc-ld -e start -dc -dp /lib/crt0.o /usr/local/lib/gcc-ccrt0.o hello.o -L/usr/local/lib/ -lg++ /usr/local/lib/gcc-gnulib -lc
>> /usr/tmp/CDTORa01625.c:4: parse error before `.'
>> /usr/tmp/CDTORa01625.c:9: `_GLOBAL_$I$fmtq' undeclared, outside of functions
>> /usr/tmp/CDTORa01625.c:14: parse error before `.'
>> /usr/tmp/CDTORa01625.c:19: `_GLOBAL_$D$fmtq' undeclared, outside of functions
>> ld: /usr/tmp/CDTORa01625.o: No such file or directory
Technical Details
Message-ID:
<25414@dog.ee.lbl.gov>Path:
arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!zaphod.mps.ohio-state.edu!rphroy!caen!hellgate.utah.edu!dog.ee.lbl.gov!bea.lbl.gov!mazeShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.asd.contel.com!darwin.sura.net!wupost!zaphod.mps.ohio-state.edu!rphroy!caen!hellgate.utah.edu!dog.ee.lbl.gov!bea.lbl.gov!maze From: maze@bea.lbl.gov (Don R. Maszle) Newsgroups: gnu.g++.help Subject: Config problems, /usr/tmp files in error Keywords: config /usr/tmp Message-ID: <25414@dog.ee.lbl.gov> Date: 11 Aug 92 22:09:48 GMT Sender: maze@bea.lbl.gov (Don Maszle) Followup-To: gnu.g++.help Distribution: gnu Organization: Lawrence Berkeley Laboratory, Berkeley Lines: 41 NNTP-Posting-Host: 128.3.12.45