Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to compile GCC 4.7.1 on IRIX
#1
How to compile GCC 4.7.1 on IRIX
Moved here: [url]https://forums.irix.cc/viewtopic.php?f=10&t=265&p=1603#p1603[/url]
Octane Aezora - Octane - 2xR10k 250 MHz - SI Graphics - 1 GB RAM - 6.5.30
O2 Kiki - O2 - R5k 180 MHz - 192 MB RAM - Dead system board
Two O350 modules Calcifer - Origin 300 - 4xR14k 500 MHz - 2 GB RAM - 6.5.30
Two O350 modules Tohru - Origin 350 - 4xR16k 800 MHz - 4 GB RAM - 6.5.30 - on loan from Raion
Indy Gary - Indy - R5k 180 MHz - 24-bit XL Graphics -  192 MB RAM - 6.5.22
Mirrors
LarBob Offline
Global Moderator
******

Posts: 63
Threads: 13
Joined: Dec 2017
Find Reply
06-03-2018, 12:31 AM
#2
Re: How to compile GCC 4.7.1 on IRIX
He is correct. irisware uses /opt/local
I'm the manager
Besides irix.cc, I run these sites:
projectkitsune.com
kazuo.io

Tezro
Octane2
Indigo2 IMPACT
Indigo2
3x O2
3x Indy

Raion Offline
Administrator
*******

Posts: 270
Threads: 46
Joined: Nov 2017
Discord: Umbra#0893
Website Find Reply
06-03-2018, 12:43 AM
#3
Re: How to compile GCC 4.7.1 on IRIX
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.
dexter1 Offline
Global Moderator
******

Posts: 130
Threads: 8
Joined: May 2018
Find Reply
06-03-2018, 10:27 AM
#4
Re: How to compile GCC 4.7.1 on IRIX
dexter1 post_id=707 time=1528021638 user_id=141 Wrote:
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:
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.30
O2 Kiki - O2 - R5k 180 MHz - 192 MB RAM - Dead system board
Two O350 modules Calcifer - Origin 300 - 4xR14k 500 MHz - 2 GB RAM - 6.5.30
Two O350 modules Tohru - Origin 350 - 4xR16k 800 MHz - 4 GB RAM - 6.5.30 - on loan from Raion
Indy Gary - Indy - R5k 180 MHz - 24-bit XL Graphics -  192 MB RAM - 6.5.22
Mirrors
LarBob Offline
Global Moderator
******

Posts: 63
Threads: 13
Joined: Dec 2017
Find Reply
06-03-2018, 06:53 PM
#5
Re: How to compile GCC 4.7.1 on IRIX
Ah, i didn't build it with gcc but mipspro. Just ignore getopt_long for now and try to build ppl without it.
dexter1 Offline
Global Moderator
******

Posts: 130
Threads: 8
Joined: May 2018
Find Reply
06-03-2018, 09:55 PM
#6
Re: How to compile GCC 4.7.1 on IRIX
dexter1 post_id=732 time=1528062954 user_id=141 Wrote: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.30
O2 Kiki - O2 - R5k 180 MHz - 192 MB RAM - Dead system board
Two O350 modules Calcifer - Origin 300 - 4xR14k 500 MHz - 2 GB RAM - 6.5.30
Two O350 modules Tohru - Origin 350 - 4xR16k 800 MHz - 4 GB RAM - 6.5.30 - on loan from Raion
Indy Gary - Indy - R5k 180 MHz - 24-bit XL Graphics -  192 MB RAM - 6.5.22
Mirrors
LarBob Offline
Global Moderator
******

Posts: 63
Threads: 13
Joined: Dec 2017
Find Reply
06-03-2018, 11:34 PM


Forum Jump:


Users browsing this thread: 2 Guest(s)