How to compile GCC 4.7.1 on IRIX

If you're coding on or porting to IRIX, this is the forum for discussion.
Post Reply
User avatar
LarBob
Posts: 62
Joined: Mon Dec 25, 2017 4:08 pm
Location: Kentucky, United States
Contact:

How to compile GCC 4.7.1 on IRIX

Post by LarBob » Sat Jun 02, 2018 8:31 pm

Last edited by LarBob on Thu Jul 19, 2018 6:27 pm, edited 30 times in total.
:Octane: Aezora - Octane - 2xR10k 250 MHz - SI Graphics - 1 GB RAM - 6.5.30f
:O2: Kiki - O2 - R5k 180 MHz - 192 MB RAM - Currently dead
:O3x0-2: Calcifer - Origin 300 - 4xR14k 500 MHz - 2 GB RAM - 6.5.30m
:O3x0-2: Tohru - Origin 350 - 4xR16k 800 MHz - 4 GB RAM - 6.5.30m - on loan from Raion
Mirrors

User avatar
Raion-Fox
Founder
Posts: 194
Joined: Fri Nov 17, 2017 12:23 am
Location: Virginia
Contact:

Re: How to compile GCC 4.7.1 on IRIX

Post by Raion-Fox » Sat Jun 02, 2018 8:43 pm

He is correct. irisware uses /opt/local
I'm the manager

Besides irix.cc, I run these sites:

projectkitsune.com

kazuo.io

User avatar
dexter1
Posts: 66
Joined: Thu May 24, 2018 9:30 am
Location: Zoetermeer, The Netherlands

Re: How to compile GCC 4.7.1 on IRIX

Post by dexter1 » Sun Jun 03, 2018 6:27 am

LarBob wrote:IMPORTANT NOTE: We don't have getopt_long. Before compiling:
* delete D["HAVE_GETOPT_H"]=" 1" line in config.status
* edit config.h + src/ppl.hh.dist to change lines w/ HAVE_GETOPT_H to comments
Brent Canavan has raised this issue in a recent portability track of iperf3
He has found a portable BSD License solution: https://github.com/kimgr/getopt_port. Build it with cmake (bump VERSION in CMakeLists.txt down to 2.8, since 3.3 doesn't compile cleanly yet)
Getting it inside ppl should not be too much work, but try to see if you can live without this first.

User avatar
LarBob
Posts: 62
Joined: Mon Dec 25, 2017 4:08 pm
Location: Kentucky, United States
Contact:

Re: How to compile GCC 4.7.1 on IRIX

Post by LarBob » Sun Jun 03, 2018 2:53 pm

dexter1 wrote:
Sun Jun 03, 2018 6:27 am
LarBob wrote:IMPORTANT NOTE: We don't have getopt_long. Before compiling:
* delete D["HAVE_GETOPT_H"]=" 1" line in config.status
* edit config.h + src/ppl.hh.dist to change lines w/ HAVE_GETOPT_H to comments
Brent Canavan has raised this issue in a recent portability track of iperf3
He has found a portable BSD License solution: https://github.com/kimgr/getopt_port. Build it with cmake (bump VERSION in CMakeLists.txt down to 2.8, since 3.3 doesn't compile cleanly yet)
Getting it inside ppl should not be too much work, but try to see if you can live without this first.
I get:

Code: Select all

g++      -64  CMakeFiles/cmTryCompileExec2716276232.dir/testCXXCompiler.cxx.o  -o cmTryCompileExec2716276232
g++: error: unrecognized command line option '-64'
:Octane: Aezora - Octane - 2xR10k 250 MHz - SI Graphics - 1 GB RAM - 6.5.30f
:O2: Kiki - O2 - R5k 180 MHz - 192 MB RAM - Currently dead
:O3x0-2: Calcifer - Origin 300 - 4xR14k 500 MHz - 2 GB RAM - 6.5.30m
:O3x0-2: Tohru - Origin 350 - 4xR16k 800 MHz - 4 GB RAM - 6.5.30m - on loan from Raion
Mirrors

User avatar
dexter1
Posts: 66
Joined: Thu May 24, 2018 9:30 am
Location: Zoetermeer, The Netherlands

Re: How to compile GCC 4.7.1 on IRIX

Post by dexter1 » Sun Jun 03, 2018 5:55 pm

Ah, i didn't build it with gcc but mipspro. Just ignore getopt_long for now and try to build ppl without it.

User avatar
LarBob
Posts: 62
Joined: Mon Dec 25, 2017 4:08 pm
Location: Kentucky, United States
Contact:

Re: How to compile GCC 4.7.1 on IRIX

Post by LarBob » Sun Jun 03, 2018 7:34 pm

dexter1 wrote:
Sun Jun 03, 2018 5:55 pm
Ah, i didn't build it with gcc but mipspro. Just ignore getopt_long for now and try to build ppl without it.
It's fine without it, although far from an ideal solution.
:Octane: Aezora - Octane - 2xR10k 250 MHz - SI Graphics - 1 GB RAM - 6.5.30f
:O2: Kiki - O2 - R5k 180 MHz - 192 MB RAM - Currently dead
:O3x0-2: Calcifer - Origin 300 - 4xR14k 500 MHz - 2 GB RAM - 6.5.30m
:O3x0-2: Tohru - Origin 350 - 4xR16k 800 MHz - 4 GB RAM - 6.5.30m - on loan from Raion
Mirrors

Post Reply