[M3devel] CM3 on Solaris 2.6/GNU

Jay K jay.krell at cornell.edu
Thu Sep 2 23:24:50 CEST 2010


You have a working C compiler on it?
 
 
Does 2.6 have pthreads?
Our userthreads won't work on 2.6 at least for a small reason, maybe for larger reasons.
  (makecontext in 2.8 and some versions of 2.9 have the stack direction wrong;
  we could easily enough make our code work on those I think)
 
 
There's a problem in head on sparc.
   Been a while, sorry. I do need to look into it.
 
 
Try the release branch?
 
 
Go to any working machine -- any machine with cm3. Preferably a fast one.
And it should have Python.
 
 
 cd scripts/python
 ./boot1.py SOLgnu
 wait a bit, it's not fast because the first thing it does is build a cross cm3cg.
 ls *.tar.gz *tgz
 make some guesses and attempts 
  ok -- copy the *gz to the Solaris 2.6 machine 
   extract it 
   cd into it 
   look at the top of Makefile, see if it is sane
   make 
   ./cm3
  If it says "can't find cm3.cfg", good, proceed...
  If it doesn't say that, bad, go back and debug...
  "proceed": I use python/boot2.sh, but with only 64MB.. the backend won't compile in 128MB..
  Canadian cross might do. There is clearly an intent for it to work but I haven't used it much.
   You'd likely need to work out other cross issues -- get a working cross gcc in the usual way..
 
 
This machine is probably intolerably slow, to me.
Even though I did use machines with much less memory.
Get me ssh access, I might might might might might look.
 
 
If 2.6 doesn't have pthreads, or adequate pthreads, you'd need to hack on it
to use the Sun threads or userthreads, neither is particularly automatic.
Both are probably possible.
 
 
 
     
 - Jay

 
> From: mark at wickensonline.co.uk
> To: m3devel at elegosoft.com
> Date: Thu, 2 Sep 2010 19:29:32 +0100
> Subject: [M3devel] CM3 on Solaris 2.6/GNU
> 
> Hi guys,
> 
> My conquest of Modula-3 on old hardware has started once again now that
> I have Solaris 2.6 running on the SPARCbook 3. What would be my options
> for getting it on there? The machine has 64 MB of RAM and a few hundred
> MB of disk space - is it going to have to be a cross-compile, if
> anything?
> 
> Cheers, Mark.
> 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20100902/2406febe/attachment-0002.html>


More information about the M3devel mailing list