Mail Archives: djgpp/1997/04/04/13:33:56
>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 -