www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/04/13:33:56

From: bukinm AT inp DOT nsk DOT su (Michael Bukin)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Building djgpp on NT Machine (was Nmake for WinNT 3.5 utilities)
Date: 4 Apr 1997 15:27:41 GMT
Organization: BINP SD RAS
Lines: 59
Message-ID: <5i36ld$ait@sky.inp.nsk.su>
References: <Pine DOT LNX DOT 3 DOT 95 DOT 970403094921 DOT 15388E-100000 AT p5 DOT csrd DOT uiuc DOT edu>
Reply-To: bukinm AT inp DOT nsk DOT su
NNTP-Posting-Host: h-bukin.inp.nsk.su
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>No, I'm talking about compiling the djgpp sources on my NT machine.  We've
>scrapped the idea of using MSVC at all.  We're going to do it the
>"traditional" way using editors and RHIDE where we can.  First,
>though, I need to get djgpp to compile on my machine.  I've successfully
>compiled gcc on sunos, linux, and irix boxes in the past . . . but I have
>never had as hard a time as getting djgpp to compile on my NT machine . .
>  And I think it's because I don't have the right tools (i.e. make
>program).  Basically what I need is a list of tools and versions and a
>step-by-step list of how to build it.  The GNU CC installation
>instructions just aren't specific enough for the DOS/Windows platform.  So
>far, though, I haven't located anyone who has this kind of information :(
> . .  sigh.
>

I don't know about building gcc as native windoze application,
but I can give some tips for building gcc for dos (on dos or 
windoze dos-box).

First, you will need some djgpp packages:
djdev, sed, gnu-make, maybe bash (I have it all, so
I can not say what is the minimum). _Install and configure properly_
(read readme.1st and faq it is all there).

Then, unpack gcc2721s.zip (preserve directories structure).

Now, some dos commands:
cd gnu\gcc-2721\config\msdos
configur.bat go32

To run configur.bat from gnu\gcc-2721 you will need to edit
both configur.bat. Changes are:
call config\msdos\configure <- call config\msdos\configur.bat
and
if not exist config\msdos\configure.bat <- if not exist config\msdos\configur.bat

Now, you should be in gnu\gcc-2721 directory.
Edit makefile (there are 3 places where backslash is used instead of slash)
$(srcdir)\bytecode.def  should be replaced with  $(srcdir)/bytecode.def

Run  make CFLAGS=-O2   and have a rest (be sure you run gnu-make).
Without -O2 or with -g it won't work (but maybe it will work with -O,
I didn't try).  Now, you have a chance that everything
(xgcc, cc1, cc1obj, libgcc.a) will be built successfully.
With Windoze 95 make sure you don't run another dos-box
(I did and then have to reboot). And sometimes 'make' may
complain about dpmi handlers (bug in Windoze dpmi server!?).
Then you may reboot ;) and start make again (don't forget -O2).
I think there is no need in building other stages, but
if you want to, then copy [gcc] section to [xgcc]
in djgpp.env and edit COMPILER_PATH, e.g. if you build
in c:\gnu\gcc-2721, then compiler path for building stage2
would be c:\gnu\gcc-2721\stage1

I'm sure that original distribution was built with cross-compiler
on Unix.

Now, you have a lot of info :)
Hope, it will help,
                   Mike.

- Raw text -


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