[M3devel] ROOT undefined

j k jayk123 at hotmail.com
Mon Jan 15 16:40:10 CET 2007


ROOT is "normally", when you use do-cm3*.sh, defined by sysinfo.sh.
There is obvious danger of stuff working there but not outside there -- it 
defines so many environment variables.
It does get shipped next to cm3.exe/cm3, so just run it from the 
%path%/$path?

- Jay

>From: "Rodney M. Bates" <rodney.bates at wichita.edu>
>To: Modula-3 developers <m3devel at elegosoft.com>
>Subject: [M3devel] ROOT undefined
>Date: Mon, 15 Jan 2007 09:21:42 -0600
>
>I did a fresh checkout of cm3 from CVS and did a couple of rounds of
>do-cm3-min.sh and do-cm3-core.sh,  build and ship.  Then I tried to
>compile a small test program, with this result:
>
>[rodney at selkirk cm3]$ cm3
>--- building in LINUXLIBC6 ---
>
>"/usr/local/cm3/pkg/libm3/src/bundleintf/bundle-ov.tmpl", line 4: quake 
>runtime error: undefined variable: ROOT
>
>--procedure--  -line-  -file---
>_import_template       4  
>/usr/local/cm3/pkg/libm3/src/bundleintf/bundle-ov.tmpl
>_import_template       4  
>/usr/local/cm3/pkg/libm3/src/bundleintf/bundle-ov.tmpl
>import            269  /usr/local/cm3/pkg/libm3/LINUXLIBC6/.M3EXPORTS
>include_dir         8  /home/rodney/proj/m3/exp/format5/cm3/src/m3makefile
>                     4  
>/home/rodney/proj/m3/exp/format5/cm3/LINUXLIBC6/m3make.args
>
>Fatal Error: package build failed
>rm m3make.args
>cd ..
>[rodney at selkirk cm3]$ more 
>/usr/local/cm3/pkg/libm3/src/bundleintf/bundle-ov.tmpl
>if defined("M3BUNDLE")
>   _M3BUNDLE = M3BUNDLE
>else
>   _M3BUNDLE = format(ROOT & SL & "m3-tools" & SL & "m3bundle" & SL & "%s" 
>&
>                      SL & "m3bundle", BUILD_DIR)
>   M3BUNDLE = _M3BUNDLE
>end
>
>FWIW, I backed up but did not clean out /usr/local/cm3 before building.
>
>--
>-------------------------------------------------------------
>Rodney M. Bates, retired assistant professor
>Dept. of Computer Science, Wichita State University
>Wichita, KS 67260-0083
>316-978-3922
>rodney.bates at wichita.edu
>_______________________________________________
>M3devel mailing list
>M3devel at elegosoft.com
>https://mail.elegosoft.com/cgi-bin/mailman/listinfo/m3devel

_________________________________________________________________
Get FREE Web site and company branded e-mail from Microsoft Office Live 
http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/




More information about the M3devel mailing list