Compiling gcc-3.2.2 (HOWTO)

IRIX/Nekoware development, porting and related topics.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
nekonoko
Site Admin
Site Admin
Posts: 8145
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Compiling gcc-3.2.2 (HOWTO)

Unread postby nekonoko » Wed Feb 12, 2003 9:23 pm

Not sure how many of you are using gcc-3.2.1 from SGI's Freeware (as it requires IRIX 6.5.18+ due to the header changes), but his may help some.

I discovered a nasty bug with g++ which made it useless for even those using 6.5.18. Yes, once again an issue with the new header structure ... a compile time option was left off by SGI that generates unresolvable errors during g++ compiles.

gcc-3.2.2 was released a couple of days ago so I decided to take advantage of the situation and repair the botched gcc-3.2.1 SGI Freeware version. It was pretty easy to get going.

Untar and change to gcc-3.2.2/:

Code: Select all

./configure --prefix=/usr/freeware --enable-version-specific-runtime-libs --enable-threads --enable-haifa --disable-c-mbchar --disable-shared

gmake bootstrap
gmake install

[Mika:~] neko 105% gcc -v
Reading specs from /usr/freeware/lib/gcc-lib/mips-sgi-irix6.5/3.2.2/specs
Configured with: ./configure --prefix=/usr/freeware --enable-version-specific-runtime-libs --enable-threads --enable-haifa --disable-c-mbchar --disable-shared
Thread model: single
gcc version 3.2.2


That's it!

I just tried it on code that was killing me under 3.2.1 and I'm now getting clean compiles :)

BTW, you can use the same method to install 3.2.2 on IRIX 6.5.17 and below, just leave off the --disable-c-mbchar switch on the configure line.
Last edited by nekonoko on Sun Feb 16, 2003 2:52 am, edited 1 time in total.
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

User avatar
Shtoink
Posts: 839
Joined: Mon Jan 27, 2003 1:46 am
Location: Port Orchard, WA

Unread postby Shtoink » Fri Feb 14, 2003 6:52 pm

/me needs to figure out how to get ahold of 6.5.19f some how... :cry:

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8145
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Unread postby nekonoko » Sat Feb 15, 2003 4:05 pm

Shtoink wrote:/me needs to figure out how to get ahold of 6.5.19f some how... :cry:


You don't need 6.5.19 to compile 3.2.2, 6.5.19 just needs an extra switch to do so is all.
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

ian
Posts: 15
Joined: Mon Feb 17, 2003 12:55 pm
Contact:

Unread postby ian » Mon Feb 17, 2003 12:59 pm

Shtoink wrote:/me needs to figure out how to get ahold of 6.5.19f some how... :cry:


why do you want a feature release? it only contains unsupported software for sgi customers who want to live dangerously ;)

User avatar
psergiu
Posts: 130
Joined: Thu Jan 23, 2003 6:43 am
Location: DFW, TX, US
Contact:

Unread postby psergiu » Tue Feb 18, 2003 10:47 am

ian wrote:
Shtoink wrote:/me needs to figure out how to get ahold of 6.5.19f some how... :cry:

why do you want a feature release? it only contains unsupported software for sgi customers who want to live dangerously ;)


Also take note that this is 6.5.19 - and as we all linux users know - this is the unstable version. Better stick with 6.4 :twisted:

User avatar
Shtoink
Posts: 839
Joined: Mon Jan 27, 2003 1:46 am
Location: Port Orchard, WA

Unread postby Shtoink » Wed Mar 05, 2003 10:42 am

I like the little disclaimer about gcc 3.2.1 on the freeware site.

NOTE: fw_gcc/3.2.1 should only be used on systems running IRIX 6.5.18 or later. It accidentally picked up some version-specific headers. Older system can still run fw_gcc/3.0.4


Accidentally, eh?


Return to “SGI: Development”

Who is online

Users browsing this forum: No registered users and 1 guest