[M3devel] serial/Cygwin
Jay
jay.krell at cornell.edu
Wed Dec 17 23:32:53 CET 2008
I really don't think it's a big deal, to omit a minor package here or there.
Imho people should be able to build whatever they need from source.
Granted, I'm not where I want to be there yet, building the OS and such.
I think most of the packages have no users at all.
The web browsers in the tree for example seemed useless.
I don't think Cygwin has any users either, so granted, this compromise was backwards.
I could just comment it out for building Cygwin and not commit it.
Anyway, I'll improve serial one way or the other.
Like either just put it back, breaking Cygwin (if you use the .py files), or fix the filtering (could always filter in the m3makefile, easy).
Randy, Tony's point I took to be different.
His point is just let it build the Posix code.
And indeed, I don't remember if I ever tried it.
I just assumed serial programming to be a bit out on the fringe and not surprising if Cygwin doesn't support it, or even if it works on many Posix platforms at all. Serial is after all one of the packages with filtering "built in" just for it.
I know minicom (just an example of a friendly serial app on GNU/Linux (e.g. Debian)) for example doesn't compile on some "Posix" platforms I have -- I forgot which I tried..could be any of AIX, Irix, OpenBSD... (was trying to bring up additional serial consoles besides a really noisy machine; the clear winner was Hyperterm on XP using a $20 USB to serial converter fyi...).
- Jay
Date: Wed, 17 Dec 2008 17:07:33 -0500From: rcoleburn at scires.comTo: m3devel at elegosoft.comSubject: Re: [M3devel] [M3commit] CVS Update: cm3
Jay,
I agree with Tony.
>From my point of view, you are "breaking" the normal Windows install in order to rectify a problem for Cygwin. I put "breaking" in quotes because the install will appear to work, but the serial package will be silently omitted.
It may not be a "big deal" to you, but it presents another hurdle for those who want to install on Windows, and this hurdle is probably not documented yet.
Regards,
Randy>>> Tony Hosking <hosking at cs.purdue.edu> 12/17/2008 3:23 PM >>>
I would have thought of CygWin as a POSIX platform that just happens to have Windows underneath. Did we go round this roundabout before?
On 18 Dec 2008, at 03:29, Jay wrote:
Eh, not a big deal, you can cd to it and it just fine. I removed it from my distribution building and regular building.It fails to build on I386_CYGWIN (aka NT386GNU), AND my filtering wasn't working.I "merely" need to fix one or the other or just comment it out when building Cygwin, which is rare. See...I figured..that the Cygwin serial package should still use the Win32 source.However, that has a dependency on FileWin32.m3, which is only built in "full Win32" platforms.If you do try to compile FileWin32.m3, it errors, because it exports File, and I guess maybe FileWin32.Possibly I just need to have Quake do a bit of munging such that the first line of FileWin32.m3 is altered.The NT386 version would be:MODULE FileWin32 EXPORTS File. The NT386GNU version would be:MODULE FileWin32; something like that. Or push the contents into another module, and then have a thin NT386 module export it as File. Anyway, it's not a huge deal.The main downfall is I "temporarily" no longer build it, on any platform. Fixing the filtering is a better "temporary" solution, since that'd restore me to building it for all but NT386GNU. Another avenue is to see if the Posix version works on Cygwin.I think the Cygwin serial users however are a "multiple small intersection" -- people who use Modula-3 (small) intersected with people who use Cygwin (medium) (probably at zero here) intersected with people who use serial (very small) => very very very small, so that's not worth getting it to work. - Jay
Date: Wed, 17 Dec 2008 10:12:09 -0500From: rcoleburn at scires.comTo: jkrell at elego.deCC: m3devel at elegosoft.comSubject: Re: [M3devel] [M3commit] CVS Update: cm3
Jay:
Why are we skipping serial package? I use serial I/O on Windows. If you need my sources, let me know and I'll supply.
Regards,
Randy>>> Jay Krell <jkrell at elego.de> 12/17/2008 3:47 PM >>>CVSROOT:/usr/cvsChanges by:jkrell at birch.08/12/17 15:47:34Modified files:cm3/scripts/python/: pylib.py make-dist.py Log message:fix line endings and 'temporarily' skip serial package -- there's a problem here on I386_CYGWIN I forgot about where essentially you want to provide both FilePosix and FileWin32; FilePosix will export File, FileWin32 will export FileWin32, so that portable Modula-3 can use File/FilePosix and Win32 specific serial code can use FileWin32; maybe some day we should try out this serial stuff, and /maybe/ the Posix paths work on Cygwin? For now, just skip it. And fix line endings. And try out the alternate 'clean' path in make-dist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20081217/7565f7e0/attachment-0002.html>
More information about the M3devel
mailing list