This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Building a compiler for cygwin to target djgpp


How I built the cross compiler for DOS.

Basically follow the instructions in
http://www.delorie.com/howto/djgpp/linux-x-djgpp.html, except..

I used djcrx203.zip, and copied the files rather than linked them.

I used binutils-20001221-src.tar.gz, from the cygwin ftp site, which
compiled 'out the box' and did not require the patch to te-go32.h or
tc-i386.h.

I used gcc-2.95.2.tar.gz, which had a few problems. The solution is,
after configuring as standard, extract the djgppxgcc-asis.tgz file to
overwrite some files. The fixes include: that given in the howto, it
prevents incompatible duplicate declarations of size_t and wchar_t,
and fixes the include path for libchill so it can find the correct
limits.h. This will need to be done more than once, as configurations
during the compile process overwrite the fixed version of stddef.h,
and the libchill Makefile prevents libchill configuring properly.

gcc-2.95.2 sequence (assumes in the gcc build directory, and
djgppxgcc-asis.tgz is in that directory:

$ tar xvzf djgppxgcc-asis.tgz
$ touch Makefile 
$ make
$ # will bomb out complaining about size_t and wchar_t in stddef.h
$ tar xvzf djgppxgcc-asis.tgz
$ touch Makefile 
$ rm i586-pc-msdosdjgpp/libchill/Makefile
$ make
$ # will bomb out complaining about PATH_MAX being undeclared
$ tar xvzf djgppxgcc-asis.tgz
$ touch Makefile i586-pc-msdosdjgpp/libchill/Makefile
$ make
$ make install

Note that a patch to fix gcc-2.95.2 would be much more useful, but I
can't justify the time at work to do this - sorry.

Peter Fox.

djgppxgcc-asis.tgz

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]