delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2013/06/26/00:48:56

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20120113;
h=mime-version:in-reply-to:references:date:message-id:subject:from:to
:content-type;
bh=kXU5wK3EaTrRH3AbGKTeNcm/RQfPnrj4uAcHzJqSj3U=;
b=k6+E3B4tqakdV5S7l4Rd3us4c42PWfb0MKS9wW6c2pT4IK9tHRPhSh6lrVfZdnvxnT
r8wR7z6+4jgTwNljLT9H8HVe0RMhe46LCBPHZNTtgNBIKAvZsMAg2qJDqkH1Eq9z5ME/
1Xb3u+rE1H7QYB4HllVnP7pFZSuhlgumYaOs80WPdiTN4D0YWvimGltbOfODNZkZFMJW
W+TIZtyjNp8VqaPspFyMjLkFqg62sawpBkJJ/D/HmiArAE5Vd56d8JIzuu3HuhVJVEeh
flbvGY0Uy2ukZEgbdHS7H03lfcc1EdkqF2MOtbNMFpBZPkRMMzsnFb4yRZKJvA8sZL44
Om7Q==
MIME-Version: 1.0
X-Received: by 10.52.91.202 with SMTP id cg10mr850483vdb.85.1372220244617;
Tue, 25 Jun 2013 21:17:24 -0700 (PDT)
In-Reply-To: <a5de500e-67da-4fc7-83d9-8842e04e8235@googlegroups.com>
References: <CAB9Rao_8KC6ddube7z-4AcaJJbt4BJG3i3gjwhq5y-23KEC5PQ AT mail DOT gmail DOT com>
<713e6460-511d-4b27-a9a5-b07cc63fd02d AT googlegroups DOT com>
<kqab83$jpa$1 AT speranza DOT aioe DOT org>
<a5de500e-67da-4fc7-83d9-8842e04e8235 AT googlegroups DOT com>
Date: Tue, 25 Jun 2013 21:17:24 -0700
Message-ID: <CAB9Rao_z+nKpPsYhTz1BmGO3iCyTHvVeLT2oeL000CxU6qjTTA@mail.gmail.com>
Subject: Re: Rebuilding 2.04 from source
From: Louis Santillan <lpsantil AT gmail DOT com>
To: djgpp AT delorie DOT com
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

--bcaec5015cf73bf78a04e006ec8f
Content-Type: text/plain; charset=ISO-8859-1

So rugxulo & Rod are following.  I am looking to build DJGPP completely
from scratch on a DOS box.  If you reference typical GCC porting guides
[1][2][3][4], you start by building binutils, then GCC's deps (if using 3.x
or later), then GCC, all using the typical ./configure && make && make
install.

-L

[1] http://wiki.osdev.org/DJGPP
[2] http://wiki.osdev.org/C%2B%2B_Bare_Bones
[3] http://wiki.osdev.org/GCC_Cross-Compiler
[4] http://virtuallyfun.superglobalmegacorp.com/?p=333



On Tue, Jun 25, 2013 at 9:44 AM, <rugxulo AT gmail DOT com> wrote:

