🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.sys.sgi.misc
2 messages
2 total messages Started by Victor Danilchenko Fri, 20 Nov 1998 00:00
Need help with generating SGI N32 objects by GCC 2.8.1
#388
Author: 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.       |
Re: Need help with generating SGI N32 objects by GCC 2.8.1
#387
Author: Pim van Riezen
Date: Sat, 21 Nov 1998 00:00
29 lines
2014 bytes
Victor Danilchenko wrote:
> 
>         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.

I think your trouble is with which assembler is invoked for which ABI.
For n32, gcc needs to invoke the SGI assembler, for o32 it somehow needs
the gnu assembler I think. Toy a bit with that. Also, I think the
correct flag for gcc2.8.x is -mabi=n32 if you want n32 output.

Pim

-- 
"I'm at the corner of Walk and Don't Walk, where shall we meet?"

Operations - SaltLake.UT.US.Undernet.Org 
Channel LART - #linux Undernet 
Programmer sometimes LART - Microhill Automation
Cat5 Monkey - Webcity / Internet Facilities Europe
Eerie-eyed Visionair Software Developer - StealthTech Networking
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads