www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2011/12/23/16:45:07

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Juan Manuel Guerrero <juan DOT guerrero AT gmx DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: building libc (was "Re: ANNOUNCE: DJGPP port of Lua 5.2.0 uploaded.")
Date: Fri, 23 Dec 2011 13:33:23 -0800 (PST)
Organization: http://groups.google.com
Lines: 88
Message-ID: <692c2768-e527-4fc3-95bf-4b44ba0d9cd5@p9g2000vbb.googlegroups.com>
References: <201112220014 DOT pBM0ENQt004616 AT delorie DOT com> <74ee1ae2-8a21-4104-95d9-492073150519 AT l29g2000yqf DOT googlegroups DOT com>
<3e0771bb-ed2b-4dfc-a654-75b59a3c65a7 AT p9g2000vbb DOT googlegroups DOT com>
<5f4b3313-6ce8-4c7d-97a3-b9d313db1035 AT f11g2000yql DOT googlegroups DOT com> <7dd36ab5-c992-42b1-abae-0a75c7c7ee24 AT l19g2000yqc DOT googlegroups DOT com>
NNTP-Posting-Host: 46.5.198.95
Mime-Version: 1.0
X-Trace: posting.google.com 1324676003 2500 127.0.0.1 (23 Dec 2011 21:33:23 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Fri, 23 Dec 2011 21:33:23 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: p9g2000vbb.googlegroups.com; posting-host=46.5.198.95; posting-account=OsAajgoAAADdKJnkJkmhzqP0jo6I_P_0
User-Agent: G2/1.0
X-Google-Web-Client: true
X-Google-Header-Order: HUALESNKRC
X-HTTP-UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20100101 Firefox/9.0,gzip(gfe)
Bytes: 5254
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id pBNLj2mC002261
Reply-To: djgpp AT delorie DOT com

On 23 Dez., 18:58, Rugxulo <rugx DOT  DOT  DOT  AT gmail DOT com> wrote:
> Hi,
>
> On Dec 23, 1:59 am, Rugxulo <rugx DOT  DOT  DOT  AT gmail DOT com> wrote:
> > On Dec 22, 9:56 am, Juan Manuel Guerrero <juan DOT guerr DOT  DOT  DOT  AT gmx DOT de> wrote:
>
> > > On 22 Dez., 05:06, Rugxulo <rugx DOT  DOT  DOT  AT gmail DOT com> wrote:
>
> > > > I'm not sure I've ever rebuilt DJGPP's libc, probably weakly tried
> > > > once or twice and gave up.
>
> > > I have compiled libc on plain DOS without difficulties today.
> > > I have used VMware with this system parameters:
> > > OS:  MSDOS 6.22 (no LFN driver installed)
> > > RAM: 32 MB
>
> > > I checked out the sources on my linux box and zipped the extracted
> > > sources.  I used djtar to extract the sources on the virtual dos box.
> > > The sources compiled flawlessly.
> > > It took around 50 minutes to compile the sources using gcc 4.6.1
> > > and latest binutils.  Of course, a working version of lua can also
> > > be compiled after libc.a has been installed.
>
> > I'm surprised it works without LFNs and in such a low amount of RAM.
>
> Well, I tried under DOSEMU. A few caveats, but it mostly seems to have
> worked with latest GCC 4.6.2 /beta/ (corrections welcome):
>
> wgethttp://www.ludd.luth.se/~ams/djgpp/cvs/djgpp.cvs.tar.gz
> set DJGPP=c:\djgpp
> path %DJGPP%\bin;%PATH%
> set DJGPP=%DJGPP%\djgpp.env
> djtarx \tmp\djgpp.cvs.tar.gz
> cd djgpp
> djtarx \tmp\djtzn204.zip
> cd src
> make
>
> 1). Initially I was using an out-of-tree DJGPP install to build it,
> but I guess that's not recommended (strange failure building symify).
> Once copied bins over to "source" tree root, it ran fine, more or
> less.

You have corrupted your djgpp installation.  I would suggest to delete
into and make a fresh installation.
AFAIK the cvs sources are never extracted into the djgpp installation
directory.  I usualy extract into tmp.  Before you start compiling you
must copy djgpp.djl and dxe.ld from the cvs /lib directory into your
djgpp installation /lib directory.  If this is not done the
compilation
will abort when compiling symify.


> 2). DJTZN204.ZIP needs to be installed / unpacked? I guess you could
No certainly no.  Everything you need to compile is checked out by CVS
or contained in djgpp.cvs.tar.gz.

> just "make -k" or whatever and ignore it. (Does anyone use this? It
> seems a little arcane to understand, and they changed the rules
> anyways, so it's probably a bit out of date, no pun intended, heh.
> "set TZ=CST6CDT", I presume? No, better is to point directly to the
> "Central" file, right?? Does it matter if I build /zoneinfo/src/
> Makefile with "LOCALTIME=US/Central"? [default "US/Eastern"])
> 3). Also, under /zoneinfo/, seems two rules in the Makefile try "-L /
> dev/null", which (again) DOSEMU doesn't like. (What is the deal with
> that???) Anyways, I just created an empty 0-byte file ("blah") and
> used that instead. (shrug)
>
> I think I'll rebuild from scratch again to double-check.

I do not understand all this.  Probably DOSEMU is not the best
emulator to compile the sources.  But I do not know.  I do not
remember if it was DOSEMU or DOSBOX but my experience with those
emulators was disapointing so I returned to VMware.  I am not
lobbying for it.  It is the one I use in my day-time job, so
I am most familiar with it than with the other ones.

OFYI, I compiled today's libc sources on my thinkpad t60 with
MSDOS 6.22 (only SFN support).  FILES=250,  command.com environment
space = 16384,  smartdvr cache 10MB,  XMS = 64 MB.  With gcc 4.4.X
it compiled flawlessly in 8 min.  (No emulation but real hardware).

BTW, you do not need LFN support to compile the CVS sources.

Regards,
Juan M. Guerrero

- Raw text -


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