How to compile GCC 4.7.1 on IRIX
#1
How to compile GCC 4.7.1 on IRIX
Moved here: http://forums.irix.cc/thread-207.html
(This post was last modified: 11-03-2018, 06:44 AM by LarBob.)
LarBob
Octane

Trade Count: (0)
Posts: 58
Threads: 15
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 system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
06-03-2018, 12:43 AM
#3
Re: How to compile GCC 4.7.1 on IRIX
<QUOTE author="LarBob">
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: <URL url="https://github.com/kimgr/getopt_port">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
Administrator

Trade Count: (1)
Posts: 297
Threads: 17
Joined: May 2018
Location: The Netherlands
Find Reply
06-03-2018, 10:27 AM
#4
Re: How to compile GCC 4.7.1 on IRIX
<QUOTE author="dexter1" post_id="707" time="1528021638" user_id="141">
dexter1 post_id=707 time=1528021638 user_id=141 Wrote:<QUOTE author="LarBob">
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: <URL url="https://github.com/kimgr/getopt_port">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'
LarBob
Octane

Trade Count: (0)
Posts: 58
Threads: 15
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
Administrator

Trade Count: (1)
Posts: 297
Threads: 17
Joined: May 2018
Location: The Netherlands
Find Reply
06-03-2018, 09:55 PM
#6
Re: How to compile GCC 4.7.1 on IRIX
<QUOTE author="dexter1" post_id="732" time="1528062954" user_id="141">
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.
LarBob
Octane

Trade Count: (0)
Posts: 58
Threads: 15
Joined: Dec 2017
Find Reply
06-03-2018, 11:34 PM


Forum Jump:


Users browsing this thread: 2 Guest(s)