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

Antony Hosking hosking at cs.purdue.edu
Mon Jan 15 00:10:38 CET 2007


The PTHREAD port is not complete for Windows -- I would hesitate to  
use pthreads on Windows anyway, but perhaps it is doable.  WIN32  
threads are the preferred route.

On 14/01/2007, at 5:26 PM, Daniel Alejandro Benavides D. wrote:

> Hi,
> I succesfully used type instead of cat, so obliq was built. I also  
> added file_exists in cm3.cfg. Thanks.
> I have tested m3browser, It runs just fine, congratulations !!
>
> So I continued with do-cm3-std.cmd built but I found that m3-libs 
> \m3core\src\thread is not built in any of the implementations  
> (which must be src\thread\WIN32 according to the thread\m3makefile  
> wich has OS_TYPE variable if not PTHREAD), but this directory has  
> no built nothing , so I was wondering if the variable M3_OSTYPE you  
> mentioned is the same?
> Do you think is possible to use the Pthread part, with the pthread  
> port on Windows?
>
> C:\cm3-5.4\cm3-cvs\cm3\m3-tools\m3bundle\NT386\m3bundle -name  
> RehearseCodeBundle
>  -element RehearseCode.fv ..\src\RehearseCode.fv
> new source -> compiling RehearseCodeBundle.i3
> new source -> compiling RehearseCode.m3
> new source -> compiling RehearseCodeBundle.m3
>  -> linking RehearseCode.exe
> === package C:\cm3-5.4\cm3-cvs\cm3\m3-tools\replayheap ===
> +++ "cm3 -build -override -DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3" +++
> new source -> compiling Main.m3
>  -> linking replayheap.exe
> === package C:\cm3-5.4\cm3-cvs\cm3\m3-tools\showheap ===
> +++ "cm3 -build -override -DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3" +++
> new source -> compiling ShowHeap.m3
>  -> linking showheap.exe
> === package C:\cm3-5.4\cm3-cvs\cm3\m3-tools\shownew ===
> +++ "cm3 -build -override -DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3" +++
> new source -> compiling ZIO.i3
> new source -> compiling ZIO.m3
> new source -> compiling ShowNew.m3
>  -> linking shownew.exe
> === package C:\cm3-5.4\cm3-cvs\cm3\m3-tools\showthread ===
> +++ "cm3 -build -override -DROOT=C:\\cm3-5.4\\cm3-cvs\\cm3" +++
> new source -> compiling Main.m3
> "..\src\Main.m3", line 12: unable to find interface (ThreadEvent)
> 1 error encountered
> compilation failed => not building program "showthread.exe"
> Fatal Error: package build failed
> *** execution of cm3 -build -override -DROOT=C:\\cm3-5.4\\cm3-cvs\ 
> \cm3 failed with 0 ***
> ....
>
> By the way, the above ThreadEvent missing interface is not in the  
> WIN32 directory, can be copied?
>
> Thanks,
> Daniel Benavides
>
> ----------
> >j k <jayk123 at hotmail.com> wrote:
>
> >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."
> >>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 --
> >>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
> >>obliqsrvui obliqbinmin obliqbinstd obliqbinui obliqbinanim  
> visualobliq vocgi >>voquery vorun 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

Antony Hosking                | Associate Professor
Dept of Computer Sciences     | Office: (765) 494-6001
Purdue University             | Mobile: (765) 427-5484
250 N. University Street      | hosking at cs.purdue.edu
West Lafayette, IN 47907-2066 | http://www.cs.purdue.edu/~hosking
   _--_|\
  /      \
  \_.--._/    )
        v    /


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20070114/2b747504/attachment-0002.html>


More information about the M3devel mailing list