Article View: gnu.gcc.help
Article #51426Re: as error in Gcc version 2.4.2 on Sun SS2
From: Tilman Spokert
Date: Tue, 01 Jun 1993 19:15
Date: Tue, 01 Jun 1993 19:15
72 lines
2740 bytes
2740 bytes
If anybody has an answer to this, please post it. I have seen another post
with the same problem, and I myself have this problem, too.
More info:
The error happens in the temporary file generated by collect2 with the
constructor and destructor lists. It appears that the constructor calls
are taken verbatim from nm and being stuffed into this file, including the
paranthesis, like
.....$I$Bus()
for a constructor of the class Bus. Sun's as and gas both don't like this.
This happens wether the GNU linker is installed as gld or not.
Configuration: sparc-sun-sunos4.1
or sparc-sun-sunos4.1.3
gcc2.4.0
or gcc2.4.1
I noticed that even if I install gld, collect2 will still run nm AFTER running
gld once!
In article <ARTHURC.93Jun1110722@keiko.doe.carleton.ca> arthurc@doe.carleton.ca (Arthur Castonguay) writes:
>I'm getting an error from as whenever I try to compile a C++ program
>using gcc version 2.4.2 (also on version 2.4.0 last Friday).
>
>The test program is:
>
> #include <stream.h>
>
> main()
> {
> cout << "Hello world\n";
> }
>
>The compiler invocation line is:
>
> g++ test.cc -o test-cc
>
>The error returned is:
>
> as: "/usr/tmp/cca26475.s", line 8: error: statement syntax
> as: "/usr/tmp/cca26475.s", line 14: error: statement syntax
> collect: gcc returned 1 exit status
>
>My environment is as follows:
>
> Sun Sparc II
> SunOS 4.1.2
> Configured as: configure --target=sparc-sun-sunos4.1.2
> libg++ version 2.2
>
>The compiler source was completely unmodified and we're running SunOS 4.1.2
>right off the CD (no patches installed). There seems to be no problem with
>the C compiler. During installation I build stage 2 and 3 and compared them.
>No differences were reported.
>
>If there is anyone out there that knows a fix I'd love to here it.
>
>Thanks in advance,
>Arthur
>
>---
>Arthur Castonguay Email: arthurc@doe.carleton.ca
>CAD System Administrator
>Department of Electronics
>Carleton University
>
>
>
--
Tilman Sporkert tilman@netcom.com
Technical Details
Message-ID:
<tilmanC7yIty.BJt@netcom.com>Path:
arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uunet!olivea!decwrl!decwrl!netcomsv!netcom.com!tilmanReferences:
<ARTHURC.93Jun1110722@keiko.doe.carleton.ca>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,91c8ac48f8305a3d X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-06-01 12:42:50 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uunet!olivea!decwrl!decwrl!netcomsv!netcom.com!tilman From: tilman@netcom.com (Tilman Spokert) Subject: Re: as error in Gcc version 2.4.2 on Sun SS2 Message-ID: <tilmanC7yIty.BJt@netcom.com> Organization: Netcom Online Communications Services (408-241-9760 login: guest) References: <ARTHURC.93Jun1110722@keiko.doe.carleton.ca> Distribution: gnu Date: Tue, 1 Jun 1993 19:15:34 GMT Lines: 72