🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sgi.misc
Article #388

Need help with generating SGI N32 objects by GCC 2.8.1

#388
From: Victor Danilchenko
Date: Fri, 20 Nov 1998 00:00
41 lines
2407 bytes
	Hi,
	This is probably a really stupid question, but I was unable to find an
answer to it, despite looking though both GCC manuals (and install
notes), and searching the Dejanews. I have a feeling that the answer is
right in front of me, but I can't find it...

	Here is what happens. Some C++ code I am compiling has to be linked
against libstdc++ (obviously), which is an archive of N32 objects.
Trouble is, the object files I am generating, are all O32. When I try to
pass what I *THINK* is the right flag to g++ (-Wa,-n32), assembler
complaint and does not generate ANY code.

Here is the command line I used to generate O32 objects:

g++ -c -Wall -DTRUE_SIMULATION
-I/usr/mmedia/drubenst/projects/cc/code/imp2/include.iris4d
-I/usr/mmedia/drubenst/projects/cc/code/imp2/
-I/usr/mmedia/drubenst/projects/fec/code -I/usr/freeware/lib/g++-include
/usr/mmedia/drubenst/projects/cc/code/imp2/pkt.C -o
/usr/mmedia/drubenst/projects/cc/code/imp2/obj.iris4d/pkt.o

	This one works, but the objects it produces cannot be linked with
libstdc++.

When I include the "-Wa,-n32" flag right after "g++", the assembler
spits out a large number of messages similar to the following:

as: Error: /usr/mmedia/drubenst/projects/cc/code/imp2/pkt.C, line 1:
stmt extends past logical end
      .globl __11_ios_fieldsRC11_ios_fields .text

	Does anyone have any idea of how I could force the compiler and
assembler to generate the N32 objects?

	Thanks,

-- 
|  Victor A. Danilchenko       CSCF support  |
|  danilche@cs.umass.edu       A313, 5-4231  |
+--------------------------------------------+
|       Quando omni flunkus, moritati.       |
Technical Details
Message-ID: <36558167.BDE7DCBC@cs.umass.edu>
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,1985a6966dc11519,start
X-Google-Attributes: gid11318c,public
X-Google-Thread: 100159,1985a6966dc11519,start
X-Google-Attributes: gid100159,public
From: Victor Danilchenko <danilche@cs.umass.edu>
Subject: Need help with generating SGI N32 objects by GCC 2.8.1
Date: 1998/11/20
Message-ID: <36558167.BDE7DCBC@cs.umass.edu>
X-Deja-AN: 413880355
X-NNTP-Posting-Host: gorgon.cs.umass.edu
Content-Transfer-Encoding: 7bit
X-Accept-Language: ru
Content-Type: text/plain; charset=us-ascii
X-Trace: 20 Nov 1998 09:47:11 -0500, gorgon.cs.umass.edu
Organization: Dept. of Computer Science, UMass/Amherst
MIME-Version: 1.0
Newsgroups: comp.sys.sgi.misc,gnu.gcc.help