[M3devel] Some random notes on building/running Modula-3 on Windows (XP).

j k jayk123 at hotmail.com
Sun Aug 12 21:39:41 CEST 2007


Some of this is redundant -- i.e. has long been working.
Some of it is specific to my configuration and habits. You are expected to recognize that. :)
I am running Windows XP and currently using Visual C++ 8.0, though many versions of NT and VC should work.  Some work has been put into ensuring multiple versions of VC work.
  Checkout the latest source. Really the latest. (at least of August 12 11am Pacific time).
  Download and extract the "latest" binary distribution, it is old but ok: cm3-min-WIN32-NT386-5.2.6.tar.bz2   Or maybe it was .gz, I always change them to save space.  For me it is at C:\net\modula3\cm3-min-WIN32-NT386-5.2.6.tar.bz2 
  I install to the default c:\cm3.  Prior to running cminstall, mkdir c:\cm3\t.  Whenever cminstall asks for a path to a directory, just say c:\cm3\t. (It insists on an existing path, but with my configuration file, which is generic and checked in, none of them are used.)  None of these paths matters if you do things this way.   After running cminstall, you may rmdir the empty c:\cm3\t.
  Replace c:\cm3\bin\cm3.cfg with the latest source's cm3\m3-sys\cminstall\src\config\NT386.  No edits are necessary.
  Or, if doing this repeatedly, I have it like so:   cm3-min-WIN32-NT386-5.2.6.tar.bz2 is extracted to \net\modula3\cm3-min-WIN32-NT386-5.2.6\t      and modified:    delete bin\cm3.cfg    delete bin\cm3.cfg--default  and then to restore just:    xcopy /fiveryh \net\modula3\cm3-min-WIN32-NT386-5.2.6\t \cm3 
    You need /h for hidden because tar will hide files like .M3EXPORTS that start with a dot.
  t for temp   Setup your Visual C++ environment (%PATH%, %LIB%, %INCLUD%) by running the usual vcvars32.bat.   For me this is running \env\cm3.vc80.bat (also have \env\cm3.vc20.bat, 40, 41, 42, 50, 60, 70, 71)
   set LIB=c:\cm3\lib;%LIB%
   set PATH=c:\cm3\bin;%PATH%
  Given the source tree at \dev2\cm3.2  I use \dev2 since Unix "takes" \dev.  cm3.2 is because cm3 is an older tree I need to get the diffs out of and delete.
   These instructions are based on Tony's and very similar.  Mainly that Windows does not use gcc.
  cd \dev2\cm3.2\scripts\win   @rem make sure %CM3% is clear, in case of running through this stuff multiple times.  set CM3=  .\do-pkg realclean import-libs m3middle m3linker m3front m3quake m3objfile m3back m3staloneback m3objfile cm3    .\do-pkg buildship import-libs m3middle m3linker m3front m3quake m3objfile m3back m3staloneback m3objfile cm3  
  set CM3=C:\dev2\cm3.2\m3-sys\cm3\NT386\cm3.exe
  .\do-cm3-std realclean   .\do-cm3-std buildship   .\install-cm3-compiler upgrade 
   Alternatively: 
  extract/install/configure latest distribution as above  checkout latest source  cd scripts\win  .\make-dist
   This gives you: 
   cm3-min-WIN32-NT386-d5.3.2.tar.bz2    cm3-min-WIN32-NT386-d5.3.2-symbols.tar.bz2  
 buried in temp.  
  I have not tested the new LONGINT functionality and there's a good chance it doesn't work yet.  
  Various GUI apps start up ok.    formsedit starts up and show gui.    juno starts and shows gui, but crashes easily: 
  ***    *** runtime error:    ***    <*ASSERT*> failed.    ***    file "..\src\winvbt\WinContext.m3", line 165    ***  
  Stack trace:     FP         PC      Procedure  ---------  ---------  -------------------------------  0x5aaf830   0xf41c9a  PushPixmap + 0x43c in ..\src\winvbt\WinContext.m3    0x5aaf8f8   0xf4fc2c  PixmapCom + 0x932 in ..\src\winvbt\WinPaint.m3    0x5aafd54   0xf4db55  PaintBatch + 0x225 in ..\src\winvbt\WinPaint.m3    0x5aafdbc   0xf4843e  PaintBatchVBT + 0x12d in ..\src\winvbt\WinTrestle.m3    0x5aafe04   0xf46d3d  WindowProc + 0x699 in ..\src\winvbt\WinTrestle.m3    0x5aafe30  0x7e418734  <???>    0x5aafe98  0x7e418816  <???>    0x5aafef8  0x7e4189cd  <???>    0x5aaff08  0x7e4196c7  <???>    0x5aaff50   0xf4baf4  MessengerApply + 0x21f in ..\src\winvbt\WinTrestle.m3    .........  .........  ... more frames ...  
  vorun brings up gui    visobliq brings up gui      not sure how to exit, had to kill it    shownew brings up gui    showheap brings up gui    showthread brings up gui  
 - Jay
_________________________________________________________________
See what you’re getting into…before you go there
http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_preview_0507
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20070812/a259d147/attachment-0003.html>


More information about the M3devel mailing list