<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Randy, There is a recurring pattern in the tree related to this.<BR>
<BR>
Buildlocal (with overrides) should use the unshipped binary.<BR>
Because nothing is being shipped.<BR>
<BR>
buildship (without overrides) should use the shipped binary.<BR>
Because things are being shipped right after they are built,<BR>
or you are using already shipped stuff -- same thing really.<BR>
<BR>
(All tools need to be built standalone, in order for the buildlocal version to work.<BR>
Depending -- $ORIGIN is not compatible with running unshipped binaries.<BR>
Using full paths is, but requires knowing the paths at link time<BR>
and linking differently depending on if you are going to run<BR>
from build_dir or installdir.)<BR>
<BR>
To see this in action, search for "override" in *tmpl files.<BR>
stubgen for example works this.<BR>
<BR>
This is probably something that needs more automatic handling?<BR>
<BR>
See here:<BR>
C:\dev2\cm3.2\m3-comm\netobj\src\netobj-ov.tmpl<BR>C:\dev2\cm3.2\m3-comm\netobj\src\netobj.tmpl<BR>C:\dev2\cm3.2\m3-comm\sharedobj\src\sharedobj-ov.tmpl<BR>C:\dev2\cm3.2\m3-comm\sharedobj\src\sharedobj.tmpl<BR>
<BR>
and then very important:<BR>
<BR>
C:\dev2\cm3.2\m3-comm\sharedobj\src\m3overrides<BR>
C:\dev2\cm3.2\m3-comm\netobj\src\m3overrides<BR>
<BR>
I have a strong suspicion as well that<BR>
sharedobj\src\m3overrides and netobj\src\m3overrides<BR>
should be included in the central m3overrides.<BR>
<BR>
(and a strong suspicion as well, as I've said, that this mechanism<BR>
is flawed; a better implementation I suspect is to /always/ ship,<BR>
but either on top of the running system, or not to the running system,<BR>
and then if "not to the running system" passes tests, swap them or<BR>
move the one to the other, etc.)<BR>
<BR>
- Jay<BR><BR> <BR>
<HR id=stopSpelling>
Date: Sun, 6 Dec 2009 22:57:02 -0500<BR>From: rcoleburn@scires.com<BR>To: m3devel@elegosoft.com<BR>Subject: [M3devel] build problem diagnosis in caltech-parser test package<BR><BR>
<DIV>I am resending this message because I think it may have been overlooked because it came out while the list server was flooding everyone a few days back.</DIV>
<DIV>--Randy<BR><BR>>>> "Randy Coleburn" <rcoleburn@scires.com> 12/1/2009 2:32 PM >>><BR></DIV>
<DIV>I am listing below the verbose compiler output for the caltech-parser\parserlib\parserlib\test package.</DIV>
<DIV> </DIV>
<DIV>This build is from WindowsXP platform.</DIV>
<DIV> </DIV>
<DIV>The problem is the command: C:\cm3\bin/..\pkg\caltech-parser\parserlib\ktok\NT386\ktok ..\src\Calc.t -o CalcTok.i3<BR></DIV>
<DIV>This command should instead be one of the following 2 variants:</DIV>
<DIV>1. C:\cm3\bin\ktok ..\src\Calc.t -o CalcTok.i3</DIV>
<DIV>2. ..\..\ktok\NT386\ktok ..\src\Calc.t -o CalcTok.i3<BR>depending on whether you want to grab ktok.exe from the public bin folder or from ktok's local build folder. I suspect the former would be the best bet, since the local build folder is often erased after shipping the package.</DIV>
<DIV> </DIV>
<DIV>I suspect the problem is in the parser.tmpl file located in C:\cm3\Sandbox\cm3\caltech-parser\parserlib\parserlib\src</DIV>
<DIV> </DIV>
<DIV>Specifically, the definitions found in lines 11-18 seem suspicious.</DIV>
<DIV> </DIV>
<DIV>Since I am not very familiar with this package, I would prefer someone else to make the correction.</DIV>
<DIV> </DIV>
<DIV>Compiler output is below:</DIV>
<DIV> </DIV>
<DIV>C:\cm3\Sandbox\cm3\caltech-parser\parserlib\parserlib\test>cm3 -verbose<BR>EVAL ("C:\cm3\bin\cm3.cfg")<BR>--- building in NT386 ---</DIV>
<DIV>cd NT386<BR>LIB_INSTALL is C:\cm3\lib<BR>ignoring ..\src\m3overrides</DIV>
<DIV>EVAL ("m3make.args")<BR>rm .M3SHIP<BR>rm .M3OVERRIDES<BR>C:\cm3\bin/..\pkg\caltech-parser\parserlib\ktok\NT386\ktok ..\src\Calc.t -o CalcTok.i3<BR>C:\cm3\bin/..\pkg\caltech-parser\parserlib\ktok\NT386\ktok ..\src\Calc.t -o CalcTok.i3<BR>The system cannot find the path specified.<BR>"C:\cm3\pkg\cit_util\src\generics.tmpl", line 38: quake runtime error: exit 1: C:\cm3\bin/..\pkg\caltech-parser\parserlib\ktok\NT386\ktok ..\src\Calc.t -o CalcTok.i3</DIV>
<DIV>--procedure-- -line- -file---<BR>exec -- <builtin><BR>_exec 38 C:\cm3\pkg\cit_util\src\generics.tmpl<BR>_xCons 37 C:\cm3\pkg\parserlib\src\parser.tmpl<BR>_tCons 70 C:\cm3\pkg\parserlib\src\parser.tmpl<BR>_tConsUn 71 C:\cm3\pkg\parserlib\src\parser.tmpl<BR>token 73 C:\cm3\pkg\parserlib\src\parser.tmpl<BR>include_dir 4 C:\cm3\Sandbox\cm3\caltech-parser\parserlib\parserlib\test\src\m3makefile<BR> 5 C:\cm3\Sandbox\cm3\caltech-parser\parserlib\parserlib\test\NT386\m3make.args</DIV>
<DIV>Fatal Error: package build failed</DIV>
<DIV> seconds #times operation<BR> 0.01 1 garbage collection<BR> 0.06 other<BR>---------------------------------------------------<BR> 0.07 TOTAL</DIV>
<DIV>rm m3make.args<BR>cd ..</DIV>
<DIV>C:\cm3\Sandbox\cm3\caltech-parser\parserlib\parserlib\test></DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Randy Coleburn</DIV> </body>
</html>