Questions about using gcc 2.8.1 on Irix 6.4

Tim Prince tprince@computer.org
Thu Apr 20 14:20:00 GMT 2000


You might find it worth while to upgrade to gcc-2.95.2.  That
should be easy to do if you have 2.8.1 running.

A typical linux system has a link installed in /usr/bin to make
gcc appear also as cc.  If the makefile doesn't use a variable
such as $(CC), you could use setalias.

Your likely option choice might be '-g -O2 -funroll-loops'  The
reason for using -g, even though you can't use a debugger with
Irix as, is that permits the speedshop profilers to work.  -O3
is the same, except it does some automatic inlining of functions
which are defined earlier in the source file.  Irix as is the
standard choice for gcc; without the optimizations done in that
as, gcc might be really slow running.

I thought mabi=32 was the default.  It's been 6 weeks since I
ran gcc on Irix (unemployed since).  The normal way to build
gcc-2.95.2 is to force everything into -n32 mode.  There is some
possibility of -n64 but libf2c is not portable to -n64.

Irix make (not pmake) resembles an obsolete version of gnu make.
You would need gnu make to upgrade gcc, but Irix make should be
OK for compiling OpenGL.  On my last Irix system, make invoked
pmake by default, while you need the -j option to invoke
parallel make with gnu make.  If there are sequential
dependencies not properly defined in makefile, either parallel
make can give trouble.  You do get a feeling of power running
parallel make on a multi-processor Irix system.

----- Original Message -----
From: "Kathleen Langone" <kathleen.langone@netmanage.com>
To: "'gcc'" <gcc@gcc.gnu.org>
Cc: "'kathleen'" <kathleen.langone@netmanage.com>;
<freeware@sgi.com>
Sent: Thursday, April 20, 2000 12:04 PM
Subject: Questions about using gcc 2.8.1 on Irix 6.4


> (similar questions posted in gcc help - didn't get any replies
there)
>
> I've got all necessary header files and libs installed(like
the Irix
> as..etc) and using gcc 2.8.1.
> And I'm trying to compile OpenGL programs.
> 1) I don't know where to override the CFLAGS define. And where
the best
> place to "globally" declare cc -> gcc?
> 2) What would be a good basic set of compile switches of gcc
in the Irix
> 6.4 environment?
> 3) It complaining about -mabi=32 support does not work yet...
Am I missing
> something in the installation? Or can the error go away w/ the
correct set
> of compile swicthes?
> 4) I'm not using gnu make? Is that a problem? I'm using the
SGI make and
> assembler(as).
>
> Any and all information would be appreciated. I've looked at
numerous
> websites that talk about gcc on Irix but haven't been able to
find answer
> to these problems w/ my particular configuration.
> If possible please respond to mailing list and
> kathleen.langone@netmanage.com
> thanks in advance!!!!
>
>



More information about the Gcc mailing list