[M3devel] cm3-5.4 building on NT386 cat not recognized command

j k jayk123 at hotmail.com
Sun Jan 14 20:38:03 CET 2007


Good!

The problems in obliq I know about.
They are old. Getting this far in "std" I think is pretty good.

I'm sure we can just switch on M3_OSTYPE and use type or echo instead of 
cat, or add more builtins to quake.

Question: M3_OSTYPE, this it meant to be a query about the target and not 
the host, right?
My suspected anwer: Cross builds aren't actually factored into the build 
system right. There is not a way to check one vs. the other. That is, host 
is mostly assumed to be target. Not completely broken, since cross builds 
are doable, in a way I am not familiar with but is documented.

file_exists should be either in that m3makefile or the global cm3.cfg.
it is defined by me as like:

proc file_exists(a) is
  return stale(a, a)
end

I thought the use of "stale(a,a)" in places kind of obscure and worthy of a 
name.

In order to work with whatever global cm3.cfg someone has, let's just put
in a local definition. Some of the history in the import-libs directory is 
it did not initially build incrementally, just always clean, so my changes 
for incrementality have less time under their belt, so to speak.

  - Jay


>From: "Daniel Alejandro Benavides D." <dabenavidesd at yahoo.es>
>To: m3devel at elegosoft.com
>Subject: [M3devel] cm3-5.4 building on NT386 cat not recognized command
>Date: Sun, 14 Jan 2007 20:05:24 +0100 (CET)
>
>Hi all:
>Im trynig to get build with the bootstrap of 5.2.6, do-cm3-base.cmd
>works well. Just got an error in about file 
>C:\cm3-5.4\cm3-cvs\cm3\m3-win\import-libs\src\m3makefile
>
>C:\cm3-5.4\cm3-cvs\cm3\scripts\win>do-cm3-base.cmd
>INSTALLROOT=C:\cm3
>LIB=%INSTALLROOT%\LIB;%LIB%
>CM3ROOT=C:\\cm3-5.4\\cm3-cvs\\cm3
>
>making C:\cm3-5.4\cm3-cvs\cm3\scripts\win\PKGS with 
>C:\cm3-5.4\cm3-cvs\cm3\scripts\win\find-packages
>call C:\cm3-5.4\cm3-cvs\cm3\scripts\win\pkgmap -c "cm3 -build -override 
>-DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3" import-libs m3core libm3 m3middle m3quake 
>m3scanner m3tools m3cgcat m3cggen m3bundle mklib dll2lib fix_nl libdump 
>bitvector digraph parseparams realgeometry set slisp sortedtableextras 
>table-list tempfiles tcp tapi
>
>=== package C:\cm3-5.4\cm3-cvs\cm3\m3-win\import-libs ===
>+++ "cm3 -build -override -DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3" +++
>unable to read ..\src\m3overrides, options "-override" and "-x" ignored.
>"C:\cm3-5.4\cm3-cvs\cm3\m3-win\import-libs\src\m3makefile", line 178: quake 
>runtime error: undefined variable: file_exists
>
>--procedure--  -line-  -file---
>
>include_dir       178  
>C:\cm3-5.4\cm3-cvs\cm3\m3-win\import-libs\src\m3makefile
>                   5  
>C:\cm3-5.4\cm3-cvs\cm3\m3-win\import-libs\NT386\m3make.args
>Fatal Error: package build failed
>
>*** execution of cm3 -build -override -DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3 
>failed with 0 ***
>
>   I just commented the whole if of line 178 and it worked well.  Then I 
>tried the do-cm3-std.cmd, and it works well until formsview package, but 
>when in m3-obliq got an error because a missing cat:
>
>  -> linking vocgi.exe
>=== package C:\cm3-5.4\cm3-cvs\cm3\m3-obliq\voquery ===
>+++ "cm3 -build -override -DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3" +++
>new source -> compiling Main.m3
>  -> linking voquery.exe
>=== package C:\cm3-5.4\cm3-cvs\cm3\m3-obliq\vorun ===
>+++ "cm3 -build -override -DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3" +++
>C:\cm3-5.4\cm3-cvs\cm3\m3-tools\m3bundle\NT386\m3bundle -name VORunBundle 
>-FC:\D
>OCUME~1\LUISCA~1\CONFIG~1\Temp\qk
>new source -> compiling VORunBundle.i3
>new source -> compiling VORunBundle.m3
>new source -> compiling Main.m3
>  -> linking vorun.exe
>cat  ..\src\vostart  >> vostart
>"cat" is not recognized as an internal or     external command, operable 
>program or batch file.
>
>"C:\cm3-5.4\cm3-cvs\cm3\m3-obliq\vorun\src\m3makefile", line 33: quake 
>runtime error: exit 1: cat  ..\src\vostart  >> vostart
>
>--procedure--  -line-  -file---
>exec               --  <builtin>
>include_dir        33  C:\cm3-5.4\cm3-cvs\cm3\m3-obliq\vorun\src\m3makefile
>                     6  
>C:\cm3-5.4\cm3-cvs\cm3\m3-obliq\vorun\NT386\m3make.args
>
>Fatal Error: package build failed
>*** execution of cm3 -build -override -DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3 
>failed with 0 ***
>error : call C:\cm3-5.4\cm3-cvs\cm3\scripts\win\pkgmap -c "cm3 -build 
>-override
>-DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3" import-libs m3core libm3 m3core m3middle 
>m3quake m3scanner m3tools m3cgcat m3cggen m3bundle mklib dll2lib fix_nl 
>libdump bitvector digraph parseparams realgeometry set slisp 
>sortedtableextras table-list tempfiles tcl tcp udp libsio libbuf debug 
>listfuncs patternmatching embutils m3tk-misc http binIO deepcopy sgml tapi 
>serial m3tk mtex m3totex m3tohtml m3scan m3markup m3browser cmpdir cmpfp 
>dirfp uniq netobj netobjd stubgen events rdwr sharedobj sharedobjgen odbc 
>postgres95 db smalldb stable stablegen X11R4 ui PEX vbtkit cmvbt jvideo 
>videovbt web formsvbtpixmaps formsvbt formsview formsedit codeview mg mgkit 
>opengl anim3D zeus m3zume synloc synex metasyn obliqrt obliqparse obliq 
>print obliq obliqlibemb obliqlibm3 obliqlibui obliqlibanim obliqsrvstd 
>obliqsrvu
>i obliqbinmin obliqbinstd obliqbinui obliqbinanim visualobliq vocgi voquery 
>voru
>n webvbt recordheap rehearsecode replayheap showheap shownew showthread 
>pkl-fonts juno-machine juno-compiler juno-app cube calculator fisheye 
>mentor failed
>
>C:\cm3-5.4\cm3-cvs\cm3\scripts\win>
>
>Can we use a native port of cat, or bunddle in the distro?
>
>Thanks,
>Daniel Benavides
>
>
>---------------------------------
>
>LLama Gratis a cualquier PC del Mundo.
>Llamadas a fijos y móviles desde 1 céntimo por minuto.
>http://es.voice.yahoo.com


>_______________________________________________
>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