Re: SDL and SunOS

2018-07-23 Thread Carlos E Murillo-Sanchez via cctalk

Christian Corti via cctalk wrote:

On Sat, 21 Jul 2018, carlos_muri...@ieee.org wrote:
Under SunOS 4.1.4, the last gcc version that is supported is 3.3.6, 
but I haven't been able to build it on an IPX;  it gets to the point 
where it

Not quite true:

# uname -a
SunOS azu 4.1.1 10 sun4 unknown unknown SunOS

# gcc -v
Reading specs from /ibm/usr/lib/gcc/sparc-sun-sunos4.1.1/3.4.6/specs
Configured with: ../gcc-3.4.6/configure --prefix=/ibm/usr 
--program-suffix=-3.4 --with-gnu-ld --with-ld=/ibm/usr/bin/ld 
--with-gnu-as --with-as=/ibm/usr/bin/as --with-cpu=v7 --disable-nls 
--with-libiconv-prefix=/ibm/usr --enable-obsolete

Thread model: single
gcc version 3.4.6

-

This is on a SUN 4/260 with 32MB RAM.

starts running gengtype and eats all memory available (I have 64MB 
RAM and have added as much as 1024 swap and it still crashes).  So, 
for the time


Yes, there are such issues. The solution is to cross compile it with 
distcc.


Christian
I stand corrected, 3.4.6 is indeed that last gcc to support SunOS 4.1.x 
.  I was typing from memory and I tried so many gcc versions
that I lost track.  All attempts at building gcc versions > 3.2.3 <= 
3.4.6 failed because of the memory issues in the gengtype execution.  
And, the last version not to use the gengtype kludge was 3.2.3; for that 
version the build process advances further,  but it fails when building 
libstdc++ with xgcc  (the file is bitset.cc).


Thanks for the suggestion; I'll need to learn how to build the 
cross-compiler.  Do you have any quick advice on how to go about it?


carlos.




Re: SDL and SunOS

2018-07-23 Thread Christian Corti via cctalk

On Sat, 21 Jul 2018, carlos_muri...@ieee.org wrote:
Under SunOS 4.1.4, the last gcc version that is supported is 3.3.6, but I 
haven't been able to build it on an IPX;  it gets to the point where it


Not quite true:

# uname -a
SunOS azu 4.1.1 10 sun4 unknown unknown SunOS

# gcc -v
Reading specs from /ibm/usr/lib/gcc/sparc-sun-sunos4.1.1/3.4.6/specs
Configured with: ../gcc-3.4.6/configure --prefix=/ibm/usr 
--program-suffix=-3.4 --with-gnu-ld --with-ld=/ibm/usr/bin/ld 
--with-gnu-as --with-as=/ibm/usr/bin/as --with-cpu=v7 --disable-nls 
--with-libiconv-prefix=/ibm/usr --enable-obsolete

Thread model: single
gcc version 3.4.6

# ld --version
GNU ld 2.9.1
Copyright 1997 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
  Supported emulations:
   sun4

