<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
<!--
.hmmessage p
        {margin:0px;
        padding:0px}
body.hmmessage
        {font-size:12pt;
        font-family:Calibri}
-->
</style><style id="owaParaStyle" type="text/css"></style>
</head>
<body ocsi="0" fpstyle="1" class="hmmessage">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Jay:<br>
<br>
Thanks for your help.<br>
<br>
Re #3 below, if I put mklib back in, the order my script gets for the 1st step (front end) is:<br>
     1. m3-win\import-libs<br>
     2. m3-libs\sysutils<br>
     3. m3-sys\m3middle<br>
     4. m3-sys\m3objfile<br>
     5. m3-sys\m3linker<br>
     6. m3-sys\m3back<br>
     7. m3-sys\m3cggen<br>
     8. m3-sys\m3front<br>
     9. m3-sys\m3quake<br>
    10. m3-sys\cm3<br>
    11. m3-sys\m3cgcat<br>
    12. m3-sys\mklib<br>
<br>
whereas, upgrade.py compiles the following in order for the 1st step (front end):<br>
    1. "import-libs"<br>
    2. "m3bundle"<br>
    3. "m3middle"<br>
    4. "m3quake"<br>
    5. "m3objfile"<br>
    6. "m3linker"<br>
    7. "m3back"<br>
    8. "m3front"<br>
    9. "sysutils"<br>
   10. "cm3"<br>
   11. "m3cggen"<br>
   12. "mklib"<br>
   13. "m3cgcat"<br>
<br>
If Re#2 you say the order in pkginfo.txt is correct, then my script must be interpreting something wrong if the order in upgrade.py is what should be used, or either you have some reason for doing it different in upgrade.py.  Please advise.<br>
<br>
Re#4, are you saying I should try one of these "fixes" or is that something you plan to do?<br>
<br>
Re#1, I'll hold off further work till you let me know.  Also, I'm not sure whether my old cm3 had LONGINT in it or not.  Is there an easy way to tell?<br>
<br>
Thanks,<br>
Randy Coleburn<br>
<div><br>
<div><b><span style="COLOR: green"><br>
</span></b><font face="Tahoma" size="2"></font></div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF615690"><font color="#000000" face="Tahoma" size="2"><b>From:</b> Jay K [jayk123@hotmail.com]<br>
<b>Sent:</b> Saturday, September 07, 2013 11:54 PM<br>
<b>To:</b> Coleburn, Randy; m3devel<br>
<b>Subject:</b> EXT:RE: python build problems<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr"> 1. I'll remove the Cstdint dependency. That is in newer m3core. <br>
    But you are correctly using an older m3core for the bootstrap.<br>
    Please give me a bit of time. Maybe tonight.<br>
    Does your cm3 provide LONGINT? <br>
<br>
<br>
 2. The order is correct in pkginfo.txt.<br>
<br>
<br>
 3. The problem wasn't the order but which you were building.<br>
    You were missing mklib. You need a newer mklib<br>
    to fix the "_xmm" problem. Look at upgrade.py or upgrade.sh closely.<br>
<br>
<br>
 4. AttributeError: 'NoneType' object has no attribute 'startswith' <br>
   Probably due to an older cm3 that doesn't output host/target. <br>
   Maybe fixable with set CM3_TARGET=I386_NT or NT386 or such. <br>
<br>
 - Jay<br>
<br>
<br>
<div>
<hr id="stopSpelling">
From: rcolebur@SCIRES.COM<br>
To: m3devel@elegosoft.com; jayk123@hotmail.com<br>
Subject: python build problems<br>
Date: Sun, 8 Sep 2013 03:48:00 +0000<br>
<br>
<style id="ecxowaParaStyle">
<!--
-->
BODY {direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;}P {margin-top:0;margin-bottom:0;}BODY {scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined}BODY {scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined}BODY {scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined}BODY {scrollbar-base-color:undefined;scrollbar-highlight-color:undefined;scrollbar-darkshadow-color:undefined;scrollbar-track-color:undefined;scrollbar-arrow-color:undefined}</style>
<div style="direction:ltr; font-family:Tahoma; color:#000000; font-size:10pt">Jay:<br>
<br>
<font size="2"><b>I'm still having lots of problems.<br>
<br>
I installed python 2.7 on WinXP-32bit and tried upgrade.py against a working cm3 circa 2008.<br>
<br>
I get the following error:<br>
<br>
Traceback (most recent call last):<br>
  File "C:\cm3\Sandbox\cm3\scripts\python\upgrade.py", line 4, in <module><br>
    import pylib<br>
  File "C:\cm3\Sandbox\cm3\scripts\python\pylib.py", line 631, in <module><br>
    if Target.startswith("NT386"):<br>
AttributeError: 'NoneType' object has no attribute 'startswith'<br>
<br>
Looking at upgrade.py, it seems the first set of compilations is in the following order:<br>
"import-libs", "m3bundle", "m3middle", "m3quake", "m3objfile",<br>
                            "m3linker", "m3back", "m3front", "sysutils",<br>
                            "cm3", "m3cggen", "mklib", "m3cgcat"<br>
<br>
So, I tried to manually follow this order by cd to each folder, removing the NT386, running cm3, then cm3 -ship.  Things go well until I get to m3back, where I get the following error:<br>
<br>
C:\cm3\Sandbox\cm3\m3-sys\m3back>cm3<br>
--- building in NT386 ---<br>
<br>
ignoring ..\src\m3overrides<br>
<br>
new source -> compiling TIntN.i3<br>
new source -> compiling TIntN.m3<br>
new source -> compiling TWordN.i3<br>
new source -> compiling TWordN.m3<br>
new source -> compiling M3x86.i3<br>
new source -> compiling Wrx86.i3<br>
new source -> compiling M3x86Rep.i3<br>
new source -> compiling Codex86.i3<br>
new source -> compiling Stackx86.i3<br>
new source -> compiling M3x86.m3<br>
new source -> compiling M3C.i3<br>
new source -> compiling M3C.m3<br>
"..\src\M3CC.i3", line 2: unable to find interface (Cstdint)<br>
"..\src\M3CC.i3", line 4: undefined (Cstdint.int32_t)<br>
"..\src\M3CC.i3", line 6: undefined (Cstdint.uint32_t)<br>
3 errors encountered<br>
new source -> compiling M3CC.i3<br>
"..\src\M3CC.i3", line 2: unable to find interface (Cstdint)<br>
1 error encountered<br>
new source -> compiling Wrx86.m3<br>
new source -> compiling Stackx86.m3<br>
new source -> compiling Codex86.m3<br>
new source -> compiling M3CC.c<br>
new exporters -> recompiling M3C.i3<br>
new exporters -> recompiling M3x86Rep.i3<br>
compilation failed => not building library "m3back.lib"<br>
Fatal Error: package build failed<br>
<br>
Any suggestions on what to do?<br>
I need to get a working cm3 on both WinXP and Win7 that is current with the HEAD branch.<br>
<br>
BTW, it was my understanding that the compilation order was defined in "pkginfo.txt".  Has this changed, or is the file not up-to-date?  Reason I ask is that my RCC_upgradeCM3.cmd used to work fine and it bases the order on pkginfo.txt, yet you remarked in
 a previous post that I was leaving something out, plus it seems the order in upgrade.py doesn't match what you find in pkginfo.txt.  Please advise.<br>
<br>
Thanks,<br>
Randy Coleburn<br>
</b></font></div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>