Problem with building binutils and gcc on IRIX 5.3 little bit modern than Freeware CD
#1
Problem with building binutils and gcc on IRIX 5.3 little bit modern than Freeware CD
Hello
I like to have Fortran 90 and C99 on IRIX 5.3 - the latest which can be installed on the hardware I have (Powerseries R3000). I think gcc 3 or gcc 4 will help.
The things I have done:
1. Freeware binaries for IRIX5 installed (GNU as 2.5.2, gcc 2.6.3)
2. Binutils 2.9.1 (without GNU ld) and gcc 2.95.3 bootstraped with IRIX cc. To use it with IRIX ld.

The problems I've bumped:
1. GNU ld failed to link binaries (tried  2.9.1, 2.15, 2.17)
2. GNU as version more than 2.9.1 without GNU ld makes object files which IRIX ld does not understand.
3. GNU as 2.9.1 does not understand some pragmas generated gcc 3.4.6 which I have tried to build.

I've tried to fix it but have no progress in it.

I've read that binutils 2.17 can be built on IRIX, both GNU as and GNU ld, but I can not find info how to do that.

Anybody can help?

Regards
(This post was last modified: 04-10-2020, 10:41 AM by dstep.)
dstep
O2

Trade Count: (0)
Posts: 22
Threads: 6
Joined: Dec 2019
Find Reply
04-10-2020, 10:35 AM
#2
RE: Problem with building binutils and gcc on IRIX 5.3 little bit modern than Freeware CD
Efforts thus far to build more modern binutils on IRIX are limited to IRIX 4 and IRIX 6.5. in other words this is kind of uncharted territory. 

You can find patches for 6.5 GCC and binutils here:

https://github.com/danielhams/didbs

If you are looking for more recent software, check out http://tgcware.irixnet.org, it's mirrored from Tom Christensen.

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
04-10-2020, 05:07 PM
#3
RE: Problem with building binutils and gcc on IRIX 5.3 little bit modern than Freeware CD
Thank you for answer.
Unfortunately IRIX 5.3 is the highest version for my hardware IP15. So it seems I have only IRIX 4.0.5 as option.
Do you know some tips&triks for building modern binutils on IRIX 4 or just configure, make, make install?

Best regards
dstep
O2

Trade Count: (0)
Posts: 22
Threads: 6
Joined: Dec 2019
Find Reply
04-14-2020, 10:34 AM
#4
RE: Problem with building binutils and gcc on IRIX 5.3 little bit modern than Freeware CD
I think Raion meant MIPS4 and IRIX 6.5, not IRIX 4.

FWIW, I have GCC and binutils for IRIX 5.3 on my FTP ftp://ftp.jurassic.nl/pub/irix/gnu/irix-5.3/

I have various bits and pieces for IRIX 4 too: ftp://ftp.jurassic.nl/pub/irix/gnu/irix-4.0/
IRIX 4 is COFF based and shared libraries were a real pain. I'd stick with IRIX 5.x if your systems runs it well.
jan-jaap
SGI Collector

Trade Count: (0)
Posts: 1,048
Threads: 37
Joined: Jun 2018
Location: Netherlands
Website Find Reply
04-14-2020, 12:07 PM
#5
RE: Problem with building binutils and gcc on IRIX 5.3 little bit modern than Freeware CD
Jan, I meant IRIX 4. Larbob has been working on GCC 3 for IRIX 4 and binutils on his own.

5.3 is totally different from 6.5 and you'll need to adjust and hack those patches to get a newer binutils to work on 5.3

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
04-14-2020, 05:28 PM
#6
RE: Problem with building binutils and gcc on IRIX 5.3 little bit modern than Freeware CD
(04-14-2020, 05:28 PM)Raion Wrote:  Jan, I meant IRIX 4. Larbob has been working on GCC 3 for IRIX 4 and binutils on his own.

5.3 is totally different from 6.5 and you'll need to adjust and hack those patches to get a newer binutils to work on 5.3

There:  ftp://ftp.jurassic.nl/pub/irix/gnu/irix-4.0/
jan-jaap
SGI Collector

Trade Count: (0)
Posts: 1,048
Threads: 37
Joined: Jun 2018
Location: Netherlands
Website Find Reply
04-14-2020, 10:32 PM
#7
RE: Problem with building binutils and gcc on IRIX 5.3 little bit modern than Freeware CD
Mirroring...

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
04-15-2020, 07:35 AM
#8
RE: Problem with building binutils and gcc on IRIX 5.3 little bit modern than Freeware CD
Thank you Raion for information.
Thank you Jan, I will try to use your binaries.

I noticed that binutils for IRIX 4 contains ld and for IRIX 5 does not.
dstep
O2

Trade Count: (0)
Posts: 22
Threads: 6
Joined: Dec 2019
Find Reply
04-15-2020, 08:33 AM
#9
RE: Problem with building binutils and gcc on IRIX 5.3 little bit modern than Freeware CD
(04-15-2020, 08:33 AM)dstep Wrote:  Thank you Raion for information.
Thank you Jan, I will try to  use your binaries.

I noticed that binutils for IRIX 4 contains ld and for IRIX 5 does not.

I can't guess exactly but there's a few problems on IRIX with using GNU ld that probably contributes to it's omission:

IRIX ld is pretty much ld+ranlib in one package. It can do the ranlib stuff transparently. So using GNU ld wasn't common until recently on IRIX because you were using tools that aren't tested on IRIX, other than for bootstrap of GCC.

Most packages of GCC were designed to use irix as and ld to take advantage of IRIX specific optimizations. 

It's only because some groups are doing cross compilation that this arrangement came about of using a full GNU toolchain other than bootstrapping.

Alternatively it's probably just an oversight

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
04-15-2020, 08:39 AM
#10
RE: Problem with building binutils and gcc on IRIX 5.3 little bit modern than Freeware CD
(04-15-2020, 08:33 AM)dstep Wrote:  Thank you Raion for information.
Thank you Jan, I will try to  use your binaries.

I noticed that binutils for IRIX 4 contains ld and for IRIX 5 does not.

Yes, it is possible to build GCC with GNU as, ld or system as, ld (or a combination).

GNU ld for IRIX has never been all that great. I did build other configurations, but I always ran the regression tests and I guess (this must be 15+ years ago) that this was the one with the best results.

The use of IRIX ld isn't much of a problem because you need a Development Option for IRIX4 to get the headers and libraries anyway. If you need one to get you started let me know.

NB: there's an IRIX 3 version on FTP too. IRIX 3.x was pre-ANSI C so it won't build much without a lot of hacking.
jan-jaap
SGI Collector

Trade Count: (0)
Posts: 1,048
Threads: 37
Joined: Jun 2018
Location: Netherlands
Website Find Reply
04-15-2020, 09:07 AM


Forum Jump:


Users browsing this thread: 2 Guest(s)