# as --version
GNU assembler 2.9.1
Copyright 1997 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `sparc-sun-sunos4.1.1'.


This is on a SUN 4/260 with 32MB RAM.

starts running gengtype and eats all memory available (I have 64MB RAM and 
have added as much as 1024 swap and it still crashes).  So, for the time


Yes, there are such issues. The solution is to cross compile it with 
distcc.


Christian


Re: SDL and SunOS

2018-07-21 Thread David Griffith via cctalk

On Sat, 21 Jul 2018, Alan Perry via cctalk wrote:


On 7/20/18 4:30 PM, David Griffith via cctalk wrote:


How feasable is it to compile and run SDL for SunOS?  My main reason for 
doing this is to play Z-machine games on Sparcstations using Frotz 
(https://gitlab.com/DavidGriffith/frotz) using the SDL interface to play V6 
games.
What vintage SPARCstations and what version of SunOS? Are you talking about 
BSD SunOS or Solaris?


The SPARCstations in question are the IPX (with PowerUP), 5, and 20.  The 
version of SunOS is 4.1.4.



--
David Griffith
d...@661.org

A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?


Re: SDL and SunOS

2018-07-21 Thread Chris Hanson via cctalk
On Jul 21, 2018, at 9:29 AM, Carlos E Murillo-Sanchez via cctalk 
 wrote:
> 
> David Griffith via cctalk wrote:
>> How feasable is it to compile and run SDL for SunOS?  My main reason for 
>> doing this is to play Z-machine games on Sparcstations using Frotz 
>> (https://gitlab.com/DavidGriffith/frotz) using the SDL interface to play V6 
>> games
> Under SunOS 4.1.4, the last gcc version that is supported is 3.3.6, but I 
> haven't been able to build it on an IPX;  it gets to the point where it 
> starts running gengtype and eats all memory available (I have 64MB RAM and 
> have added as much as 1024 swap and it still crashes).  So, for the time 
> being I am still at the gcc 2.95.3 level in this particular sun4c machine.  
> In order to build 2.95.3, I had to bootstrap 2.8.1 using the cc that comes by 
> default in the SunOS 4.1.4 install CD. Under Solaris 2.6, the last supported  
> gcc version is 4.3.6, which I did manage to build in a sun4m Sparcstation 5 
> machine with 144MB of RAM.

I was able to build gcc 2.95.3 directly under SunOS 4.1.4 on a SPARCstation 20 
with 512MB, it required one tweak to gcc/function.c in that I had to move a # 
to the first column.

I tried to go up to gcc 3.3. but was similarly unsuccessful. Since I cared most 
about running code that I built, I considered building a cross-complier on 
modern Linux that targeted sun4m and using that to build against the headers 
and libraries copied off the SPARCstation.

Unfortunately I had a really rough time building the tools and could never 
quite get them working. I suspect that was itself mainly due to the age of the 
tools I was trying to build; using modern tool binaries to build the last GPLv2 
versions of the tools didn’t seem to work out so well. (I’m obligated not to go 
near the GPLv3 sources, so building anything newer—presuming there even were 
newer versions that could still target sun4m.)

  -- Chris



Re: SDL and SunOS

2018-07-21 Thread Carlos E Murillo-Sanchez via cctalk

David Griffith via cctalk wrote:
How feasable is it to compile and run SDL for SunOS?  My main reason 
for doing this is to play Z-machine games on Sparcstations using Frotz 
(https://gitlab.com/DavidGriffith/frotz) using the SDL interface to 
play V6 games
Under SunOS 4.1.4, the last gcc version that is supported is 3.3.6, but 
I haven't been able to build it on an IPX;  it gets to the point where 
it starts running gengtype and eats all memory available (I have 64MB 
RAM and have added as much as 1024 swap and it still crashes).  So, for 
the time being I am still at the gcc 2.95.3 level in this particular 
sun4c machine.  In order to build 2.95.3, I had to bootstrap 2.8.1 using 
the cc that comes by default in the SunOS 4.1.4 install CD. Under 
Solaris 2.6, the last supported  gcc version is 4.3.6, which I did 
manage to build in a sun4m Sparcstation 5 machine with 144MB of RAM.


It is pretty hard to build modern software with 2.95.3.  It is mostly 
C89 compliant, but not C98.  So...  I think that you stand a chance to 
build SDL under Solaris, but not under SunOS 4.1.4.  And, for Solaris 
2.6, there are still some mirrors of the old Sunfreeware archive with 
many usable ports.  The SunOS 4.1.4 situation is rather different, as 
there are hardly any pre-compiled binaries around.


Carlos.


Re: SDL and SunOS

2018-07-21 Thread Alan Perry via cctalk
What vintage SPARCstations and what version of SunOS? Are you talking 
about BSD SunOS or Solaris?


On 7/20/18 4:30 PM, David Griffith via cctalk wrote:


How feasable is it to compile and run SDL for SunOS?  My main reason 
for doing this is to play Z-machine games on Sparcstations using Frotz 
(https://gitlab.com/DavidGriffith/frotz) using the SDL interface to 
play V6 games.







SDL and SunOS

2018-07-20 Thread David Griffith via cctalk



How feasable is it to compile and run SDL for SunOS?  My main reason for 
doing this is to play Z-machine games on Sparcstations using Frotz 
(https://gitlab.com/DavidGriffith/frotz) using the SDL interface to play 
V6 games.



--
David Griffith
d...@661.org

A: Because it fouls the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?