68kMLA Classic Interface

This is a version of the 68kMLA forums for viewing on your favorite old mac. Visitors on modern platforms may prefer the main site.

Click here to select a new forum.
Compiling gcc-2.5.7 on A/UX 2.0
Posted by: rabindranath72 on 2013-05-15 02:43:30
Hi all,

has anyone tried it? I have a Mac SE/30 16Mb RAM running A/UX 2.0. I downloaded the (patched) gcc-2.5.7 from a jagubox mirror, which according to the README should compile on A/UX 2.0(.1). The architecture is recognised, the configure process seems to work, but then compilation fails at the first file: cccp.c

First I get a warning about a table being full, so no optimisations are possible. Then the whole process halts when "as" is called, and I get a core dump.

Any help would be appreciated.

Failing that, is there another version of gcc out there which works on A/UX 2.0?

Thanks,

Antonio

Posted by: rabindranath72 on 2013-05-15 04:55:19
Ok I think I spotted the problem. The system expects to run "as" locally, but it's a symbolic link to "gas." So I need to compile the binutils first. Drat. :-/

Posted by: tlc630 on 2013-05-15 06:53:51
Out of curiosity, why are you on 2.0 and not 3.1?

Posted by: rabindranath72 on 2013-05-15 08:53:54
I had 3.1(.1) on the SE/30 but it wasn't very responsive (I have it on my Quadra 650 though); 2.0 has a much smaller memory footprint and is definitely faster. Also, with a 250Mb hard disk I get much more space to "play."

Also, I got the full documentation set for 2.0 (I downloaded the pdfs from bitsavers.org) and it has been very helpful in understanding how the system and all the tools work.

Posted by: tlc630 on 2013-05-15 12:00:37
Thanks! Maybe I'll give 2.0 a try on my IIci.

BTW, have you ever looked for the 2.1 update? Any success?

Posted by: rabindranath72 on 2013-05-15 13:19:34
You mean 2.0.1? Been looking for ages, nowhere to be found 🙁

Posted by: rabindranath72 on 2013-05-16 01:46:48
Even compilation of binutils-2.7 failed, despite it having a target of A/UX. They probably expect A/UX 3 at least, although the target information reports A/UX2.0 (probably just used uname to get the system id string.) Will have to check on my Q650 or find an earlier binutils.

Posted by: rabindranath72 on 2013-05-16 03:38:30
Did a bit of search...apparently the patches to gcc are supposed to work only with A/UX 2.0.1 which changed quite a few things:

http://support.apple.com/kb/TA45086?viewlocale=en_US

most notably:

Includes changes to the A/UX header files, which provide function prototypesand ANSI symbol definitions for third-party ANSI C compilers
so short of finding the patches written by Apple programmers to the earlier versions of gcc-1.39 and 1.40 (which I couldn't find) I'd say there is little chance of a straight port to A/UX 2.0 barring a major overhaul. It seems I must update to at least 3.0. :disapprove:

1