> Hi,
>
> On Monday, June 24, 2013 3:51:14 PM UTC-5, Rod Pemberton wrote:
> >
> > My results with configure scripts have been it either works or it
> > doesn't.  When it doesn't, generally the code is using something
> > the DJGPP doesn't support.  When it does, the app compiles for
> > DJGPP.  I.e., if the configure script doesn't work, it's a strong
> > indication it won't compile without some work.
>
> I'd honestly rather roll my own tools than use those. Well, the fact
> that it doesn't barely work on DJGPP anyways makes that almost
> unavoidable.
>
> > MinGW in DOS with HX...  Interesting.  How many functions are in
> > MSVCRT?  I.e., would it be easy to port MinGW to DOS?
>
> I don't think the full MinGW environment works, but I've not tried.
> Some standalone tools (or those compiled by) do work. E.g. Oxford
> Oberon or TinyC (often needing HDPMI=32 or DPMILDR=136). BTW,
> TinyC had a big update recently.
>
> MSVCRT is a "known .DLL", originally (I think?) from MSVC 6. MinGW
> and TinyC use it, but OpenWatcom (thankfully) doesn't. It's very
> proprietary, so I'm not sure (at least in Express Editions) you can
> share it with anyone. (There are other .DLLs from other MS compilers.)
> It only supports C89 as (IIRC) MS still do not intend to support
> anything newer except via C++.
>
> Like I said, newer ReactOS .DLL doesn't work, but older 0.3.14
> MSVCRT.DLL seems to work with HX, at least for the very few apps
> I tried.
>
> I don't know what "port MinGW to DOS" means, but I'm very very
> skeptical.
>
> > My first question to Louis is how could MinGW rebuild DJGPP
> > without POSIX support?  CygWin has POSIX support.
>
> Presumably MinGW added a few POSIX stubs as GCC wouldn't run without
> such.
>
> > My second question is to Louis is why you're rebuilding version
> > 2.04?  2.04 doesn't work as well with DOS as 2.03.  There are some
> > definate bugs with it, at least with MS-DOS v7.10.  IIRC, 2.04 is
> > designed to work better in a Windows XP console ("dosbox") window,
> > not real-mode DOS.
>
> 2.04 (circa 2003) "mostly" works fine for everything I tested. Sure,
> there are some rare bugs, but they were fixed in CVS (not that I
> really tried that). The only problem with 2.04 is that it wasn't
> as heavily tested in all environments as 2.03p2. Plus, there's been
> no release manager nor major interest since it was always "good
> enough" for the main developers. At least, that's what little I
> recall understanding about it. I don't have anything against
> 2.03p2, but I'm not sure that's totally perfect either, for
> various minor reasons.
>
> > Rugxulo, I know I need to get an email account and get on "DOS
> > ain't dead forums"...
>
> No pressure!  :-)  I know you hate email, but perhaps GNU PG would
> help??
>
> > But, until then, could you do me another
> > favor and let Japheth know I posted a patch for HIMEMX to
> > comp.os.msdos.programmer?  It supports multiple 001 E820h memory
> > blocks above 1MB.  If you recall, you posted a message or two there
> > for me previously discussing the issue.
>
> Sure, but keep in mind that Japheth long ago disclaimed any hold
> over HimemX, so he's not really a maintainer (anymore, if ever).
> IIRC, he even refused the simple "jmp $+2" 386 patch.  :-(
>
> Though worst case, I'll just try to mirror your patch to iBiblio.
>
> > If you do, thanks and sorry for the trouble...
>
> No trouble, but my usefulness is limited. But I've gone ahead and
> posted there, so we'll see what he says.
>

--bcaec5015cf73bf78a04e006ec8f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">So rugxulo &amp; Rod are following. =A0I am looking to bui=
ld DJGPP completely from scratch on a DOS box. =A0If you reference typical =
GCC porting guides [1][2][3][4], you start by building binutils, then GCC&#=
39;s deps (if using 3.x or later), then GCC, all using the typical ./config=
ure &amp;&amp; make &amp;&amp; make install.<div>
<br></div><div style>-L</div><div><br></div><div>[1]=A0<a href=3D"http://wi=
ki.osdev.org/DJGPP">http://wiki.osdev.org/DJGPP</a></div><div>[2] <a href=
=3D"http://wiki.osdev.org/C%2B%2B_Bare_Bones">http://wiki.osdev.org/C%2B%2B=
_Bare_Bones</a></div>
<div>[3]=A0<a href=3D"http://wiki.osdev.org/GCC_Cross-Compiler">http://wiki=
.osdev.org/GCC_Cross-Compiler</a></div><div>[4]=A0<a href=3D"http://virtual=
lyfun.superglobalmegacorp.com/?p=3D333">http://virtuallyfun.superglobalmega=
corp.com/?p=3D333</a></div>
<div><br></div></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail=
_quote">On Tue, Jun 25, 2013 at 9:44 AM,  <span dir=3D"ltr">&lt;<a href=3D"=
mailto:rugxulo AT gmail DOT com" target=3D"_blank">rugxulo AT gmail DOT com</a>&gt;</span=
> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Hi,<br>
<div class=3D"im"><br>
On Monday, June 24, 2013 3:51:14 PM UTC-5, Rod Pemberton wrote:<br>
&gt;<br>
&gt; My results with configure scripts have been it either works or it<br>
&gt; doesn&#39;t. =A0When it doesn&#39;t, generally the code is using somet=
hing<br>
&gt; the DJGPP doesn&#39;t support. =A0When it does, the app compiles for<b=
r>
&gt; DJGPP. =A0I.e., if the configure script doesn&#39;t work, it&#39;s a s=
trong<br>
&gt; indication it won&#39;t compile without some work.<br>
<br>
</div>I&#39;d honestly rather roll my own tools than use those. Well, the f=
act<br>
that it doesn&#39;t barely work on DJGPP anyways makes that almost<br>
unavoidable.<br>
<div class=3D"im"><br>
&gt; MinGW in DOS with HX... =A0Interesting. =A0How many functions are in<b=
r>
&gt; MSVCRT? =A0I.e., would it be easy to port MinGW to DOS?<br>
<br>
</div>I don&#39;t think the full MinGW environment works, but I&#39;ve not =
tried.<br>
Some standalone tools (or those compiled by) do work. E.g. Oxford<br>
Oberon or TinyC (often needing HDPMI=3D32 or DPMILDR=3D136). BTW,<br>
TinyC had a big update recently.<br>
<br>
MSVCRT is a &quot;known .DLL&quot;, originally (I think?) from MSVC 6. MinG=
W<br>
and TinyC use it, but OpenWatcom (thankfully) doesn&#39;t. It&#39;s very<br=
>
proprietary, so I&#39;m not sure (at least in Express Editions) you can<br>
share it with anyone. (There are other .DLLs from other MS compilers.)<br>
It only supports C89 as (IIRC) MS still do not intend to support<br>
anything newer except via C++.<br>
<br>
Like I said, newer ReactOS .DLL doesn&#39;t work, but older 0.3.14<br>
MSVCRT.DLL seems to work with HX, at least for the very few apps<br>
I tried.<br>
<br>
I don&#39;t know what &quot;port MinGW to DOS&quot; means, but I&#39;m very=
 very<br>
skeptical.<br>
<div class=3D"im"><br>
&gt; My first question to Louis is how could MinGW rebuild DJGPP<br>
&gt; without POSIX support? =A0CygWin has POSIX support.<br>
<br>
</div>Presumably MinGW added a few POSIX stubs as GCC wouldn&#39;t run with=
out<br>
such.<br>
<div class=3D"im"><br>
&gt; My second question is to Louis is why you&#39;re rebuilding version<br=
>
&gt; 2.04? =A02.04 doesn&#39;t work as well with DOS as 2.03. =A0There are =
some<br>
&gt; definate bugs with it, at least with MS-DOS v7.10. =A0IIRC, 2.04 is<br=
>
&gt; designed to work better in a Windows XP console (&quot;dosbox&quot;) w=
indow,<br>
&gt; not real-mode DOS.<br>
<br>
</div>2.04 (circa 2003) &quot;mostly&quot; works fine for everything I test=
ed. Sure,<br>
there are some rare bugs, but they were fixed in CVS (not that I<br>
really tried that). The only problem with 2.04 is that it wasn&#39;t<br>
as heavily tested in all environments as 2.03p2. Plus, there&#39;s been<br>
no release manager nor major interest since it was always &quot;good<br>
enough&quot; for the main developers. At least, that&#39;s what little I<br=
>
recall understanding about it. I don&#39;t have anything against<br>
2.03p2, but I&#39;m not sure that&#39;s totally perfect either, for<br>
various minor reasons.<br>
<div class=3D"im"><br>
&gt; Rugxulo, I know I need to get an email account and get on &quot;DOS<br=
>
&gt; ain&#39;t dead forums&quot;...<br>
<br>
</div>No pressure! =A0:-) =A0I know you hate email, but perhaps GNU PG woul=
d<br>
help??<br>
<div class=3D"im"><br>
&gt; But, until then, could you do me another<br>
&gt; favor and let Japheth know I posted a patch for HIMEMX to<br>
&gt; comp.os.msdos.programmer? =A0It supports multiple 001 E820h memory<br>
&gt; blocks above 1MB. =A0If you recall, you posted a message or two there<=
br>
&gt; for me previously discussing the issue.<br>
<br>
</div>Sure, but keep in mind that Japheth long ago disclaimed any hold<br>
over HimemX, so he&#39;s not really a maintainer (anymore, if ever).<br>
IIRC, he even refused the simple &quot;jmp $+2&quot; 386 patch. =A0:-(<br>
<br>
Though worst case, I&#39;ll just try to mirror your patch to iBiblio.<br>
<div class=3D"im"><br>
&gt; If you do, thanks and sorry for the trouble...<br>
<br>
</div>No trouble, but my usefulness is limited. But I&#39;ve gone ahead and=
<br>
posted there, so we&#39;ll see what he says.<br>
</blockquote></div><br></div>

--bcaec5015cf73bf78a04e006ec8f--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019