[M3devel] build problem diagnosis in caltech-parser test package

Jay K jay.krell at cornell.edu
Mon Dec 7 14:35:06 CET 2009


Randy, There is a recurring pattern in the tree related to this.

 

Buildlocal (with overrides) should use the unshipped binary.

  Because nothing is being shipped.

 

buildship (without overrides) should use the shipped binary.

  Because things are being shipped right after they are built,

  or you are using already shipped stuff -- same thing really.

 

(All tools need to be built standalone, in order for the buildlocal version to work.

Depending -- $ORIGIN is not compatible with running unshipped binaries.

Using full paths is, but requires knowing the paths at link time

and linking differently depending on if you are going to run

from build_dir or installdir.)

 

To see this in action, search for "override" in *tmpl files.

stubgen for example works this.

 

This is probably something that needs more automatic handling?

 

See here:

C:\dev2\cm3.2\m3-comm\netobj\src\netobj-ov.tmpl
C:\dev2\cm3.2\m3-comm\netobj\src\netobj.tmpl
C:\dev2\cm3.2\m3-comm\sharedobj\src\sharedobj-ov.tmpl
C:\dev2\cm3.2\m3-comm\sharedobj\src\sharedobj.tmpl

 

and then very important:

 

C:\dev2\cm3.2\m3-comm\sharedobj\src\m3overrides

C:\dev2\cm3.2\m3-comm\netobj\src\m3overrides

 

I have a strong suspicion as well that

sharedobj\src\m3overrides and netobj\src\m3overrides

should be included in the central m3overrides.

 

(and a strong suspicion as well, as I've said, that this mechanism

is flawed; a better implementation I suspect is to /always/ ship,

but either on top of the running system, or not to the running system,

and then if "not to the running system" passes tests, swap them or

move the one to the other, etc.)

 

 - Jay

 


Date: Sun, 6 Dec 2009 22:57:02 -0500
From: rcoleburn at scires.com
To: m3devel at elegosoft.com
Subject: [M3devel] build problem diagnosis in caltech-parser test package


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.
--Randy

>>> "Randy Coleburn" <rcoleburn at scires.com> 12/1/2009 2:32 PM >>>

I am listing below the verbose compiler output for the caltech-parser\parserlib\parserlib\test package.
 
This build is from WindowsXP platform.
 
The problem is the command:  C:\cm3\bin/..\pkg\caltech-parser\parserlib\ktok\NT386\ktok ..\src\Calc.t -o CalcTok.i3

This command should instead be one of the following 2 variants:
1.  C:\cm3\bin\ktok ..\src\Calc.t -o CalcTok.i3
2.  ..\..\ktok\NT386\ktok ..\src\Calc.t -o CalcTok.i3
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.
 
I suspect the problem is in the parser.tmpl file located in C:\cm3\Sandbox\cm3\caltech-parser\parserlib\parserlib\src
 
Specifically, the definitions found in lines 11-18 seem suspicious.
 
Since I am not very familiar with this package, I would prefer someone else to make the correction.
 
Compiler output is below:
 
C:\cm3\Sandbox\cm3\caltech-parser\parserlib\parserlib\test>cm3 -verbose
EVAL ("C:\cm3\bin\cm3.cfg")
--- building in NT386 ---
cd NT386
LIB_INSTALL is C:\cm3\lib
ignoring ..\src\m3overrides
EVAL ("m3make.args")
rm .M3SHIP
rm .M3OVERRIDES
C:\cm3\bin/..\pkg\caltech-parser\parserlib\ktok\NT386\ktok ..\src\Calc.t -o CalcTok.i3
C:\cm3\bin/..\pkg\caltech-parser\parserlib\ktok\NT386\ktok ..\src\Calc.t -o CalcTok.i3
The system cannot find the path specified.
"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
--procedure--  -line-  -file---
exec               --  <builtin>
_exec              38  C:\cm3\pkg\cit_util\src\generics.tmpl
_xCons             37  C:\cm3\pkg\parserlib\src\parser.tmpl
_tCons             70  C:\cm3\pkg\parserlib\src\parser.tmpl
_tConsUn           71  C:\cm3\pkg\parserlib\src\parser.tmpl
token              73  C:\cm3\pkg\parserlib\src\parser.tmpl
include_dir         4  C:\cm3\Sandbox\cm3\caltech-parser\parserlib\parserlib\test\src\m3makefile
                    5  C:\cm3\Sandbox\cm3\caltech-parser\parserlib\parserlib\test\NT386\m3make.args
Fatal Error: package build failed
 seconds  #times  operation
    0.01       1  garbage collection
    0.06          other
---------------------------------------------------
    0.07          TOTAL
rm m3make.args
cd ..
C:\cm3\Sandbox\cm3\caltech-parser\parserlib\parserlib\test>
 
Regards,
Randy Coleburn 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20091207/a13c6cd7/attachment-0002.html>


More information about the M3devel mailing list