<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>1. I removed the Cstdint requirement, please try again. Sorry about that.<BR> <BR> <BR>2. The order of the build is not defined by the list you show.<BR> That is an unordered set and it is passed through code to honor the pkginfo.txt information.<BR> <BR> <BR>2b. Though it looks like upgrade.sh doesn't apply the ordering and just strives to get it right earlier, so you could refer to that. But the Python definitely takes unordered lists and applies the ordering from pkginfo.txt. Look for "Order" in pylib.py if carouse.<BR> <BR> <BR>3. IF you hit the _xmm error before building mklib.. the workaround will be to bootstrap w/o shared libraries. You didn't report that, and there is code to avoid shared libraries with older tools.<BR> <BR> <BR> - Jay<br> <BR><div><hr id="stopSpelling">From: jayk123@hotmail.com<br>To: rcolebur@scires.com; m3devel@elegosoft.com<br>Date: Sun, 8 Sep 2013 03:54:41 +0000<br>Subject: Re: [M3devel] python build problems<br><br>
<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}
.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}
--></style>
<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="ecxstopSpelling">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">
.ExternalClass P {
}
</style>
<div style="color: rgb(0, 0, 0); font-family: Tahoma; font-size: 10pt; direction: ltr;">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></body>
</html>