Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Apr 2006 11:19:06 -0500
From:      "Pedro F. Giffuni" <giffunip@asme.org>
To:        freebsd-hackers@FreeBSD.org
Subject:   OpenWatcom [Fwd: Re: OW on FreeBSD]
Message-ID:  <44426E7A.9030301@asme.org>

next in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hi;

The OpenWatcom on FreeBSD project is one day old but it has advanced 
greatly(see attached message for current status). FreeBSD experts are 
welcome.

cheers,

     Pedro.

[-- Attachment #2 --]
Path: www-1.scitechsoft.com!not-for-mail
X-Trace: www-1.scitechsoft.com 1145172236 9420 69.237.93.2
	(16 Apr 2006 07:23:56 GMT)
Date: Sun, 16 Apr 2006 00:24:11 -0700
From: Michal Necasek <michaln@prodigy.net>
Subject: Re: OW on FreeBSD
In-reply-to: <e1ju4r$o5u$1@www-1.scitechsoft.com>
Message-id: <e1srec$96c$1@www-1.scitechsoft.com>
Organization: SciTech Software, Inc.
X-Complaints-to: news@www-1.scitechsoft.com
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7BIT
NNTP-posting-date: Sun, 16 Apr 2006 07:23:56 +0000 (UTC)
Newsgroups: openwatcom.contributors
NNTP-posting-host: 69.237.93.2
References: <e1ju4r$o5u$1@www-1.scitechsoft.com>
User-Agent: Mozilla/5.0 (OS/2; U; Warp 4.5; en-US; rv:1.8.0.1) Gecko/20060129
	SeaMonkey/1.0
Xref: www-1.scitechsoft.com openwatcom.contributors:17364


  Okay, I've done some tweaks to the source code so that some of it 
builds on FreeBSD. Note that currently the build thinks it's targeting 
Linux, which will need to be fixed. Most of the tools don't really care 
as long as it's some sort of UNIX, but some do.

  There are two different ways to build: one uses the build.sh script 
and the other uses boot.sh. I would suggest concentrating on the latter.

  The "boot" build uses exclusively the native compiler and builds 
wmake, wlink, wdis, debugger, profiler, vi, and a few other odds and ends.

  Right now the rough status is:

  - wmake builds and appears to work without any problems

  - wlink builds and partially works but crashes in some situations

  - wdis builds and works on some objects but not others, apparently 
because of some ELF reloc type not seen previously

  - debugger user interface does not build due to Linux-specific ioctls 
which need replacing with BSD equivalents

  - trap file does not build because Linux-specific ptrace stuff needs 
to be modified

  - profiler doesn't build either for similar reasons

  - vi builds but crashes at startup because of insufficient error 
checking; the real problem is that a build ncurses it uses is configured 
for Linux and fails to init on FreeBSD

  The "regular" build manages to compile wasm and wcc386, both 
apparently functional (after I fixed a GCC-specific problem in wcc386). 
It seems likely that both could be used as cross-compilers as long as 
wlink works (which it doesn't quite appear to).

  Anyway I'm no UNIX expert and I've seen FreeBSD for the first time 
yesterday, so now some real FreeBSD expertise is needed. IMO the best 
course of action is to port the debugger first, because that has proven 
extremely useful on Linux. I would also like to have the Watcom vi 
available, just because I can use the exact same editor on Windows, DOS, 
OS/2, and Linux (the failing console support stuff is shared by vi, 
debugger, profiler, and one or two other tools). Since FreeBSD uses 
ELF+DWARF as far as I can tell, there should be little work needed on 
the file format support, just the OS debugging interface.

  The other line of work is adding FreeBSD support to the Watcom clib 
runtime; I expect this should not be terribly difficult for someone 
familiar with FreeBSD internals if the Linux clib is used as a starting 
point.

  In general, it may be helpful to have a Linux box handy for 
comparison, because all this works (or at least should work) on Linux.


          Michal

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44426E7A.9030301>