Compiling -mips3 -n32 with MIPSpro7.2

New Message Reply Date view Thread view Subject view Author view

Jay Gischer (gischer++at++puget.engr.sgi.com)
Wed, 15 Apr 1998 08:57:19 -0700 (PDT)


Scott McMillan writes:
> I know this is a bit outside the scope of Performer but I am
> trying to compile a Performer program...
>
> I just installed the new 7.2 MIPSpro C++ compiler (you know,
> the one that requires a license now :-0 ) on an R5K O2, installed
> the April edition of the recommended patchset plus all of the
> applicable patches for the compiler.
>
> I want to compile the application with '-mips3 -n32' so that I
> can run the app on an R4x00 platform too. When it links, I get
> the following message:
>
> ld32: WARNING 158: Expecting MIPS3 objects: /usr/lib32/crt1.o is MIPS4.
>
> The resulting executable is MIPS4 which will only run on systems
> with R5K, R8K, and R10K cpus.
>
> In /usr/lib32, crt1.o is a link to mips4/crt1.o, and there
> exists a mips3/crt1.o. Is there a way to get the new linker
> to understand the meaning of the -mips3 option and link the
> appropriate object? Is there a known workaround, short of
> changing the links?
>
> Thanks in advance,
> scott
>

Adding the "-L /usr/lib32/mips3" to the link step of the compilation
should make it take all the mips3 libraries and crt1.o (and crtn.o, as
if it matters).

But I don't know what the ramifications of doing this are. Will
the resulting program always work correctly? I don't know. I'll
check on it and get back to you.

------------------------------------------------------------------------
Jay L Gischer + "I see great things in baseball. It's our game.
Advanced Graphics + It will repair our losses and be a blessing to
Software + us."
Silicon Graphics + -Walt Whitman
(415) 390-4277 +
gischer++at++sgi.com + "A life has no meaning except in the impact it
                     + has on other lives"
                     + -Jackie Robinson

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:57:14 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.