[M3devel] building the CVS head---how???

mika at async.caltech.edu mika at async.caltech.edu
Thu Jan 2 17:34:10 CET 2014


So here is the situation.

New machine, new problems.  

AMD64_LINUX.  I want to try the latest compiler, because there are issues with what I have.

What I have is the following:

Critical Mass Modula-3 version 5.8.6
  last updated: 2010-04-11
  compiled: 2010-07-12 20:10:34
  configuration: /home/mika/cm3.amd64-linux/bin/cm3.cfg
  host: AMD64_LINUX
  target: AMD64_LINUX

I think the boot archives on the CM3 web site are about the same age.

I try 

./boot1.py AMD64_LINUX

and I get

"../src/win32/WinSock.i3", line 662: unsupported language or calling convention (PASCAL)
"../src/win32/WinSock.i3", line 665: unsupported language or calling convention (PASCAL)
"../src/win32/WinSock.i3", line 688: unsupported language or calling convention (PASCAL)
"../src/win32/WinSock.i3", line 691: unsupported language or calling convention (PASCAL)
"../src/win32/WinSock.i3", line 694: unsupported language or calling convention (PASCAL)
"../src/win32/WinSock.i3", line 697: unsupported language or calling convention (PASCAL)
34 errors encountered
new exporters -> recompiling WinVer.i3
"../src/win32/WinVer.i3", line 158: unsupported language or calling convention (APIENTRY)
"../src/win32/WinVer.i3", line 168: unsupported language or calling convention (APIENTRY)
"../src/win32/WinVer.i3", line 180: unsupported language or calling convention (APIENTRY)
"../src/win32/WinVer.i3", line 190: unsupported language or calling convention (APIENTRY)
"../src/win32/WinVer.i3", line 203: unsupported language or calling convention (APIENTRY)

(etc)

all right, it's broken, something needs to be fixed.

WHAT IS NOT ALL RIGHT:

At this point my regular cm3.cfg is messed up.  If I had been silly enough to try to bootstrap
a new compiler (for a different machine) without first saving my old CM3 installation, I'd
be screwed.

But from reading the mailing list logs, I am not sure if it is even possible to bootstrap
the head from the older installation.  How am I supposed to get a new compiler working?
Build it on my Raspberry Pi (which has a working, recent CM3 on it)?  (After backing up
my old installation, of course.)

And what's this?  Bad python?

(119)truffles:~/cm3-cvs-anon/cm3/scripts/python>./boot1.py AMD64_LINUX
Traceback (most recent call last):
  File "./boot1.py", line 5, in <module>
    import pylib
  File "/big/home2/mika/2/cm3-cvs/cm3/scripts/python/pylib.py", line 587, in <module>
    for a in os.popen(CM3 + " -version 2>" + DevNull):
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'
(120)truffles:~/cm3-cvs-anon/cm3/scripts/python>python --version
Python 2.7.3

     Mika
     Mika



More information about the M3devel mailing list