Date: Tue, 17 Jul 2001 20:37:32 +0300 (WET) From: Andris Pavenis To: djgpp AT delorie DOT com Subject: Re: Problem compiling a DJGPP gcc 3.0 cross compiler In-Reply-To: <9iuhso$o5n$1@nets3.rz.RWTH-Aachen.DE> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 16 Jul 2001, Hans-Bernhard Broeker wrote: > Andrea Mazzoleni wrote: > > I was trying to compile a DJGPP gcc 3.0 cross compiler from linux to dos > > but I get this error: > > --------------------------------------------------------------------- > [...] > > > Checking the preprocessor output I found that the problem is that > > the include /root/src/gccdos/i586-pc-msdosdjgpp-gcc/gcc/include/limits.h > > is used instead of the include (from djcrx203) > > /usr/local/gcc-3.0-i586-pc-msdosdjgpp/i586-pc-msdosdjgpp/include/limits.h > > This looks like you're hitting one of the problems created by GCC-3.0, > for the DJGPP port at large, not just for cross-compilations. GCC > insists on installing its own set of platform-specific headers, and > run 'fixinclude' even on the DJGPP headers, now, although these > headers are explicitly meant to be used by no other compiler than GCC, > anyway. And it can fail doing that correctly. > -- Look how Makefile in directory gcc finds whether previous version of limits.h should be used. At least if all is setup as this Makefile "wants" and it sees limits.h in place where it expects it to see then all build Ok. Sorry for so unclear answer but I'm rather far away from computer I can test all on ... Andris