i586-pc-linux-gnu to DJGPP cross compiler with today's 3.00 CVS

John Fremlin chief@bandits.org
Sun Mar 11 14:46:00 GMT 2001


I set up a cross compiler from i586-pc-linux-gnu to i386-pc-msdosdjgpp
using the GCC CVS (-r gcc-3_0-branch) of today. There was quite a bit
of hassle and some problems with C++ remain.

Linking fails on cpp0 because target_flags (used by SUPPORTS_ONE_ONLY
macro defined in the djgpp.h config file which is instantiated in
cppinit.c) is defined in rtlanal.c which is not included in the
link. This can be fixed by also defining target_flags in cppinit.c,
though that probably isn't the right, as, as far as I can see, they
are not modified anywhere.

The gcc libiberty/getcwd.c bombed out because of undefined
PATH_MAX. This can be fixed by #including "limits.h" (careful: with
<limits.h> the GCC version is included instead of the DJGPP version)
in the unistd.h. I got the headers from from djcxr203.zip. 

I don't have any POSIX drafts so I can't say who's at fault ;-)

Anyway, once I got over these hassles, I managed to produce some
working executables so things aren't badly broekn.

-- 

	http://www.penguinpowered.com/~vii



More information about the Gcc-help mailing list